8000 DOC: constrained layout guide (fix: Spacing with colorbars) by pharshalp · Pull Request #12740 · matplotlib/matplotlib · GitHub
[go: up one dir, main page]

Skip to content

DOC: constrained layout guide (fix: Spacing with colorbars) #12740

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 1 commit into from
Nov 4, 2018
Merged

DOC: constrained layout guide (fix: Spacing with colorbars) #12740

merged 1 commit into from
Nov 4, 2018

Conversation

pharshalp
Copy link
Contributor

PR Summary

Fixed a line in the 'constrained layout guide' that appeared to be slightly misleading. The guide says
"Colorbars still RESPECT the w_pad and h_pad values" and then goes on to show in the next block that w_pad, h_pad can be overridden by setting a non-zero value for the pad kwarg when calling fig.colorbar.

Also fixed an incorrect mappable being passed to fig.colorbar.

PR Checklist

  • [ ] Has Pytest style unit tests
  • Code is Flake 8 compliant
  • [ ] New features are documented, with examples if plot related
  • Documentation is sphinx and numpydoc compliant
  • [ ] Added an entry to doc/users/next_whats_new/ if major new feature (follow instructions in README.rst there)
  • [ ] Documented in doc/api/api_changes.rst if API changed in a backward-incompatible way

Copy link
Member
@jklymak jklymak left a comment

Choose a reason for hiding this comment

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

Thanks, LGTM!

@jklymak jklymak added Documentation topic: geometry manager LayoutEngine, Constrained layout, Tight layout labels Nov 4, 2018
@jklymak jklymak added this to the v3.0.0-doc milestone Nov 4, 2018
@jklymak jklymak merged commit 02d7f38 into matplotlib:master Nov 4, 2018
meeseeksmachine pushed a commit to meeseeksmachine/matplotlib that referenced this pull request Nov 4, 2018
meeseeksmachine pushed a commit to meeseeksmachine/matplotlib that referenced this pull request Nov 4, 2018
@pharshalp pharshalp deleted the constrained_layout_doc_fix branch November 4, 2018 19:18
@pharshalp pharshalp restored the constrained_layout_doc_fix branch November 4, 2018 19:23
@pharshalp pharshalp deleted the constrained_layout_doc_fix branch November 4, 2018 19:24
timhoffm pushed a commit that referenced this pull request Nov 4, 2018
QuLogic added a commit that referenced this pull request Nov 5, 2018
…740-on-v3.0.0-doc

Backport PR #12740 on branch v3.0.0-doc (DOC: constrained layout guide (fix: Spacing with colorbars))
@QuLogic QuLogic modified the milestones: v3.0.0-doc, v3.0.1-doc Nov 27, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Documentation topic: geometry manager LayoutEngine, Constrained layout, Tight layout
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants
0