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

Appearance settings

Commit dd435a1

Browse filesBrowse files
committed
FIX: contouring
1 parent 0edc78b commit dd435a1
Copy full SHA for dd435a1

File tree

Expand file treeCollapse file tree

2 files changed

+1
-3
lines changed
Filter options
Expand file treeCollapse file tree

2 files changed

+1
-3
lines changed

‎lib/matplotlib/colorbar.py

Copy file name to clipboardExpand all lines: lib/matplotlib/colorbar.py
+1-2Lines 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

Copy file name to clipboardExpand all lines: lib/matplotlib/tests/test_colorbar.py
-1Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.