Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit58d39e2

Browse files
committed
MNT: remove the swap_vlim dance
In#14624 we revertedchanging the order of the limits to match the input order. Doing thesame here for consistency.
1 parentdfa8367 commit58d39e2

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
defnonsingular(self,vmin,vmax):
27952795
standard_minpos=1e-7
27962796
initial_range= (standard_minpos,1-standard_minpos)
2797-
swap_vlims=False
27982797
ifvmin>vmax:
2799-
swap_vlims=True
28002798
vmin,vmax=vmax,vmin
28012799
ifnotnp.isfinite(vmin)ornotnp.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
ifvmin==vmax:
28282826
vmin,vmax=0.1*vmin,1-0.1*vmin
2829-
ifswap_vlims:
2830-
vmin,vmax=vmax,vmin
2827+
28312828
returnvmin,vmax
28322829

28332830

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp