Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 76f527c commit bf833a8Copy full SHA for bf833a8
doc/api/next_api_changes/behavior/20XXX-GL.rst
@@ -0,0 +1,16 @@
1
+Colorbars are now an instance of Axes
2
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
3
+
4
+The :class:`.colorbar.Colorbar` class now inherits from `.axes.Axes`,
5
+meaning that all of the standard methods of ``Axes`` can be used
6
+directly on the colorbar object itself rather than having to access the
7
+``ax`` attribute. For example, ::
8
9
+ cbar.set_yticks()
10
11
+rather than ::
12
13
+ cbar.ax.set_yticks()
14
15
+We are leaving the ``cbar.ax`` attribute in place as a pass-through for now,
16
+which just maps back to the colorbar object.
0 commit comments