X Tutup
Skip to content

Clean up unit examples#8377

Merged
tacaswell merged 2 commits intomatplotlib:masterfrom
dstansby:unit-example-clean
Apr 17, 2017
Merged

Clean up unit examples#8377
tacaswell merged 2 commits intomatplotlib:masterfrom
dstansby:unit-example-clean

Conversation

@dstansby
Copy link
Copy Markdown
Member

Adds in all the comments from #8254

their axes parent, so you must init the artists with the axes instance
if you want to initialize them with unit data, or else they will not
The axis handles unit conversions and the artists keep a pointer to
their axis parent, so you must initialize the artists with the axis instance
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.

I'm thinking this is still a bit long; can you break the sentence in two: "their axis parent. You must initialize ..."?


plot using a variety of cm vs inches conversions. The example shows
how default unit instrospection works (ax1), how various keywords can
A plot using a variety of centimetre vs inches conversions. This example shows
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.

vs inches -> and inch

Is this line not too long? Or is everything else just wrapped a bit short?

@QuLogic QuLogic added this to the 2.0.1 (next bug fix release) milestone Mar 25, 2017
@DietBru
Copy link
Copy Markdown
Contributor

DietBru commented Mar 26, 2017

Perhaps it would be helpful to add a comment that the module basic_units resides in the mpl_examples/units/ directory (I tripped over that some time ago and was dumbfound for a while, while searching through conda and pip).

@anntzer anntzer changed the title Clean up unit examples [MRG+1] Clean up unit examples Apr 16, 2017
@tacaswell tacaswell merged commit 5ffe804 into matplotlib:master Apr 17, 2017
@QuLogic QuLogic changed the title [MRG+1] Clean up unit examples Clean up unit examples Apr 17, 2017
@dstansby dstansby deleted the unit-example-clean branch April 23, 2017 01:45
dstansby pushed a commit that referenced this pull request Apr 24, 2017
@dstansby
Copy link
Copy Markdown
Member Author

Backported to 2.0.x via. 2fb0da8

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants

X Tutup