def barplot(data, **kwargs): def sns_barplot(x, y, hue, orient, color, saturation): # pragma: no cover x, y, hue, orient, color = ut.widget2py(x, y, hue, orient, color) ax, fig, _ = ut.get_ax_fig_plt() return sns.barplot( x=x, y=y, hue=hue, data=data, order=None, hue_order=None, # estimator=<function mean>, ci=95, n_boot=1000, units=None, orient=orient, color=color, palette=None, saturation=saturation, errcolor='.26', ax=ax, **kwargs) # errwidth=None, capsize=None, # New args added in ?? allcols = ["None"] + list(data.keys()) return ipw.interact_manual( sns_barplot, x=allcols, y=allcols, hue=allcols, orient=["None", "v", "h"], color=ut.colors_dropdow(), saturation=ut.saturation_slider(default=0.75), )
def countplot(data, **kwargs): def sns_countplot(x, y, hue, color, saturation): # pragma: no cover x, y, hue, color = ut.widget2py(x, y, hue, color) ax, fig, _ = ut.get_ax_fig_plt() return sns.countplot(x=x, y=y, hue=hue, data=data, order=None, hue_order=None, orient=None, color=color, palette=None, saturation=saturation, ax=ax, **kwargs) allcols = ["None"] + list(data.keys()) return ipw.interact_manual( sns_countplot, x=allcols, y=allcols, hue=allcols, color=ut.colors_dropdow(), saturation=ut.saturation_slider(default=0.75), )
def boxplot(data, **kwargs): def sns_boxplot(x, y, hue, orient, color, saturation, notch): # pragma: no cover x, y, hue, orient, color = ut.widget2py(x, y, hue, orient, color) ax, fig, _ = ut.get_ax_fig_plt() return sns.boxplot(x=x, y=y, hue=hue, data=data, order=None, hue_order=None, orient=orient, color=color, palette=None, saturation=saturation, width=0.8, fliersize=5, linewidth=None, whis=1.5, notch=notch, ax=ax, **kwargs) allcols = ["None"] + list(data.keys()) return ipw.interact_manual( sns_boxplot, x=allcols, y=allcols, hue=allcols, orient=["None", "v", "h"], color=ut.colors_dropdow(), saturation=ut.saturation_slider(default=0.75), notch=False, )
def violinplot(data, **kwargs): def sns_violinplot(x, y, hue, bw, scale, inner, split, orient, color, saturation): # pragma: no cover x, y, hue, inner, orient, color = ut.widget2py(x, y, hue, inner, orient, color) ax, fig, _ = ut.get_ax_fig_plt() sns.violinplot(x=x, y=y, hue=hue, data=data, order=None, hue_order=None, bw=bw, cut=2, scale=scale, scale_hue=True, gridsize=100, width=0.8, inner=inner, split=split, orient=orient, linewidth=None, color=color, palette=None, saturation=saturation, ax=ax, **kwargs) allcols = ["None"] + list(data.keys()) return ipw.interact_manual( sns_violinplot, x=allcols, y=allcols, hue=allcols, bw=["scott", "silverman", "float"], scale=["area", "count", "width"], inner=["box", "quartile", "point", "stick", "None"], split=False, orient=["None", "v", "h"], color=ut.colors_dropdow(), saturation=ut.saturation_slider(default=0.75), )
def barplot(data, **kwargs): def sns_barplot(x, y, hue, orient, color, saturation): # pragma: no cover x, y, hue, orient, color = ut.widget2py(x, y, hue, orient, color) ax, fig, _ = ut.get_ax_fig_plt() return sns.barplot(x=x, y=y, hue=hue, data=data, order=None, hue_order=None, # estimator=<function mean>, ci=95, n_boot=1000, units=None, orient=orient, color=color, palette=None, saturation=saturation, errcolor='.26', ax=ax, **kwargs) # errwidth=None, capsize=None, # New args added in ?? allcols = ["None"] + list(data.keys()) return ipw.interact_manual( sns_barplot, x=allcols, y=allcols, hue=allcols, orient=["None", "v", "h"], color=ut.colors_dropdow(), saturation=ut.saturation_slider(default=0.75), )