8000 FIX: allow uniform colorbar for contours · matplotlib/matplotlib@6281da5 · GitHub
[go: up one dir, main page]

Skip to content

Commit 6281da5

Browse files
committed
FIX: allow uniform colorbar for contours
1 parent a256c16 commit 6281da5

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

lib/matplotlib/colorbar.py

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -563,13 +563,10 @@ def _use_auto_colorbar_locator(self):
563563
"""
564564
contouring = ((not self.boundaries is None) and
565565
(self.spacing == 'uniform'))
566-
print(not contouring)
567-
boo = (((type(self.norm) == colors.Normalize)
566+
return (((type(self.norm) == colors.Normalize)
568567
or (type(self.norm) == colors.LogNorm))
569568
and not contouring)
570-
print(boo)
571-
return boo
572-
569+
573570
def _reset_locator_formatter_scale(self):
574571
"""
575572
Reset the locator et al to defaults. Any user-hardcoded changes

0 commit comments

Comments
 (0)
0