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

Commit7d58b62

Browse files
committed
FIX: contouring
1 parent2950bdb commit7d58b62

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

‎lib/matplotlib/colorbar.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -585,8 +585,7 @@ def _use_auto_colorbar_locator(self):
585585
one. (check is used twice so factored out here...)
586586
"""
587587
contouring=self.boundariesisnotNoneandself.spacing=='uniform'
588-
return (type(self.norm)in [colors.Normalize,colors.LogNorm]
589-
andnotcontouring)
588+
return (type(self.norm)in [colors.Normalize,colors.LogNorm])
590589

591590
def_reset_locator_formatter_scale(self):
592591
"""

‎lib/matplotlib/tests/test_colorbar.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -373,7 +373,6 @@ def test_colorbar_get_ticks():
373373
data=np.arange(1200).reshape(30,40)
374374
levels= [0,200,400,600,800,1000,1200]
375375

376-
plt.subplot()
377376
plt.contourf(data,levels=levels)
378377

379378
# testing getter for user set ticks

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp