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

Skip to content

Commit 95e58d7

Browse files
committed
ENH: Make colorbar axes more typical
1 parent 564d4fd commit 95e58d7

38 files changed

+1171
-1793
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)