Skip to content

Pylab example moves 2 #8857

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 7 commits into from
Jul 29, 2017
Merged

Pylab example moves 2 #8857

merged 7 commits into from
Jul 29, 2017

Conversation

dstansby
Copy link
Member

Some more pylab example moves. Trying to keep these in relatively small PRs for easy review.

@@ -9,11 +9,11 @@
import matplotlib.pyplot as plt


data = [[ 66386, 174296, 75131, 577908, 32015],
Copy link
Member

Choose a reason for hiding this comment

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

🚲 🏚️ minor preference for leaving this formatting the way it is for human readability.

@@ -4,7 +4,8 @@
=========

Make a pie charts of varying size - see
http://matplotlib.org/api/pyplot_api.html#matplotlib.pyplot.pie for the docstring.
http://matplotlib.org/api/pyplot_api.html#matplotlib.pyplot.pie for the
Copy link
Member

Choose a reason for hiding this comment

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

https

"""
import matplotlib.pyplot as plt
import numpy as np

data = ((3, 1000), (10, 3), (100, 30), (500, 800), (50, 1))

plt.xlabel("FOO")
Copy link
Member

Choose a reason for hiding this comment

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

Can we just change these to not 'FOO'? It is good practice to always label your axes 😈

@dstansby
Copy link
Member Author

Comments fixed. Can always squash everything to a couple of commits before this is merged.

@tacaswell
Copy link
Member

I am indifferent if this gets squashed or not.

@tacaswell tacaswell added this to the 2.1 (next point release) milestone Jul 10, 2017
plt.title('semilogy')
plt.grid(True)

# log x axis
plt.subplot(222)
plt.semilogx(t, np.sin(2*np.pi*t))
plt.semilogx(t, np.sin(2 * np.pi * t))
Copy link
Member

Choose a reason for hiding this comment

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

FYI, the old formatting was fine in terms of pep8ness.

@QuLogic
Copy link
Member

QuLogic commented Jul 19, 2017

Also needs a rebase, sorry.

@dstansby
Copy link
Member Author

Should also be rebased, fingers crossed for the doc build!

@NelleV NelleV merged commit 2ff0db1 into matplotlib:master Jul 29, 2017
@dstansby dstansby deleted the pylab-moves2 branch July 29, 2017 17:39
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.

4 participants