@@ -89,6 +89,9 @@ def __init__(self, parent, orientation,
89
89
self ._axis = self .yaxis
90
90
self ._locstrings = ['right' , 'left' ]
91
91
self ._otherstrings = ['top' , 'bottom' ]
92
+ # this gets positioned w/o constrained_layout so exclude:
93
+ self ._layoutbox = None
94
+ self ._poslayoutbox = None
92
95
93
96
self .set_location (location )
94
97
self .set_conversion (conversion , self ._otherargs )
@@ -241,10 +244,11 @@ def set_conversion(self, conversion, otherargs=None):
241
244
# make the _convert function...
242
245
if isinstance (conversion , mtransforms .Transform ):
243
246
self ._convert = conversion
244
- set_scale ('arbitrary' , transform = conversion .inverted ())
247
+
248
+ self .set_xscale ('arbitrary' , transform = conversion .inverted ())
245
249
elif isinstance (conversion , str ):
246
250
self ._convert = _parse_conversion (conversion , otherargs )
247
- set_scale ('arbitrary' , transform = self ._convert .inverted ())
251
+ self . set_xscale ('arbitrary' , transform = self ._convert .inverted ())
248
252
else :
249
253
# linear conversion with offset
250
254
if isinstance (conversion , numbers .Number ):
@@ -271,29 +275,19 @@ def draw(self, renderer=None, inframe=False):
271
275
parameter when axes initialized.)
272
276
273
277
"""
274
- # check parent scale... Make these match....
275
- if self ._orientation == 'x' :
276
- scale = self ._parent .get_xscale ()
277
- self .set_xscale (scale )
278
- if self ._orientation == 'y' :
279
- scale = self ._parent .get_yscale ()
280
- self .set_yscale (scale )
281
278
282
279
if self ._orientation == 'x' :
283
280
lims = self ._parent .get_xlim ()
284
281
set_lim = self .set_xlim
285
282
if self ._orientation == 'y' :
286
283
lims = self ._parent .get_ylim ()
287
284
set_lim = self .set_ylim
288
- print ('parent' , lims )
289
285
order = lims [0 ] < lims [1 ]
290
286
lims = self ._convert .transform (lims )
291
287
neworder = lims [0 ] < lims [1 ]
292
288
if neworder != order :
293
289
# flip because the transform will take care of the flipping..
294
- # lims = lims[::-1]
295
- pass
296
- print ('childs' , lims )
290
+ lims = lims [::- 1 ]
297
291
298
292
set_lim (lims )
299
293
super ().draw (renderer = renderer , inframe = inframe )
@@ -480,9 +474,7 @@ def __init__(self, fac):
480
474
self ._fac = fac
481
475
482
476
def transform_non_affine (self , values ):
483
- with np .errstate (divide = "ignore" , invalid = "ignore" ):
484
- q = self ._fac / values
485
- print ('q' , values , q )
477
+ q = self ._fac / values
486
478
return q
487
479
488
480
def inverted (self ):
@@ -555,7 +547,6 @@ def get_transform(self):
555
547
The transform for linear scaling is just the
556
548
:class:`~matplotlib.transforms.IdentityTransform`.
557
549
"""
558
- print ('tranform' , self ._transform )
559
550
return self ._transform
560
551
561
552
def set_default_locators_and_formatters (self , axis ):
0 commit comments