File tree Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change
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.
You can’t perform that action at this time.
0 commit comments