8000 MNT: remove the swap_vlim dance · matplotlib/matplotlib@58d39e2 · GitHub
[go: up one dir, main page]

Skip to content

Commit 58d39e2

Browse files
committed
MNT: remove the swap_vlim dance
In #14624 we reverted changing the order of the limits to match the input order. Doing the same here for consistency.
1 parent dfa8367 commit 58d39e2

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

lib/matplotlib/ticker.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2794,9 +2794,7 @@ def ideal_ticks(x):
27942794
def nonsingular(self, vmin, vmax):
27952795
standard_minpos = 1e-7
27962796
initial_range = (standard_minpos, 1 - standard_minpos)
2797-
swap_vlims = False
27982797
if vmin > vmax:
2799-
swap_vlims = True
28002798
vmin, vmax = vmax, vmin
28012799
if not np.isfinite(vmin) or not np.isfinite(vmax):
28022800
vmin, vmax = initial_range # Initial range, no data plotted yet.
@@ -2826,8 +2824,7 @@ def nonsingular(self, vmin, vmax):
28262824
vmax = 1 - minpos
28272825
if vmin == vmax:
28282826
vmin, vmax = 0.1 * vmin, 1 - 0.1 * vmin
2829-
if swap_vlims:
2830-
vmin, vmax = vmax, vmin
2827+
28312828
return vmin, vmax
28322829

28332830

0 commit comments

Comments
 (0)
0