@@ -89,6 +89,9 @@ def __init__(self, parent, orientation,
8989 self ._axis = self .yaxis
9090 self ._locstrings = ['right' , 'left' ]
9191 self ._otherstrings = ['top' , 'bottom' ]
92+ # this gets positioned w/o constrained_layout so exclude:
93+ self ._layoutbox = None
94+ self ._poslayoutbox = None
9295
9396 self .set_location (location )
9497 self .set_conversion (conversion , self ._otherargs )
@@ -241,10 +244,11 @@ def set_conversion(self, conversion, otherargs=None):
241244 # make the _convert function...
242245 if isinstance (conversion , mtransforms .Transform ):
243246 self ._convert = conversion
244- set_scale ('arbitrary' , transform = conversion .inverted ())
247+
248+ self .set_xscale ('arbitrary' , transform = conversion .inverted ())
245249 elif isinstance (conversion , str ):
246250 self ._convert = _parse_conversion (conversion , otherargs )
247- set_scale ('arbitrary' , transform = self ._convert .inverted ())
251+ self . set_xscale ('arbitrary' , transform = self ._convert .inverted ())
248252 else :
249253 # linear conversion with offset
250254 if isinstance (conversion , numbers .Number ):
@@ -271,29 +275,19 @@ def draw(self, renderer=None, inframe=False):
271275 parameter when axes initialized.)
272276
273277 """
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 )
281278
282279 if self ._orientation == 'x' :
283280 lims = self ._parent .get_xlim ()
284281 set_lim = self .set_xlim
285282 if self ._orientation == 'y' :
286283 lims = self ._parent .get_ylim ()
287284 set_lim = self .set_ylim
288- print ('parent' , lims )
289285 order = lims [0 ] < lims [1 ]
290286 lims = self ._convert .transform (lims )
291287 neworder = lims [0 ] < lims [1 ]
292288 if neworder != order :
293289 # flip because the transform will take care of the flipping..
294- # lims = lims[::-1]
295- pass
296- print ('childs' , lims )
290+ lims = lims [::- 1 ]
297291
298292 set_lim (lims )
299293 super ().draw (renderer = renderer , inframe = inframe )
@@ -480,9 +474,7 @@ def __init__(self, fac):
480474 self ._fac = fac
481475
482476 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
486478 return q
487479
488480 def inverted (self ):
@@ -555,7 +547,6 @@ def get_transform(self):
555547 The transform for linear scaling is just the
556548 :class:`~matplotlib.transforms.IdentityTransform`.
557549 """
558- print ('tranform' , self ._transform )
559550 return self ._transform
560551
561552 def set_default_locators_and_formatters (self , axis ):
0 commit comments