Skip to content

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

Merged
merged 2 commits into from
May 29, 2017

Conversation

dstansby
Copy link
Member

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

@jenshnielsen
Copy link
Member

👍 I have wanted to move the examples away from pylab examples for a long time

@@ -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')
Copy link
Member

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)
Copy link
Member

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)
Copy link
Member

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?

Copy link
Member

@QuLogic QuLogic left a 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
@dstansby
Copy link
Member Author

After a bit of rebase fun and a fix of the broken doc links, this should be working now.

@QuLogic
Copy link
Member

QuLogic commented May 25, 2017

@Kojoley Any idea why AppVeyor is now unable to find type1cm.sty?

@dstansby
Copy link
Member Author

I restarted appveyor, and all seems to be fine now.

@QuLogic
Copy link
Member

QuLogic commented May 28, 2017

Oh, I didn't realize this wasn't merged yet; might be a few conflicts with #8677.

@QuLogic QuLogic added this to the 2.1 (next point release) milestone May 28, 2017
@efiring efiring merged commit 753dfa7 into matplotlib:master May 29, 2017
@dstansby dstansby deleted the pylab-moves branch May 29, 2017 09:49
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