Skip to content

Commit dac08ce

Browse files
committed
Minor fixes
1 parent 048cafd commit dac08ce

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed

examples/text_labels_and_annotations/mathtext_examples.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -59,9 +59,9 @@
5959

6060
def doall():
6161
# Colors used in mpl online documentation.
62-
mpl_blue_rvb = (191 / 255, 209 / 256, 212 / 255)
63-
mpl_orange_rvb = (202 / 255, 121 / 256, 0 / 255)
64-
mpl_grey_rvb = (51 / 255, 51 / 255, 51 / 255)
62+
mpl_blue_rvb = (191. / 255., 209. / 256., 212. / 255.)
63+
mpl_orange_rvb = (202. / 255., 121. / 256., 0. / 255.)
64+
mpl_grey_rvb = (51. / 255., 51. / 255., 51. / 255.)
6565

6666
# Creating figure and axis.
6767
plt.figure(figsize=(6, 7))
@@ -86,7 +86,7 @@ def doall():
8686
# Plotting features demonstration formulae
8787
for i_line in range(1, n_lines):
8888
baseline = 1 - (i_line) * line_axesfrac
89-
baseline_next = baseline - line_axesfrac * 1
89+
baseline_next = baseline - line_axesfrac
9090
title = mathtext_titles[i_line] + ":"
9191
fill_color = ['white', mpl_blue_rvb][i_line % 2]
9292
plt.fill_between([0., 1.], [baseline, baseline],

examples/text_labels_and_annotations/usetex_demo.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,7 @@
4646
plt.xticks((-1, 0, 1), ('-1', '0', '1'), color='k', size=20)
4747

4848
# Left Y-axis labels
49-
plt.ylabel(r'\bf{phase field} $\phi$', {'color': 'b',
50-
'fontsize': 20})
49+
plt.ylabel(r'\bf{phase field} $\phi$', {'color': 'b', 'fontsize': 20})
5150
plt.yticks((0, 0.5, 1), ('0', '.5', '1'), color='k', size=20)
5251

5352
# Right Y-axis labels

0 commit comments

Comments
 (0)