Skip to content

Commit d951344

Browse files
author
Steve Chaplin
committed
'SC'
svn path=/trunk/matplotlib/; revision=1590
1 parent b1a3514 commit d951344

File tree

3 files changed

+12
-11
lines changed

3 files changed

+12
-11
lines changed

examples/anim.py

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,23 +4,22 @@
44
speed of animation of various backends by running the script with the
55
'-dSomeBackend' flag
66
7+
SC Aug 06 2005 mpl 0.83.2:
78
Here are some numbers from my system, where FPS is the frames rendered
89
per second
910
10-
TkAgg 20 FPS
11-
GTK 50 FPS
12-
GTKAgg 36 FPS
13-
GTKCairo 15 FPS
14-
WX 11 FPS
15-
WXAgg 27 FPS
16-
11+
GTK 28 FPS
12+
GTKAgg 18 FPS
13+
GTKCairo 14 FPS
14+
TkAgg 10 FPS
1715
"""
18-
from pylab import *
1916
import time
2017

18+
from pylab import *
19+
2120
# turn interactive mode on for dynamic updates. If you aren't in
2221
# interactive mode, you'll need to use a GUI event handler/timer.
23-
ion()
22+
ion()
2423

2524
tstart = time.time() # for profiling
2625
x = arange(0,2*pi,0.01) # x-array

examples/widgets/cursor.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
1+
#!/usr/bin/env python
2+
13
from matplotlib.widgets import Cursor
24
import pylab
35

46

5-
67
fig = pylab.figure(figsize=(8,6))
78
ax = fig.add_axes([0.075, 0.25, 0.9, 0.725], axisbg='#FFFFCC')
89
#ax = fig.add_subplot(111, axisbg='#FFFFCC')
@@ -13,7 +14,7 @@
1314
ax.set_xlim(-2,2)
1415
ax.set_ylim(-2,2)
1516

16-
# set useblit = True on gtkagg for enhanced performance
17+
# set useblit = True on gtkagg for enhanced performance
1718
cursor = Cursor(ax, useblit=False, color='red', linewidth=2 )
1819

1920
pylab.show()

examples/widgets/span_selector.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
#!/usr/bin/env python
12
"""
23
The HorizontalSpanSelector is a mouse widget to select a xmin/xmax
34
range. When you left click drag in the axes, a rectangle shows the

0 commit comments

Comments
 (0)