8000 FIX: contouring · matplotlib/matplotlib@11e3464 · GitHub
[go: up one dir, main page]

Skip to content

Commit 11e3464

Browse files
committed
FIX: contouring
1 parent 242cacd commit 11e3464

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.boundaries is not None and self.spacing == 'uniform'
588-
return (type(self.norm) in [colors.Normalize, colors.LogNorm]
589-
and not contouring)
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 f 377F or user set ticks

0 commit comments

Comments
 (0)
0