-
-
Notifications
You must be signed in to change notification settings - Fork 7.9k
Move some examples out of pylab_examples #8633
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
Conversation
👍 I have wanted to move the examples away from pylab examples for a long time |
examples/color/color_demo.py
Outdated
@@ -22,12 +22,12 @@ | |||
import matplotlib.pyplot as plt | |||
import numpy as np | |||
|
|||
plt.subplot(111, facecolor='darkslategray') | |||
#subplot(111, facecolor='#ababab') | |||
fig, ax = plt.subplots(facecolor='darkslategray') |
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.
Since this is mostly all changing, I'd put this after the data generation.
@@ -11,8 +11,8 @@ | |||
# unit area ellipse | |||
rx, ry = 3., 1. | |||
area = rx * ry * pi | |||
theta = arange(0, 2*pi + 0.01, 0.1) | |||
verts = list(zip(rx/area*cos(theta), ry/area*sin(theta))) | |||
theta = arange(0, 2 * pi + 0.01, 0.1) |
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 you use np.
here?
@@ -25,7 +25,7 @@ | |||
plt.subplot(323) | |||
plt.scatter(x, y, s=80, c=z, marker=(verts, 0)) | |||
# equivalent: | |||
#plt.scatter(x,y,s=80, c=z, marker=None, verts=verts) | |||
# plt.scatter(x,y,s=80, c=z, marker=None, verts=verts) |
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.
Add spaces after comma here too?
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.
Moving barchart_demo
appears to have broken the doc build.
PEP8 moved examples Move subplots and scatter examples PEP8 scatter examples Small example fixes Remove old barchart demos Add new barchart demo back
After a bit of rebase fun and a fix of the broken doc links, this should be working now. |
@Kojoley Any idea why AppVeyor is now unable to find |
I restarted appveyor, and all seems to be fine now. |
Oh, I didn't realize this wasn't merged yet; might be a few conflicts with #8677. |
I've moved a few of the pylab_examples to more relevant folders, and PEP8 cleaned them. Also got rid of
pylab_examples/README
which doesn't seem to be adding much...