-
-
Notifications
You must be signed in to change notification settings - Fork 7.9k
Move and clean some pylab examples #8813
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
@@ -0,0 +1,37 @@ | |||
""" | |||
============ | |||
Axhspan Demo |
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.
Should be "axhspan" (lowercase). Probably there are other cases of wrong uppercasing, haven't checked.
y = (figheight - 0.7 - i % nrow) # /figheight | ||
p = mpatches.Circle((x, y), 0.2) | ||
ax.add_patch(p) | ||
|
||
ax.annotate(to_texstring(stylename), (x, y), | ||
(x - 1.2, y), | ||
#xycoords="figure fraction", textcoords="figure fraction", | ||
# xycoords="figure fraction", textcoords="figure fraction", |
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.
If the comment is not relevant, just remove it.
# Draw a default vline at x=1 that spans the yrange | ||
plt.axvline(x=1) | ||
|
||
# Draw a thick blue vline at x=0 that spans the upper quadrant of |
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.
this comment and the one below do not need to be linewrapped
@@ -14,9 +14,9 @@ | |||
# create some data to use for the plot | |||
dt = 0.001 | |||
t = np.arange(0.0, 10.0, dt) | |||
r = np.exp(-t[:1000]/0.05) # impulse response | |||
r = np.exp(-t[:1000] / 0.05) # impulse response |
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.
comment should be closer
This seems to have broken a link
|
Hmm, can you rebase this? |
0e810e2
to
94bdcbe
Compare
Restore changes to moved files
Rebased, would be worth someone checking the file that is deleted and re-added in the diff. |
Some more pylab moves (maybe I'll get them all done by 2.1...). A couple of notes: