7c2b45d962bcf8eda85329b8ce52796a4d9257fc,lib/matplotlib/figure.py,Figure,get_tightbbox,#Figure#Any#Any#,2239

Before Change



        bb.extend(
            ax.get_tightbbox(renderer, bbox_extra_artists=bbox_extra_artists)
            for ax in self.axes if ax.get_visible())

        if len(bb) == 0:
            return self.bbox_inches

After Change


            if bbox is not None and (bbox.width != 0 or bbox.height != 0):
                bb.append(bbox)

        for ax in self.axes:
            if ax.get_visible():
                // some axes don"t take the bbox_extra_artists kwarg so we
                // need this conditional....
                try:
                    bbox = ax.get_tightbbox(renderer,
                            bbox_extra_artists=bbox_extra_artists)
                except TypeError:
                    bbox = ax.get_tightbbox(renderer)
                bb.append(bbox)

        if len(bb) == 0:
            return self.bbox_inches

        _bbox = Bbox.union([b for b in bb if b.width != 0 or b.height != 0])
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 12

Instances


Project Name: matplotlib/matplotlib
Commit Name: 7c2b45d962bcf8eda85329b8ce52796a4d9257fc
Time: 2018-10-28
Author: jklymak@gmail.com
File Name: lib/matplotlib/figure.py
Class Name: Figure
Method Name: get_tightbbox


Project Name: matplotlib/matplotlib
Commit Name: 474a90c50a75b5dbffa6b018ebc0a3a26f689649
Time: 2020-04-30
Author: jklymak@gmail.com
File Name: lib/matplotlib/tight_layout.py
Class Name:
Method Name: auto_adjust_subplotpars


Project Name: matplotlib/matplotlib
Commit Name: 6af745055995bdb2891470a0f030cf481035dcc9
Time: 2018-10-28
Author: jklymak@gmail.com
File Name: lib/matplotlib/figure.py
Class Name: Figure
Method Name: get_tightbbox