Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 619ee42

Browse files
author
domspad
committed
translated pylab import to plts
1 parent b6b0514 commit 619ee42

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

examples/pylab_examples/accented_text.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,14 @@
99
\^y
1010
1111
"""
12-
from pylab import *
12+
import matplotlib.pyplot as plt
1313

14-
axes([0.1, 0.15, 0.8, 0.75])
15-
plot(range(10))
14+
plt.axes([0.1, 0.15, 0.8, 0.75])
15+
plt.plot(range(10))
1616

17-
title(r'$\ddot{o}\acute{e}\grave{e}\hat{O}\breve{i}\bar{A}\tilde{n}\vec{q}$', fontsize=20)
17+
plt.title(r'$\ddot{o}\acute{e}\grave{e}\hat{O}\breve{i}\bar{A}\tilde{n}\vec{q}$', fontsize=20)
1818
# shorthand is also supported and curly's are optional
19-
xlabel(r"""$\"o\ddot o \'e\`e\~n\.x\^y$""", fontsize=20)
19+
plt.xlabel(r"""$\"o\ddot o \'e\`e\~n\.x\^y$""", fontsize=20)
2020

2121

22-
show()
22+
plt.show()

0 commit comments

Comments
 (0)