Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 65e9e36

Browse files
committed
fixed figure text clip bug
svn path=/trunk/matplotlib/; revision=45
1 parent f902504 commit 65e9e36

3 files changed

Lines changed: 10 additions & 5 deletions

File tree

Makefile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22
# Copyright (C) 2003 <[email protected]>
33
# $Header$
44
# $Log$
5+
# Revision 1.8 2003/10/23 15:42:43 jdh2358
6+
# fixed figure text clip bug
7+
#
58
# Revision 1.7 2003/10/18 17:54:26 jdh2358
69
# fixed interactive2 and several small bugs
710
#
@@ -53,7 +56,7 @@ htmldocs:
5356
cd htdocs;\
5457
${PYTHON} process_docs.py;\
5558
${PYTHON} convert.py;\
56-
tar cvfz site.tar.gz *.html screenshots tut examples
59+
tar cfz site.tar.gz *.html screenshots tut examples
5760

5861
release: ${DISTFILES}
5962
rm -rf ${RELEASE};\

examples/pstest.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
import matplotlib
2+
matplotlib.use('PS')
13
from matplotlib.matlab import *
24

35
def f(t):
@@ -9,7 +11,7 @@ def f(t):
911
t2 = arange(0.0, 5.0, 0.02)
1012
t3 = arange(0.0, 2.0, 0.01)
1113

12-
figure(1, size=(800,600))
14+
figure(1)
1315
subplot(211)
1416
l = plot(t1, f(t1), 'k^')
1517
set(l, 'markerfacecolor', 'k')
@@ -24,6 +26,6 @@ def f(t):
2426

2527
ylabel('Signal 2', fontsize=12)
2628
xlabel('time (s)', fontsize=12)
27-
29+
savefig('pstest')
2830
show()
2931

examples/text_themes.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
from matplotlib.matlab import *
22

3-
font = {'fontname' : 'Courier',
3+
font = {'fontname' : 'courier',
44
'color' : 'r',
55
'fontweight' : 'normal',
66
'fontsize' : 12}
@@ -19,5 +19,5 @@ def f(t):
1919
xlabel('time (s)', font)
2020
ylabel('voltage (mV)', font)
2121

22-
#savefig('text_themes', dpi=150)
22+
savefig('text_themes', dpi=150)
2323
show()

0 commit comments

Comments
 (0)