6297e57902fefaca96e4bc60ad17f65be44cd825,ggplot/ggplot.py,ggplot,__repr__,#ggplot#,117

Before Change


                extra_plot.axis("off")

            // TODO: This isn"t working
            plots = [None for i in range(self.n_dim_x)]
            for i in range(self.n_dim_x):
                idx = (i % self.n_high) * self.n_wide + (i % self.n_wide)
                plots[idx] = (i % self.n_wide, i % self.n_high)

            plots = [plot for plot in plots if plot is not None]
            plots = sorted(plots, key=lambda x: x[1] + x[0] * self.n_high + 1)

        else:
            fig, axs = plt.subplots(self.n_high, self.n_wide)

After Change


                    title = facet
                    if isinstance(facet, tuple):
                        title = ", ".join(facet)
                    plt.table(cellText=[[title]], loc="top",
                            cellLoc="center", cellColours=[["lightgrey"]])
                    cntr += 1
                scale_facet_wrap(self.n_wide, self.n_high, [], self.facet_scales)
        else:
            for layer in self._get_layers(self.data):
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 5

Instances


Project Name: has2k1/plotnine
Commit Name: 6297e57902fefaca96e4bc60ad17f65be44cd825
Time: 2013-10-26
Author: greg@yhathq.com
File Name: ggplot/ggplot.py
Class Name: ggplot
Method Name: __repr__


Project Name: googledatalab/pydatalab
Commit Name: a0c0f4d3200f31be58caac1a803bcc85622221db
Time: 2016-08-18
Author: supriyagarg@google.com
File Name: datalab/stackdriver/commands/_monitoring.py
Class Name:
Method Name: _list_resource_descriptors


Project Name: googledatalab/pydatalab
Commit Name: a0c0f4d3200f31be58caac1a803bcc85622221db
Time: 2016-08-18
Author: supriyagarg@google.com
File Name: datalab/stackdriver/commands/_monitoring.py
Class Name:
Method Name: _list_metric_descriptors