Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 6569ca7

Browse files
committed
Review actions.
1 parent b8bc21f commit 6569ca7

2 files changed

Lines changed: 7 additions & 2 deletions

File tree

doc/users/whats_new.rst

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,13 @@ They may be symmetric or weighted.
4040

4141
.. plot:: mpl_examples/pylab_examples/stackplot_demo2.py
4242

43+
Improved ``bbox_inches="tight"`` functionality
44+
----------------------------------------------
45+
Passing ``bbox_inches="tight"`` through to :func:`plt.save` now takes into account
46+
*all* artists on a figure - this was previously not the case and led to several
47+
corner cases which did not function as expected.
48+
49+
4350
Remember save directory
4451
-----------------------
4552
Martin Spacek made the save figure dialog remember the last directory saved

lib/matplotlib/backend_bases.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2099,8 +2099,6 @@ def print_figure(self, filename, dpi=None, facecolor='w', edgecolor='w',
20992099
bbox_filtered = []
21002100
for a in bbox_artists:
21012101
bbox = a.get_window_extent(renderer)
2102-
# print('{0:40} - {1.width:5}, {1.height:5} '
2103-
# '{1}'.format(type(a), bbox))
21042102
if a.get_clip_on():
21052103
clip_box = a.get_clip_box()
21062104
if clip_box is not None:

0 commit comments

Comments
 (0)