Cleanup of merged pylab examples#8677
Conversation
| # You can specify whether images should be plotted with the array origin | ||
| # x[0,0] in the upper left or upper right by using the origin parameter. | ||
| # x[0,0] in the upper left or lower right by using the origin parameter. | ||
| # You can also control the default be setting image.origin in your |
There was a problem hiding this comment.
I'm gonna mark typeos w/ TYPEO in the comment as a reminder to go back @ the end and fix the typos just before merging. (there's one in this line) "control the default be setting"
|
|
||
| ax.text(0.1, 0.8, | ||
| ' boxstyle="round,pad=0.3"\n mutation\\_aspect=.5', | ||
| ' boxstyle="round,pad=0.3"\n mutation_aspect=.5', |
There was a problem hiding this comment.
I guess we don't have to worry about these getting rendered as math now? Or is that intended behavior now?
There was a problem hiding this comment.
Only if wrapped in $, or maybe a usetex=True got removed at some point? They're definitely not needed right now though.
|
Just took a pass through it and I noticed very few problems (in comments) - it looks great to me and I think this is a good improvement towards making the docs more consistent! |
ac305a9 to
fd2540c
Compare
examples/pylab_examples/spy_demos.py
Outdated
| ax1 = fig.add_subplot(221) | ||
| ax2 = fig.add_subplot(222) | ||
| ax3 = fig.add_subplot(223) | ||
| ax4 = fig.add_subplot(224) |
There was a problem hiding this comment.
Oh, I should probably change this one to subplots, too.
| import numpy as np | ||
|
|
||
| fig = plt.figure() | ||
| plt.subplot(221) |
There was a problem hiding this comment.
And one more subplots here as well.
fd2540c to
dc0f0c1
Compare
|
Rebased to fix the typo and the two other |
|
Just noticed that #8633 was not merged yet and it moves around a few of these files. I'd hold off on merging this one until that one's in, and I can rebase this one. |
dc0f0c1 to
869bd95
Compare
These are fixes I noticed in #8266 but never finished commenting. And anyway, since that was a merge-everything PR, trying to fill it with a lot of cleanup would be confusing.
Much of this is just trying to maintain some consistency within a file, e.g., if one example used OO and one example used pyplot, switch to just OO.
@choldgraf