8000 Documented the incompatibility of shrink and cax kwargs in colorbar. by navdeeprana · Pull Request #9456 · matplotlib/matplotlib · GitHub
[go: up one dir, main page]

Skip to content

Documented the incompatibility of shrink and cax kwargs in colorbar. #9456

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Oct 18, 2017
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Documented the incompatibility of shrink and cax kwargs in colorbar.
  • Loading branch information
navdeep rana committed Oct 17, 2017
commit ab4b878b12e1599febfeb18348812e1c3eea715b
3 changes: 3 additions & 0 deletions lib/matplotlib/colorbar.py
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,9 @@
to which the colorbar is attached; but it is a manual method requiring
Copy link
Member
@jklymak jklymak Oct 17, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd actually drop this part. *shrink* means to shrink for many reasons. I routinely shrink my colorbars for esthetic reasons that have nothing to do w/ the size of the mappable. I don't see why this note is here.

some trial and error. If the colorbar is too tall (or a horizontal
colorbar is too wide) use a smaller value of *shrink*.
Further *shrink* and *cax* kwargs are incompatible with each other and shrink
applies only if the colorbar makes its own Axes by sharing space from the Axes
in which the mappable resides.

For more precise control, you can manually specify the positions of
the axes objects in which the mappable and the colorbar are drawn. In
Expand Down
0