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

Skip to content

Commit 185a298

Browse files
authored
Merge pull request #20054 from jklymak/enh-better-colorbar-axes
Enh better colorbar axes
2 parents ca6e9dc + 146856b commit 185a298

38 files changed

+1230
-1791
lines changed
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
Axes used to make colorbar now wrapped
2+
======================================
3+
4+
The axes used to place a colorbar is now wrapped by a new parent class
5+
(``ColorbarAxes``) when the colorbar is created::
6+
7+
cb = fig.colorbar(im, cax=cax)
8+
9+
This means that ``cb.ax`` is no longer the same object as ``cax``. However,
10+
we map all the methods from ``cb.ax`` onto ``cax`` so ``cax`` should remain
11+
functionally the same as ``cb.ax``.
12+
13+
Colorbar lines no longer clipped
14+
================================
15+
16+
If a colorbar has lines added to it (e.g. for contour lines), these will
17+
no longer be clipped. This is an improvement for lines on the edge of
18+
the colorbar, but could lead to lines off the colorbar if the limits of
19+
the colorbar are changed.

0 commit comments

Comments
 (0)