X Tutup
Skip to content

Move some examples out of pylab_examples#8633

Merged
efiring merged 2 commits intomatplotlib:masterfrom
dstansby:pylab-moves
May 29, 2017
Merged

Move some examples out of pylab_examples#8633
efiring merged 2 commits intomatplotlib:masterfrom
dstansby:pylab-moves

Conversation

@dstansby
Copy link
Copy Markdown
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
Copy Markdown
Member

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


plt.subplot(111, facecolor='darkslategray')
#subplot(111, facecolor='#ababab')
fig, ax = plt.subplots(facecolor='darkslategray')
Copy link
Copy Markdown
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.

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
Copy Markdown
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?

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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
Member Author

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

@QuLogic
Copy link
Copy Markdown
Member

QuLogic commented May 25, 2017

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

@dstansby
Copy link
Copy Markdown
Member Author

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

@QuLogic
Copy link
Copy Markdown
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

X Tutup