8000 removed tex_ddemo bbox · matplotlib/matplotlib@7cd24f9 · GitHub
[go: up one dir, main page]

Skip to content

Commit 7cd24f9

Browse files
committed
removed tex_ddemo bbox
svn path=/trunk/matplotlib/; revision=1382
1 parent 74bd9f3 commit 7cd24f9

File tree

2 files changed

+6
-16
lines changed

2 files changed

+6
-16
lines changed

examples/anim.py

Lines changed: 4 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -20,24 +20,13 @@
2020

2121
# turn interactive mode on for dynamic updates. If you aren't in
2222
# interactive mode, you'll need to use a GUI event handler/timer.
23-
23+
ion()
2424

2525
tstart = time.time() # for profiling
2626
x = arange(0,2*pi,0.01) # x-array
27-
28-
ion()
29-
fig = figure()
30-
ax = subplot(111)
3127
line, = plot(x,sin(x))
32-
ax.animated[line] = 1
33-
34-
draw() # redraw the canvas
35-
36-
N = 200
37-
for i in arange(1,N):
28+
for i in arange(1,200):
3829
line.set_ydata(sin(x+i/10.0)) # update the data
39-
ax.draw_animate()
40-
fig.canvas.blit()
41-
#draw()
30+
draw() # redraw the canvas
4231

43-
print 'FPS:' , N/(time.time()-tstart)
32+
print 'FPS:' , 200/(time.time()-tstart)

examples/tex_demo.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
#!/usr/bin/env python
22
from pylab import *
3+
rc('text', usetex=True)
34
figure(1)
45
ax = axes([0.1, 0.1, 0.8, 0.7])
56
t = arange(0.0, 1.0+0.01, 0.01)
@@ -9,7 +10,7 @@
910
xlabel(r'\bf{time (s)}')
1011
ylabel(r'\it{voltage (mV)}',fontsize=16)
1112
title(r"\TeX\ is Number $\displaystyle\sum_{n=1}^\infty\frac{-e^{i\pi}}{2^n}$!",
12-
{'bbox':{'fc':0.8,'pad':0}}, fontsize=16, color='r')
13+
fontsize=16, color='r')
1314
grid(True)
1415
savefig('tex_demo.eps')
1516

0 commit comments

Comments
 (0)
0