8000 refactored matlab helpers and dpi/figsize handling · matplotlib/matplotlib@7a91327 · GitHub
[go: up one dir, main page]

Skip to content

Commit 7a91327

Browse files
committed
refactored matlab helpers and dpi/figsize handling
svn path=/trunk/matplotlib/; revision=68
1 parent b77bdf9 commit 7a91327

File tree

5 files changed

+12
-7
lines changed

5 files changed

+12
-7
lines changed

examples/gdtest.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ def f(t):
1212
t3 = arange(0.0, 2.0, 0.01)
1313

1414

15-
if 0:
15+
if 1:
1616
subplot(211)
1717
l = plot(t1, f(t1), 'k-^')
1818
set(l, 'markerfacecolor', 'r')
@@ -28,7 +28,7 @@ def f(t):
2828
xlabel('time (s)', fontsize=10, fontname='Courier')
2929

3030
ax = gca()
31-
patch = Rectangle(
32-
#savefig('gdtest', dpi=150)
33-
show()
3431

32+
33+
savefig('gdtest', dpi=150)
34+
show()

examples/histogram_demo.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,5 @@
1414
xlabel('Smarts')
1515
ylabel('Probability')
1616
title('Histogram of IQ: mu=100, sigma=15')
17-
savefig('histogram_demo')
17+
savefig('histogram_demo',dpi=72)
1818
show()

examples/log_demo.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,5 @@
1111

1212
subplot(313)
1313
loglog(t, exp(-t/10.0))
14-
#savefig('log_demo')
14+
savefig('log_demo')
1515
show()

examples/multiple_figs_demo.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,9 @@
2020
plot(t,s2, 'gs')
2121
set(gca(), 'xticklabels', [])
2222

23+
#figure(1)
24+
#savefig('fig1')
25+
#figure(2)
26+
#savefig('fig2')
27+
2328
show()

examples/simple_plot.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,5 @@
88
title('About as simple as it gets, folks')
99
#grid(True)
1010
#set(gca(), 'xticks', (0,.2,.7))
11-
savefig('simple_plot')
11+
savefig('simple_plot', dpi=144)
1212
show()

0 commit comments

Comments
 (0)
0