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

Skip to content

Commit 8a62862

Browse files
committed
Fix error in recent shared axes changes; thanks to David Trem.
svn path=/trunk/matplotlib/; revision=6326
1 parent 63fa3e7 commit 8a62862

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

lib/matplotlib/axes.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -512,8 +512,8 @@ def __init__(self, fig, rect,
512512
self._adjustable = 'datalim'
513513
if sharey is not None:
514514
self._shared_y_axes.join(self, sharey)
515-
if sharex._adjustable == 'box':
516-
sharex._adjustable = 'datalim'
515+
if sharey._adjustable == 'box':
516+
sharey._adjustable = 'datalim'
517517
#warnings.warn(
518518
# 'shared axes: "adjustable" is being changed to "datalim"')
519519
self._adjustable = 'datalim'

0 commit comments

Comments
 (0)