Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit bf833a8

Browse files
committed
DOC: Adding a release note for the Colorbar behavior change
1 parent 76f527c commit bf833a8

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)