Skip to content

Commit 447747c

Browse files
committed
DOC: api note
1 parent f5f779d commit 447747c

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)