f6528ed2082eb63b23f63a908d524cb64c0dcc8a,hyperspy/drawing/image.py,ImagePlot,create_figure,#ImagePlot#Any#Any#,199

Before Change



        // get the aspect_ratio we want to display
        aspect_ratio_image = self.xaxis.size / self.yaxis.size * self._aspect
        clipped_rcParams_figsize = np.array(
            plt.rcParams["figure.figsize"]).clip(min_size, max_size)
        // Find which direction should be limited by rcParams
        if aspect_ratio_image < wfactor:  // max size defined by height
            max_size = clipped_rcParams_figsize[1]
            figsize = (max_size * aspect_ratio_image, max_size)
        else:  // max size defined by width
            max_size = clipped_rcParams_figsize[0]
            figsize = (max_size, max_size / aspect_ratio_image)

After Change



        height = abs(self._extent[3] - self._extent[2]) * self._aspect
        width = abs(self._extent[1] - self._extent[0])
        figsize = np.array((width * wfactor, height)) * \
           max(plt.rcParams["figure.figsize"]) / max(width * wfactor, height)
        self.figure = utils.create_figure(
           window_title=("Figure " + self.title
                         if self.title
                         else None),
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: hyperspy/hyperspy
Commit Name: f6528ed2082eb63b23f63a908d524cb64c0dcc8a
Time: 2017-05-25
Author: frandelapena@gmail.com
File Name: hyperspy/drawing/image.py
Class Name: ImagePlot
Method Name: create_figure


Project Name: aleju/imgaug
Commit Name: cf9fcac0f251a83b0bb800bea15053c6f9fa18bf
Time: 2018-12-24
Author: alexander.jung@zenuity.com
File Name: imgaug/augmenters/geometric.py
Class Name: Affine
Method Name: _augment_images_by_samples


Project Name: IBM/adversarial-robustness-toolbox
Commit Name: 6df9cbf6888fd1482ceeaf4316b60a9714b5ce82
Time: 2017-07-03
Author: valentina.zantedeschi@ibm.com
File Name: demo/utils.py
Class Name:
Method Name: data_augmentation