8000 pylab to plt · matplotlib/matplotlib@90f63f8 · GitHub
[go: up one dir, main page]

Skip to content

Commit 90f63f8

Browse files
author
domspad
committed
pylab to plt
1 parent 3216669 commit 90f63f8

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

examples/pylab_examples/annotation_demo.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,15 +35,15 @@
3535
"""
3636

3737

38-
from matplotlib.pyplot import figure, show
38+
import matplotlib.pyplot as plt
3939
from matplotlib.patches import Ellipse
4040
import numpy as np
4141

4242

4343
if 1:
4444
# if only one location is given, the text and xypoint being
4545
# annotated are assumed to be the same
46-
fig = figure()
46+
fig = plt.figure()
4747
ax = fig.add_subplot(111, autoscale_on=False, xlim=(-1, 5), ylim=(-3, 5))
4848

4949
t = np.arange(0.0, 5.0, 0.01)
@@ -93,7 +93,7 @@
9393
# example is placed in the fractional figure coordinate system.
9494
# Text keyword args like horizontal and vertical alignment are
9595
# respected
96-
fig = figure()
96+
fig = plt.figure()
9797
ax = fig.add_subplot(111, polar=True)
9898
r = np.arange(0, 1, 0.001)
9999
theta = 2*2*np.pi*r
@@ -138,4 +138,4 @@
138138
ax.set_xlim(-20, 20)
139139
ax.set_ylim(-20, 20)
140140

141-
show()
141+
plt.show()

0 commit comments

Comments
 (0)
0