-
-
Notifications
You must be signed in to change notification settings - Fork 7.9k
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
Pylab example moves 2 #8857
Conversation
@@ -9,11 +9,11 @@ | |||
import matplotlib.pyplot as plt | |||
|
|||
|
|||
data = [[ 66386, 174296, 75131, 577908, 32015], |
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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") |
There was a problem hiding this comment.
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 😈
Comments fixed. Can always squash everything to a couple of commits before this is merged. |
I am indifferent if this gets squashed or not. |
examples/scales/log_demo.py
Outdated
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)) |
There was a problem hiding this comment.
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.
Also needs a rebase, sorry. |
Should also be rebased, fingers crossed for the doc build! |
Some more pylab example moves. Trying to keep these in relatively small PRs for easy review.