We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f5f779d commit 447747cCopy full SHA for 447747c
doc/api/next_api_changes/2019-01-27-JMK.rst
@@ -0,0 +1,12 @@
1
+`matplotlib.colorbar.ColorbarBase` is no longer a subclass of `.ScalarMappable`
2
+-------------------------------------------------------------------------------
3
+
4
+This inheritance lead to a confusing situation where the
5
+`ScalarMappable` passed to `matplotlib.colorbar.Colorbar` (`~.Figure.colorbar`)
6
+had a ``set_norm`` method, as did the colorbar. The colorbar is now purely a
7
+slave to the `ScalarMappable` norm and colormap, and the old inherited methods
8
+`~matplotlib.colorbar.ColorbarBase.set_norm`,
9
+`~matplotlib.colorbar.ColorbarBase.set_cmap`,
10
+`~matplotlib.colorbar.ColorbarBase.set_clim` are deprecated, as are the
11
+getter versions of those calls. To set the norm associated with a colorbar do
12
+``colorbar.mappable.set_norm()`` etc.
0 commit comments