Exemplo n.º 1
0
 def sns_factorplot(x, y, hue, color, kind, size,
                    legend):  # pragma: no cover
     x, y, hue, color = ut.widget2py(x, y, hue, color)
     return sns.factorplot(
         x=x,
         y=y,
         hue=hue,
         data=data,
         row=None,
         col=None,
         col_wrap=None,  # estimator=<function mean>,
         ci=95,
         n_boot=1000,
         units=None,
         order=None,
         hue_order=None,
         row_order=None,
         col_order=None,
         kind=kind,
         size=size,
         aspect=1,
         orient=None,
         color=color,
         palette=None,
         legend=legend,
         legend_out=True,
         sharex=True,
         sharey=True,
         margin_titles=False,
         facet_kws=facet_kws,
         **kwargs)
Exemplo n.º 2
0
 def sns_pointplot(x, y, hue, split, join, orient, color,
                   linewidth):  # pragma: no cover
     x, y, hue, orient, color = ut.widget2py(x, y, hue, orient, color)
     ax, fig, _ = ut.get_ax_fig_plt()
     return sns.pointplot(
         x=x,
         y=y,
         hue=hue,
         data=data,
         order=None,
         hue_order=None,  # estimator=<function mean>,
         ci=95,
         n_boot=1000,
         units=None,
         markers='o',
         linestyles='-',
         dodge=False,
         join=join,
         scale=1,
         orient=orient,
         color=color,
         palette=None,
         ax=ax,
         errwidth=None,
         capsize=None,
         **kwargs)
Exemplo n.º 3
0
    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)
Exemplo n.º 4
0
 def sns_factorplot(x, y, hue, color, kind, size, legend):  # pragma: no cover
     x, y, hue, color = ut.widget2py(x, y, hue, color)
     return sns.factorplot(x=x, y=y, hue=hue, data=data, row=None, col=None, col_wrap=None, # estimator=<function mean>,
                    ci=95, n_boot=1000, units=None, order=None, hue_order=None, row_order=None, col_order=None,
                    kind=kind, size=size, aspect=1, orient=None, color=color, palette=None,
                    legend=legend, legend_out=True, sharex=True, sharey=True, margin_titles=False,
                    facet_kws=facet_kws, **kwargs)
Exemplo n.º 5
0
    def plot_dataframe(x, y, kind, sharex, sharey, subplots, grid, legend,
                       logx, logy, loglog, colorbar,
                       sort_columns):  # pragma: no cover

        x, y = ut.widget2py(x, y)
        sharex, colorbar = ut.str2bool_or_none(sharex, colorbar)
        data.plot(x=x,
                  y=y,
                  kind=kind,
                  subplots=subplots,
                  sharex=None,
                  sharey=sharey,
                  layout=None,
                  figsize=None,
                  use_index=True,
                  title=None,
                  grid=grid,
                  legend=legend,
                  style=None,
                  logx=logx,
                  logy=logy,
                  loglog=loglog,
                  xticks=None,
                  yticks=None,
                  xlim=None,
                  ylim=None,
                  rot=None,
                  fontsize=None,
                  colormap=colorbar,
                  table=False,
                  yerr=None,
                  xerr=None,
                  secondary_y=False,
                  sort_columns=sort_columns,
                  **kwargs)
Exemplo n.º 6
0
    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)
Exemplo n.º 7
0
    def sns_lmplot(x, y, hue, col, row, legend, size):  # pragma: no cover
        x, y, hue, col, row = ut.widget2py(x, y, hue, col, row)

        return sns.lmplot(x, y, data, hue=hue, col=col, row=row, palette=None, col_wrap=None,
                   size=size, aspect=1, markers='o', sharex=True, sharey=True, hue_order=None,
                   col_order=None, row_order=None, legend=legend, legend_out=True,
                   x_estimator=None, x_bins=None, x_ci='ci', scatter=True, fit_reg=True,
                   ci=95, n_boot=1000, units=None, order=1, logistic=False, lowess=False, robust=False,
                   logx=False, x_partial=None, y_partial=None, truncate=False, x_jitter=None, y_jitter=None,
                   scatter_kws=scatter_kws, line_kws=line_kws)
Exemplo n.º 8
0
    def plot_dataframe(x, y, kind, sharex, sharey, subplots, grid, legend,
                      logx, logy, loglog, colorbar, sort_columns): # pragma: no cover

        x, y = ut.widget2py(x, y)
        sharex, colorbar = ut.str2bool_or_none(sharex, colorbar)
        data.plot(x=x, y=y, kind=kind, subplots=subplots, sharex=None, sharey=sharey,
                layout=None, figsize=None, use_index=True, title=None, grid=grid, legend=legend, style=None,
                logx=logx, logy=logy, loglog=loglog, xticks=None, yticks=None, xlim=None, ylim=None,
                rot=None, fontsize=None, colormap=colorbar, table=False, yerr=None, xerr=None, secondary_y=False,
                sort_columns=sort_columns, **kwargs)
Exemplo n.º 9
0
 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)
Exemplo n.º 10
0
 def sns_pairplot(x_vars, y_vars, hue, kind, diag_kind):  # pragma: no cover
     x_vars, y_vars, hue = ut.widget2py(x_vars, y_vars, hue)
     return sns.pairplot(data,
                         hue=hue,
                         hue_order=None,
                         palette=None,
                         vars=None,
                         x_vars=x_vars,
                         y_vars=y_vars,
                         kind=kind,
                         diag_kind=diag_kind,
                         markers=None,
                         size=2.5,
                         aspect=1,
                         dropna=True,
                         plot_kws=plot_kws,
                         diag_kws=diag_kws,
                         grid_kws=grid_kws)
Exemplo n.º 11
0
 def sns_swarmplot(x, y, hue, split, orient, color, size,
                   linewidth):  # pragma: no cover
     x, y, hue, orient, color = ut.widget2py(x, y, hue, orient, color)
     ax, fig, _ = ut.get_ax_fig_plt()
     return sns.swarmplot(x=x,
                          y=y,
                          hue=hue,
                          data=data,
                          order=None,
                          hue_order=None,
                          split=split,
                          orient=orient,
                          color=color,
                          palette=None,
                          size=size,
                          edgecolor='gray',
                          linewidth=linewidth,
                          ax=ax,
                          **kwargs)
Exemplo n.º 12
0
 def sns_joinplot(x, y, kind, color):  # pragma: no cover
     x, y, color = ut.widget2py(x, y, color)
     # TODO: stat_func
     return sns.jointplot(
         x,
         y,
         data=data,
         kind=kind,  # stat_func=<function pearsonr>,
         color=color,
         size=6,
         ratio=5,
         space=0.2,
         dropna=True,
         xlim=None,
         ylim=None,
         joint_kws=joint_kws,
         marginal_kws=marginal_kws,
         annot_kws=annot_kws,
         **kwargs)
Exemplo n.º 13
0
 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 ??
Exemplo n.º 14
0
 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)
Exemplo n.º 15
0
 def sns_joinplot(x, y, kind, color):  # pragma: no cover
     x, y, color = ut.widget2py(x, y, color)
     # TODO: stat_func
     return sns.jointplot(x, y, data=data, kind=kind, # stat_func=<function pearsonr>,
                         color=color, size=6, ratio=5, space=0.2, dropna=True, xlim=None, ylim=None,
                         joint_kws=joint_kws, marginal_kws=marginal_kws, annot_kws=annot_kws, **kwargs)
Exemplo n.º 16
0
 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)
Exemplo n.º 17
0
 def sns_swarmplot(x, y, hue, split, orient, color, size, linewidth): # pragma: no cover
     x, y, hue, orient, color = ut.widget2py(x, y, hue, orient, color)
     ax, fig, _ = ut.get_ax_fig_plt()
     return sns.swarmplot(x=x, y=y, hue=hue, data=data, order=None, hue_order=None,
                         split=split, orient=orient, color=color, palette=None, size=size,
                         edgecolor='gray', linewidth=linewidth, ax=ax, **kwargs)
Exemplo n.º 18
0
 def sns_pointplot(x, y, hue, split, join, orient, color, linewidth): # pragma: no cover
     x, y, hue, orient, color = ut.widget2py(x, y, hue, orient, color)
     ax, fig, _ = ut.get_ax_fig_plt()
     return sns.pointplot(x=x, y=y, hue=hue, data=data, order=None, hue_order=None, # estimator=<function mean>,
                         ci=95, n_boot=1000, units=None, markers='o', linestyles='-', dodge=False, join=join, scale=1,
                         orient=orient, color=color, palette=None, ax=ax, errwidth=None, capsize=None, **kwargs)
Exemplo n.º 19
0
 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 ??
Exemplo n.º 20
0
 def sns_pairplot(x_vars, y_vars, hue, kind, diag_kind): # pragma: no cover
     x_vars, y_vars, hue = ut.widget2py(x_vars, y_vars, hue)
     return sns.pairplot(data, hue=hue, hue_order=None, palette=None, vars=None, x_vars=x_vars, y_vars=y_vars,
                  kind=kind, diag_kind=diag_kind, markers=None, size=2.5, aspect=1, dropna=True,
                  plot_kws=plot_kws, diag_kws=diag_kws, grid_kws=grid_kws)
Exemplo n.º 21
0
 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)