8000 DOC: api note · matplotlib/matplotlib@4f616b2 · GitHub
[go: up one dir, main page]

Skip to content

Commit 4f616b2

Browse files
committed
DOC: api note
1 parent f5f779d commit 4f616b2

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
`.ColorbarBase` is no longer a subclass of `.ScalarMappable`
2+
------------------------------------------------------------
3+
4+
This inheritance lead to a confusing situation where the
5+
`ScalarMappable` passed to `.Colorbar` (`~.Figure.colorbar`) had a
6+
``set_norm`` method, as did the colorbar. The colorbar is now a slave
7+
to the `ScalarMappable` norm and colormap, and the old inherited methods
8+
`.ColorbarBase.set_norm`, `.ColorbarBase.set_cmap`, `.ColorbarBase.set_clim`
9+
are deprecated, as are the getter versions of those calls. To set the
10+
norm associated with a colorbar do ``colorbar.mappable.set_norm()`` etc.

0 commit comments

Comments
 (0)
0