File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -902,10 +902,10 @@ def format(
902902 # want this sometimes! Same goes for spines!
903903 xspineloc = _not_none (xloc = xloc , xspineloc = xspineloc )
904904 yspineloc = _not_none (yloc = yloc , yspineloc = yspineloc )
905- xtickloc = _not_none ( xtickloc , xspineloc , self . _get_loc ( 'x ' , 'xtick' ))
906- ytickloc = _not_none (ytickloc , yspineloc , self . _get_loc ( 'y' , 'ytick' ) )
907- xspineloc = _not_none ( xspineloc , self . _get_loc ( 'x ' , 'axes.spines' ))
908- yspineloc = _not_none (yspineloc , self . _get_loc ( 'y' , 'axes.spines' ) )
905+ if isinstance ( xspineloc , str ) and xspineloc not in ( 'zero ' , 'center' ):
906+ xtickloc = _not_none (xtickloc , xspineloc )
907+ if isinstance ( yspineloc , str ) and yspineloc not in ( 'zero ' , 'center' ):
908+ ytickloc = _not_none (ytickloc , yspineloc )
909909 if xtickloc != 'both' : # then infer others
910910 xticklabelloc = _not_none (xticklabelloc , xtickloc )
911911 if xticklabelloc in ('bottom' , 'top' ):
You can’t perform that action at this time.
0 commit comments