10000 Improve layout of Fill Betweenx Demo by timhoffm · Pull Request #12000 · matplotlib/matplotlib · GitHub
[go: up one dir, main page]

Skip to content

Improve layout of Fill Betweenx Demo #12000

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

Conversation

timhoffm
Copy link
Member
@timhoffm timhoffm commented Sep 2, 2018

PR Summary

The layout of the Fill Betweenx Demo is a bit cramped.

This PR fixes this by changing from a row layout to a column layout. It includes some minor text cleanup as well.

New layout

8000
@timhoffm timhoffm added this to the v3.1 milestone Sep 2, 2018
@@ -13,35 +14,35 @@
x1 = np.sin(2 * np.pi * y)
x2 = 1.2 * np.sin(4 * np.pi * y)

fig, [ax1, ax2, ax3] = plt.subplots(3, 1, sharex=True)
fig, [ax1, ax2, ax3] = plt.subplots(1, 3, sharey=True, figsize=(6, 6))
Copy link
Member

Choose a reason for hiding this comment

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

Would this demo be helped by constrained_layout=True?

Copy link
Member Author

Choose a reason for hiding this comment

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

Not in particular. The main issue is that the suplots were stacked vertically. This squeezes the y axis stongly so that it's hard to see what's going on. I just changed to stacking horizontally. This looks ok even without constrainedlayout. I've linked the result in the first post above.

@jklymak jklymak modified the milestones: v3.1, v2.2-doc Sep 2, 2018
@jklymak jklymak merged commit 7a45b64 into matplotlib:master Sep 2, 2018
meeseeksmachine pushed a commit to meeseeksmachine/matplotlib that referenced this pull request Sep 2, 2018
@timhoffm timhoffm deleted the fill_betweenx-example_orientation branch September 2, 2018 21:51
QuLogic added a commit that referenced this pull request Sep 3, 2018
…000-on-v2.2.3-doc

Backport PR #12000 on branch v2.2.3-doc (Improve layout of Fill Betweenx Demo)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants
0