408c464655bdfad534827f57b9b1a7548fce4763,pandastable/plugins/seabornplots.py,SeabornPlugin,_plot,#SeabornPlugin#,110

Before Change


            col=None
        print(labels,hue,col)
        mng = plt.get_current_fig_manager()
        mng.resize(*mng.window.maxsize())
        try:
            g = sns.factorplot(x=x,y="value",data=t, hue=hue, col=col,
                            col_wrap=wrap, kind=kind,size=3, aspect=float(aspect),
                            legend_out=True, sharey=False, palette=palette)

After Change


            col=None
            row=1
        else:
            row=None
        hue = kwds["hue"]
        wrap=int(kwds["wrap"])
        kind = kwds["kind"]
        x = kwds["x"]
        if x == "":
            x = "var"
        aspect = 1.0
        palette=kwds["palette"]

        labels = list(df.select_dtypes(include=["object","category"]).columns)
        t = pd.melt(df,id_vars=labels,
                     var_name="var",value_name="value")
        print (t[10:20])
        if hue == "":
            hue=None
        if col == "":
            col=None
        print(labels,hue,col)
        try:
            g = sns.factorplot(x=x,y="value",data=t, hue=hue, col=col, row=row,
                            col_wrap=wrap, kind=kind,size=3, aspect=float(aspect),
                            legend_out=True, sharey=False, palette=palette)
            self.g = g
        except Exception as e:
            self.showWarning(e)
            return

        //need to always make a new canvas to get size right
        for child in self.pf.winfo_children():
            child.destroy()
        self.fig, self.canvas = plotting.addFigure(self.pf, g.fig)
        //self.fig.suptitle("test")
        if kwds["despine"]==True:
            sns.despine()
        for ax in g.axes.flatten():
            for t in ax.get_xticklabels():
                t.set(rotation=30)

        sns.set(font_scale=kwds["fontscale"])
        plt.tight_layout()
        self.fig.subplots_adjust(top=0.9, bottom=0.1)
        self.canvas.draw()
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 4

Instances


Project Name: dmnfarrell/pandastable
Commit Name: 408c464655bdfad534827f57b9b1a7548fce4763
Time: 2015-12-02
Author: farrell.damien@gmail.com
File Name: pandastable/plugins/seabornplots.py
Class Name: SeabornPlugin
Method Name: _plot


Project Name: ilastik/ilastik
Commit Name: dfd62d12e5dcaa0984df1c8cd7dae6db5345f34c
Time: 2011-06-28
Author: christoph.straehle@iwr.uni-heidelberg.de
File Name: lazyflow/operators/valueProviders.py
Class Name: ListToMultiOperator
Method Name: notifyConnect


Project Name: brian-team/brian2
Commit Name: 25ca3a779599aa991c56d85995cfa25f2e7faa94
Time: 2013-06-18
Author: marcel.stimberg@ens.fr
File Name: brian2/synapses/synapses.py
Class Name: Synapses
Method Name: connect_one_to_one


Project Name: Esri/raster-functions
Commit Name: b895d74347d7749b02d8ea57b5f5d71101297a34
Time: 2015-10-18
Author: akferoz@esri.com
File Name: functions/BlockStatistics.py
Class Name: BlockStatistics
Method Name: updatePixels