Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 185a298

Browse filesBrowse files
authored
Merge pull request #20054 from jklymak/enh-better-colorbar-axes
Enh better colorbar axes
2 parents ca6e9dc + 146856b commit 185a298
Copy full SHA for 185a298
Expand file treeCollapse file tree

38 files changed

+1230
-1791
lines changed
+19Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.