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

Skip to content

Commit 721b949

Browse files
committed
svn path=/trunk/matplotlib/; revision=2251
1 parent d9b429e commit 721b949

File tree

3 files changed

+17
-4
lines changed

3 files changed

+17
-4
lines changed

CHANGELOG

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
2006-04-03 Fixed the bug in which widgets would not respond to
2+
events. This regressed the twinx functionality, so I
3+
also updated subplots_adjust to update axes that share
4+
an x or y with a subplot instance. - CM
5+
16
2006-04-02 Moved PBox class to transforms and deleted pbox.py;
27
made pylab axis command a thin wrapper for Axes.axis;
38
more tweaks to aspect-ratio handling; fixed Axes.specgram

lib/matplotlib/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@
143143
from __future__ import generators
144144

145145

146-
__version__ = '0.88svn'
146+
__version__ = '0.88'
147147
__revision__ = '$Revision$'
148148
__date__ = '$Date$'
149149

lib/matplotlib/figure.py

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -830,9 +830,17 @@ def subplots_adjust(self, *args, **kwargs):
830830
self.subplotpars.update(*args, **kwargs)
831831
import matplotlib.axes
832832
for ax in self.axes:
833-
if not isinstance(ax, matplotlib.axes.Subplot): continue
834-
ax.update_params()
835-
ax.set_position([ax.figLeft, ax.figBottom, ax.figW, ax.figH])
833+
if not isinstance(ax, matplotlib.axes.Subplot):
834+
# Check if sharing a subplots axis
835+
if ax._sharex is not None and isinstance(ax._sharex, matplotlib.axes.Subplot):
836+
ax._sharex.update_params()
837+
ax.set_position([ax._sharex.figLeft, ax._sharex.figBottom, ax._sharex.figW, ax._sharex.figH])
838+
elif ax._sharey is not None and isinstance(ax._sharey, matplotlib.axes.Subplot):
839+
ax._sharey.update_params()
840+
ax.set_position([ax._sharey.figLeft, ax._sharey.figBottom, ax._sharey.figW, ax._sharey.figH])
841+
else:
842+
ax.update_params()
843+
ax.set_position([ax.figLeft, ax.figBottom, ax.figW, ax.figH])
836844

837845

838846

0 commit comments

Comments
 (0)