9b068b458f4864e05927deab2f374c26b7a64cce,plotnine/ggplot.py,ggplot,draw,#ggplot#Any#,162

Before Change


        self._build()

        // If no theme we use the default
        self.theme = self.theme or theme_get()

        try:
            with mpl.rc_context():
                // setup & rcparams theming
                self.theme.apply_rcparams()
                figure, axs = self._create_figure()
                self._setup_parameters()
                self._resize_panels()
                // Drawing
                self._draw_layers()
                self._draw_facet_labels()
                self._draw_labels()
                self._draw_legend()
                self._draw_title()
                self._draw_watermarks()
                // Artist object theming
                self._apply_theme()
        except Exception as err:
            if self.figure is not None:
                plt.close(self.figure)
            raise err

        if return_ggplot:
            output = self.figure, self
        else:
            output = self.figure

After Change


        // Pandas deprecated is_copy, and when we create new dataframes
        // from slices we do not want complaints. We always uses the
        // new frames knowing that they are separate from the original.
        with pd.option_context("mode.chained_assignment", None):
            return self._draw(return_ggplot)

    def _draw(self, return_ggplot=False):
        // Prevent against any modifications to the users
        // ggplot object. Do the copy here as we may/may not
        // assign a default theme
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 8

Instances


Project Name: has2k1/plotnine
Commit Name: 9b068b458f4864e05927deab2f374c26b7a64cce
Time: 2018-01-13
Author: has2k1@gmail.com
File Name: plotnine/ggplot.py
Class Name: ggplot
Method Name: draw


Project Name: sassoftware/python-dlpy
Commit Name: 87155f969c52d83d6fd59e79c130833b60f666aa
Time: 2019-02-06
Author: docair@dlgrd007.unx.sas.com
File Name: dlpy/network.py
Class Name: Network
Method Name: load_weights_from_file_with_labels


Project Name: sassoftware/python-dlpy
Commit Name: 87155f969c52d83d6fd59e79c130833b60f666aa
Time: 2019-02-06
Author: docair@dlgrd007.unx.sas.com
File Name: dlpy/network.py
Class Name: Network
Method Name: load_weights_from_file