File tree Expand file tree Collapse file tree 1 file changed +8
-8
lines changed
Filter options
Expand file tree Collapse file tree 1 file changed +8
-8
lines changed
Original file line number Diff line number Diff line change @@ -1642,17 +1642,17 @@ def view_limits(self, vmin, vmax):
1642
1642
vmin = b ** (vmax - self .numdecs )
1643
1643
return vmin , vmax
1644
1644
1645
- if rcParams ['axes.autolimit_mode' ] == 'round_numbers' :
1646
- minpos = self .axis .get_minpos ()
1645
+ minpos = self .axis .get_minpos ()
1647
1646
1648
- if minpos <= 0 or not np .isfinite (minpos ):
1649
- raise ValueError (
1650
- "Data has no positive values, and therefore can not be "
1651
- "log-scaled." )
1647
+ if minpos <= 0 or not np .isfinite (minpos ):
1648
+ raise ValueError (
1649
+ "Data has no positive values, and therefore can not be "
1650
+ "log-scaled." )
1652
1651
1653
- if vmin <= minpos :
1654
- vmin = minpos
1652
+ if vmin <= minpos :
1653
+ vmin = minpos
1655
1654
1655
+ if rcParams ['axes.autolimit_mode' ] == 'round_numbers' :
1656
1656
if not is_decade (vmin , self ._base ):
1657
1657
vmin = decade_down (vmin , self ._base )
1658
1658
if not is_decade (vmax , self ._base ):
You can’t perform that action at this time.
0 commit comments