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 075618b

Browse filesBrowse files
authored
Merge pull request #9456 from navdeeprana/document-shrink
Documented the incompatibility of shrink and cax kwargs in colorbar.
2 parents 401c1d7 + 1269f62 commit 075618b
Copy full SHA for 075618b

File tree

Expand file treeCollapse file tree

1 file changed

+3
-5
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+3
-5
lines changed

‎lib/matplotlib/colorbar.py

Copy file name to clipboardExpand all lines: lib/matplotlib/colorbar.py
+3-5Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -175,11 +175,9 @@
175175
If *mappable* is a :class:`~matplotlib.contours.ContourSet`, its *extend*
176176
kwarg is included automatically.
177177
178-
Note that the *shrink* kwarg provides a simple way to keep a vertical
179-
colorbar, for example, from being taller than the axes of the mappable
180-
to which the colorbar is attached; but it is a manual method requiring
181-
some trial and error. If the colorbar is too tall (or a horizontal
182-
colorbar is too wide) use a smaller value of *shrink*.
178+
The *shrink* kwarg provides a simple way to scale the colorbar with respect
179+
to the axes. Note that if *cax* is specified it determines the size of the
180+
colorbar and *shrink* and *aspect* kwargs are ignored.
183181
184182
For more precise control, you can manually specify the positions of
185183
the axes objects in which the mappable and the colorbar are drawn. In

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.