Showcase

import sys
import pandas as pd
import numpy as np

import seaborn as sns

from widgetplots import menu_plot
%config InlineBackend.figure_format = 'retina'

Dummy data

data_frame = sns.load_dataset('penguins')
data_frame.head()
species island bill_length_mm bill_depth_mm flipper_length_mm body_mass_g sex
0 Adelie Torgersen 39.1 18.7 181.0 3750.0 Male
1 Adelie Torgersen 39.5 17.4 186.0 3800.0 Female
2 Adelie Torgersen 40.3 18.0 195.0 3250.0 Female
3 Adelie Torgersen NaN NaN NaN NaN NaN
4 Adelie Torgersen 36.7 19.3 193.0 3450.0 Female

Examples

menu_plot(data_frame, x='species', y='body_mass_g', hue='sex', plot='boxplot',
          palette="tab10")
menu_plot(data_frame, x='bill_length_mm', y='bill_depth_mm', hue='sex', plot='scatterplot')
menu_plot(data_frame, x='species', y='bill_depth_mm')
menu_plot(data_frame, x='bill_length_mm', y='bill_depth_mm', graphics=[sns.scatterplot])
menu_plot(data_frame, x='bill_length_mm', y='bill_depth_mm', hue='species', graphics=[sns.kdeplot])