Skip to content

MEP12 ganged example - #8229

Merged
anntzer merged 5 commits into
matplotlib:masterfrom
dstansby:ganged-example
Mar 16, 2017
Merged

anntzer merged 5 commits into
matplotlib:masterfrom
dstansby:ganged-example

Conversation

@dstansby

@dstansby dstansby commented Mar 7, 2017

Copy link
Copy Markdown
Member

Documentation! (+ everyone ❤️ plt.subplots())

==========================

To create plots that share a common axes (visually) you can set the
hspace between the subplots close to zero (do not use zero itself). Passing

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Using zero seems to work, perhaps it was an old limitation. Please check, and remove this note and use 0 below instead of 0.001, if you agree.

@NelleV NelleV left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM 👍

@NelleV NelleV changed the title MEP12 ganged example [MRG+1] MEP12 ganged example Mar 8, 2017

@anntzer anntzer left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

More spelling/idomatic English.

sharex=True when creating the subplots will automatically turn of all x ticks
and labels apart from on the bottom axis.
hspace between the subplots to zero. Passing sharex=True when creating the
subplots will automatically turn of all x ticks and labels apart from on the

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

turn off (two f's)
apart from -> except(?)

@anntzer anntzer left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

more minor stuff...

Creating adjacent subplots
==========================

To create plots that share a common axes (visually) you can set the

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

a common axis (singular) (?)

subplots will automatically turn off all x ticks and labels except those on the
bottom axis.

In this example the plots share a common xaxis but you can follow the

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

x axis (with a space) (or at least be consistent just below when you write y axis)

@NelleV NelleV added the MEP: MEP12 gallery and examples improvements label Mar 11, 2017
@NelleV

NelleV commented Mar 16, 2017

Copy link
Copy Markdown
Member

@anntzer do you mind having a look at this PR again?

@anntzer
anntzer merged commit b9b6d52 into matplotlib:master Mar 16, 2017
@anntzer

anntzer commented Mar 16, 2017

Copy link
Copy Markdown
Contributor

Thanks!

@QuLogic QuLogic changed the title [MRG+1] MEP12 ganged example MEP12 ganged example Mar 16, 2017
@QuLogic QuLogic added this to the 2.1 (next point release) milestone Mar 16, 2017
@dstansby
dstansby deleted the ganged-example branch April 2, 2017 16:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Documentation MEP: MEP12 gallery and examples improvements

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants