a4d2eb8dc0b30794437d1c81d64ff4abee1e2515,plotting.py,PlotViewer,factorPlot,#PlotViewer#,283

Before Change


        sns.set_context("paper", rc={"legend.fontsize":18,"xtick.labelsize":14,"ytick.labelsize":16,
                            "axes.labelsize":24,"axes.titlesize":30})

        plots = len(data[col].unique())
        wrap=int(wrap)
        """if plots == 1 or wrap==1:
            row=col
            col=None

After Change


        row=None
        wrap=2
        kind="auto"
        aspect = 1.0

        print (df[:10])
        tm = pd.melt(df,id_vars=["label"],
                     var_name="var",value_name="x")
        print (tm[:10])

        """plots = len(df[col].unique())
        wrap=int(wrap)
        if plots == 1 or wrap==1:
            row=col
            col=None
            wrap=None
        if hue == "":
            hue=None"""
        plt.clf()
        g = sns.factorplot("label","x",data=tm, hue=hue, row=row, col=col,
                                col_wrap=wrap, kind=kind,size=3, aspect=float(aspect),
                                legend_out=True,sharey=False,palette="Spectral")
        print (g.fig)
        //rotateLabels(g)
        self.fig.clear()
        self.canvas.figure = g.fig
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 5

Instances


Project Name: dmnfarrell/pandastable
Commit Name: a4d2eb8dc0b30794437d1c81d64ff4abee1e2515
Time: 2015-05-19
Author: farrell.damien@gmail.com
File Name: plotting.py
Class Name: PlotViewer
Method Name: factorPlot


Project Name: datascienceinc/Skater
Commit Name: e8b2e17f4eec658f6a6d53486dbbe3eac48bb0fa
Time: 2017-03-30
Author: aikramer2@gmail.com
File Name: pyinterpret/core/global_interpretation/partial_dependence.py
Class Name: PartialDependence
Method Name: _plot_2d_2_binary_feature


Project Name: kwgoodman/numerox
Commit Name: cb69f51776fe6c75b4349b2ee2f8c0762a5751bf
Time: 2017-12-19
Author: kwgoodman@gmail.com
File Name: numerox/report.py
Class Name: Report
Method Name: performance_df


Project Name: CellProfiler/CellProfiler
Commit Name: 27e908fddd8ef35d2e99a0f08b6baffec2a29d48
Time: 2011-07-11
Author: leek@1fc53939-2000-0410-845c-e8453a809027
File Name: cellprofiler/objects.py
Class Name: Objects
Method Name: relate_ijv