Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
DOC: clearing out some instances of using pylab in the docs #6957
Conversation
mdboom
added the
needs_review
label
Aug 18, 2016
|
I'd vote for |
|
good point @story645 non-beginners will already have an opinion about aliases and will be able to read/modify as they see fit. |
QuLogic
commented on an outdated diff
Aug 19, 2016
QuLogic
and 1 other
commented on an outdated diff
Aug 19, 2016
| -# basic plot |
phobson
Member
|
QuLogic
commented on an outdated diff
Aug 19, 2016
QuLogic
commented on an outdated diff
Aug 19, 2016
QuLogic
commented on an outdated diff
Aug 19, 2016
QuLogic
added Documentation MEP12
labels
Aug 19, 2016
story645
and 1 other
commented on an outdated diff
Aug 19, 2016
| @@ -23,9 +23,9 @@ complexities. Open up a UNIX shell or a DOS command prompt and cd into a | ||
| directory containing a minimal example in a file. Something like | ||
| :file:`simple_plot.py` for example:: | ||
| - from pylab import * | ||
| - plot([1,2,3]) | ||
| - show() | ||
| + import matplotlib.pyplot as plt | ||
| + plt.plot([1,2,3]) |
story645
Member
|
story645
commented on an outdated diff
Aug 19, 2016
story645
commented on the diff
Aug 19, 2016
| ax3.scatter(xsecs, xsecs, yunits=hertz) | ||
| ax3.yaxis.set_units(minutes) | ||
| ax3.axis([0, 10, 0, 1]) | ||
| -show() | ||
| +fig.tight_layout() | ||
| +plt.show() |
story645
Member
|
phobson
added a commit
to phobson/matplotlib
that referenced
this pull request
Aug 19, 2016
|
|
phobson |
d540abf
|
tacaswell
added this to the
2.0.1 (next bug fix release)
milestone
Aug 20, 2016
QuLogic
was assigned
by tacaswell
Aug 20, 2016
dopplershift
commented on an outdated diff
Aug 22, 2016
| @@ -23,9 +23,10 @@ complexities. Open up a UNIX shell or a DOS command prompt and cd into a | ||
| directory containing a minimal example in a file. Something like | ||
| :file:`simple_plot.py` for example:: | ||
| - from pylab import * | ||
| - plot([1,2,3]) | ||
| - show() | ||
| + import matplotlib.pyplot as plt | ||
| + fig, ax = plt.subplots() | ||
| + ax.plot([1,2,3]) | ||
| + fig.show() |
|
|
dopplershift
commented on an outdated diff
Aug 22, 2016
|
Ping? |
|
@QuLogic took care of those last comments. let me know if you want me to squash/fixup the everything to a single commit. I'm comfortable with and happy to do that. |
|
Sure, go ahead. |
QuLogic
merged commit 32eb2c5
into matplotlib:master
Sep 1, 2016
QuLogic
removed the
needs_review
label
Sep 1, 2016
QuLogic
added a commit
to QuLogic/matplotlib
that referenced
this pull request
Sep 1, 2016
|
|
QuLogic |
d5af573
|
QuLogic
modified the milestone: 2.0 (style change major release), 2.0.1 (next bug fix release)
Sep 1, 2016
|
Backported to |
phobson commentedAug 18, 2016
Note: there are some instances where I
from matplotlib import pyplot, since that's what I'm in the habit of doing now.Obviously I prefer it that way, but if I need to switch from
import matplotlib.pyplot as plt, just let me know. I understand the inertial forces at work there.