Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Clean up unit examples #8377

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 2 commits into from
Apr 17, 2017
Merged

Conversation

dstansby
Copy link
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
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 ..."?

@@ -3,12 +3,12 @@
Bar demo with units
===================

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
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
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
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