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

Skip to content

Commit 58568d6

Browse files
committed
Merged revisions 7906 via svnmerge from
https://matplotlib.svn.sourceforge.net/svnroot/matplotlib/branches/v0_99_maint ........ r7906 | leejjoon | 2009-10-25 15:30:43 -0400 (Sun, 25 Oct 2009) | 2 lines axes_divider.py : fix a bug that axes has a wrong size when pack_start is True. ........ svn path=/trunk/matplotlib/; revision=7907
1 parent cce139d commit 58568d6

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

lib/mpl_toolkits/axes_grid/axes_divider.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -441,7 +441,7 @@ def new_horizontal(self, size, pad=None, pack_start=False, **kwargs):
441441
fraction_ref=self._xref)
442442

443443
if pack_start:
444-
self._horizontal.insert(0, pad)
444+
self._horizontal.insert(0, size)
445445
self._xrefindex += 1
446446
locator = self.new_locator(nx=0, ny=0)
447447
else:
@@ -489,7 +489,7 @@ def new_vertical(self, size, pad=None, pack_start=False, **kwargs):
489489
fraction_ref=self._yref)
490490

491491
if pack_start:
492-
self._vertical.insert(0, pad)
492+
self._vertical.insert(0, size)
493493
self._yrefindex += 1
494494
locator = self.new_locator(nx=0, ny=0)
495495
else:

0 commit comments

Comments
 (0)