Movatterモバイル変換


[0]ホーム

URL:


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

Sign up
Appearance settings

Commitcf066f3

Browse files
committed
ENH: Make colorbar axes more typical
1 parent564d4fd commitcf066f3

File tree

38 files changed

+1171
-1793
lines changed

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)

[8]ページ先頭

©2009-2025 Movatter.jp