-
-
Notifications
You must be signed in to change notification settings - Fork 7.9k
Closed
Labels
Release criticalFor bugs that make the library unusable (segfaults, incorrect plots, etc) and major regressions.For bugs that make the library unusable (segfaults, incorrect plots, etc) and major regressions.topic: color/colorbar
Milestone
Description
As reported at astropy by @dstansby: (astropy/astropy#11800) colorbars with norms that do not have a scale associated with them are not being ticked properly.
import matplotlib.pyplot as plt
import numpy as np
import matplotlib.colors as mcolors
fig, ax = plt.subplots()
pc = ax.imshow(np.arange(100).reshape(10, 10), norm=mcolors.TwoSlopeNorm(20, 0, 100), cmap='RdBu_r')
cb = fig.colorbar(pc, extend='both')
plt.show()
3.4.2 (correct)
Master (incorrect)
Metadata
Metadata
Assignees
Labels
Release criticalFor bugs that make the library unusable (segfaults, incorrect plots, etc) and major regressions.For bugs that make the library unusable (segfaults, incorrect plots, etc) and major regressions.topic: color/colorbar