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

Commitee1fb54

Browse files
committed
FIX: make sure all ticks show up for colorbar minor tick
1 parent22906c2 commitee1fb54

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

‎lib/matplotlib/colorbar.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,8 @@ def __call__(self):
267267
vmin=self._colorbar.norm.vmin
268268
vmax=self._colorbar.norm.vmax
269269
ticks=ticker.AutoMinorLocator.__call__(self)
270-
returnticks[(ticks>=vmin)& (ticks<=vmax)]
270+
rtol= (vmax-vmin)*1e-10
271+
returnticks[(ticks>=vmin-rtol)& (ticks<=vmax+rtol)]
271272

272273

273274
class_ColorbarLogLocator(ticker.LogLocator):

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp