Skip to content

Commit c6d9268

Browse files
committed
svg and ps fixes
svn path=/trunk/matplotlib/; revision=442
1 parent bb031d8 commit c6d9268

12 files changed

+68
-61
lines changed

CHANGELOG

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
New entries should be added at the top
22

3+
2004-07-27 did a readthrough of SVG, replacing all the string
4+
additions with string interps for efficiency, fixed some
5+
layout problems, added font and image support (through
6+
external pngs) - JDH
7+
38
2004-07-25 backend_gtk.py: modify toolbar2 to make it easier to support GTK+
49
2.4. Add GTK+ 2.4 toolbar support. - SC
510

examples/alignment_test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,5 +78,5 @@
7878
transform=ax.transAxes)
7979

8080
axis('off')
81-
#savefig('alignment_test', dpi=100)
81+
savefig('alignment_test', dpi=100)
8282
show()

examples/arctest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,6 @@ def f(t):
1212
l = plot(t1, f(t1), 'ro')
1313
set(l, 'markersize', 30)
1414
set(l, 'markerfacecolor', 'b')
15-
#savefig('arctest', dpi=150)
15+
savefig('arctest', dpi=150)
1616
show()
1717

examples/backend_driver.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ def drive(backend):
9090
backends = ['PS', 'GD', 'Paint', 'Agg', 'Template']
9191
#backends.extend([ 'GTK', 'WX', 'TkAgg'])
9292
backends = [ 'Agg']
93-
backends = [ 'Agg', 'PS', 'Template']
93+
backends = [ 'Agg', 'PS', 'SVG', 'Template']
9494

9595
for backend in backends:
9696
print 'testing %s' % backend

examples/image_demo.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,6 @@
1010
# difference of Gaussians
1111
im = imshow(Z2-Z1, interpolation='bilinear')
1212
axis('off')
13-
#savefig('image_demo')
13+
savefig('image_demo')
1414
show()
1515

examples/matplotlib_icon.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
matplotlib.use('SVG')
66
from matplotlib.matlab import *
77

8-
fig = figure(figsize=(.5, .5), dpi=72)
8+
fig = figure(figsize=(0.5, 0.5), dpi=72)
99
subplot(111)
1010
t = arange(0.0, 2.0, 0.05)
1111
s = sin(2*pi*t)

examples/mri_with_eeg.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,5 +95,5 @@
9595
xlabel('time (s)')
9696

9797

98-
#savefig('mri_with_eeg')
98+
savefig('mri_with_eeg')
9999
show()

examples/simple_plot.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,6 @@
1212
title('About as simple as it gets, folks')
1313
grid(True)
1414
#axis([0,1,-1,1])
15-
#savefig('simple_plot')
15+
savefig('simple_plot')
1616

1717
show()

examples/subplot_demo.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ def f(t):
1111
t3 = arange(0.0, 2.0, 0.01)
1212

1313
subplot(211)
14-
l = plot(t1, f(t1), 'bo', t2, f(t2), 'k')
14+
l = plot(t1, f(t1), 'bo', t2, f(t2), 'k--')
1515
set(l, 'markerfacecolor', 'g')
1616
grid(True)
1717
title('A tale of 2 subplots')

images/matplotlib.svg

Lines changed: 43 additions & 43 deletions
Loading

0 commit comments

Comments
 (0)