-
-
Notifications
You must be signed in to change notification settings - Fork 7.9k
Move text examples out of pylab_examples #8681
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
Sorry, some of this conflicted with #8199. |
PEP8 moved text examples Fix tutorial links Fix up rebase
|
||
Notice how the the label for the y axis is provided using unicode! | ||
time, the run may be silent, as a lot of the information is cached in | ||
~/.tex.cache |
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 should not be here; I think you may have resolved conflicts in the opposite direction.
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.
I've just put back in the master copy of tex_demo.py, which I think is correct.
mpl_blue_rvb = (191./255., 209./256., 212./255.) | ||
mpl_orange_rvb = (202/255., 121/256., 0./255.) | ||
mpl_grey_rvb = (51./255., 51./255., 51./255.) | ||
mpl_blue_rvb = (191 / 255, 209 / 256, 212 / 255) |
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.
Needs from __future__ import division
for this to work on Python 2.
baseline = 1. - (i_line)*line_axesfrac | ||
baseline_next = baseline - line_axesfrac*1. | ||
baseline = 1 - (i_line) * line_axesfrac | ||
baseline_next = baseline - line_axesfrac * 1 |
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.
* 1
does nothing?
plt.text(-0.06, height - 0.06, r'$\delta$', {'color': 'k', 'fontsize': 24}) | ||
|
||
# X-axis label | ||
plt.xticks((-1, 0, 1), ('-1', '0', '1'), color='k', size=20) | ||
|
||
# Left Y-axis labels | ||
plt.ylabel(r'\bf{phase field} $\phi$', {'color': 'b', | ||
'fontsize': 20}) | ||
'fontsize': 20}) |
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.
Might as well break before the {
.
Some more pylab_examples moves, this time what I think are all the text related examples.