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

Skip to content

Commit 7739023

Browse files
committed
sync to 0.60
svn path=/trunk/matplotlib/; revision=384
1 parent 55ed68a commit 7739023

19 files changed

Lines changed: 59 additions & 90 deletions

.matplotlibrc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
#### MATPLOTLIBRC FORMAT
22
#
3-
# This is a sample matplotlib configuration file It should be placed
3+
# This is a sample matplotlib configuration file. It should be placed
44
# in your home dir (Linux and friends) or in the matplotlib data path,
5-
# is, where matplotlib installs it's data files (fonts, etc). On
5+
# ie, where matplotlib installs its data files (fonts, etc). On
66
# windows, this would be, for example, C:\Python23\share\matplotlib
77
#
88
# By default, the installer will overwrite the existing file in the

CHANGELOG

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
New entries should be added at the top
22
=======
33

4+
2004-07-07 Fixed a bug in dynamic_demo_wx
5+
6+
47
2004-07-07 backend_gtk.py: raise SystemExit immediately if
58
'import pygtk' fails - SC
69

LICENSE/LICENSE

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
LICENSE AGREEMENT FOR MATPLOTLIB 0.54.1
1+
LICENSE AGREEMENT FOR MATPLOTLIB 0.60
22
--------------------------------------
33

44
1. This LICENSE AGREEMENT is between the John D. Hunter ("JDH"), and the
@@ -9,30 +9,30 @@ documentation.
99
2. Subject to the terms and conditions of this License Agreement, JDH
1010
hereby grants Licensee a nonexclusive, royalty-free, world-wide license
1111
to reproduce, analyze, test, perform and/or display publicly, prepare
12-
derivative works, distribute, and otherwise use matplotlib 0.54.1
12+
derivative works, distribute, and otherwise use matplotlib 0.60
1313
alone or in any derivative version, provided, however, that JDH's
1414
License Agreement and JDH's notice of copyright, i.e., "Copyright (c)
1515
2002-2004 John D. Hunter; All Rights Reserved" are retained in
16-
matplotlib 0.54.1 alone or in any derivative version prepared by
16+
matplotlib 0.60 alone or in any derivative version prepared by
1717
Licensee.
1818

1919
3. In the event Licensee prepares a derivative work that is based on or
20-
incorporates matplotlib 0.54.1 or any part thereof, and wants to
20+
incorporates matplotlib 0.60 or any part thereof, and wants to
2121
make the derivative work available to others as provided herein, then
2222
Licensee hereby agrees to include in any such work a brief summary of
23-
the changes made to matplotlib 0.54.1.
23+
the changes made to matplotlib 0.60.
2424

25-
4. JDH is making matplotlib 0.54.1 available to Licensee on an "AS
25+
4. JDH is making matplotlib 0.60 available to Licensee on an "AS
2626
IS" basis. JDH MAKES NO REPRESENTATIONS OR WARRANTIES, EXPRESS OR
2727
IMPLIED. BY WAY OF EXAMPLE, BUT NOT LIMITATION, JDH MAKES NO AND
2828
DISCLAIMS ANY REPRESENTATION OR WARRANTY OF MERCHANTABILITY OR FITNESS
29-
FOR ANY PARTICULAR PURPOSE OR THAT THE USE OF MATPLOTLIB 0.54.1
29+
FOR ANY PARTICULAR PURPOSE OR THAT THE USE OF MATPLOTLIB 0.60
3030
WILL NOT INFRINGE ANY THIRD PARTY RIGHTS.
3131

3232
5. JDH SHALL NOT BE LIABLE TO LICENSEE OR ANY OTHER USERS OF MATPLOTLIB
33-
0.54.1 FOR ANY INCIDENTAL, SPECIAL, OR CONSEQUENTIAL DAMAGES OR
33+
0.60 FOR ANY INCIDENTAL, SPECIAL, OR CONSEQUENTIAL DAMAGES OR
3434
LOSS AS A RESULT OF MODIFYING, DISTRIBUTING, OR OTHERWISE USING
35-
MATPLOTLIB 0.54.1, OR ANY DERIVATIVE THEREOF, EVEN IF ADVISED OF
35+
MATPLOTLIB 0.60, OR ANY DERIVATIVE THEREOF, EVEN IF ADVISED OF
3636
THE POSSIBILITY THEREOF.
3737

3838
6. This License Agreement will automatically terminate upon a material
@@ -44,6 +44,6 @@ Licensee. This License Agreement does not grant permission to use JDH
4444
trademarks or trade name in a trademark sense to endorse or promote
4545
products or services of Licensee, or any third party.
4646

47-
8. By copying, installing or otherwise using matplotlib 0.54.1,
47+
8. By copying, installing or otherwise using matplotlib 0.60,
4848
Licensee agrees to be bound by the terms and conditions of this License
4949
Agreement.

MANIFEST

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ GOALS
55
INSTALL
66
INTERACTIVE
77
KNOWN_BUGS
8-
MANIFEST
98
MANIFEST.in
109
Makefile
1110
README
@@ -197,18 +196,20 @@ examples/date_demo2.py
197196
examples/date_demo3.py
198197
examples/dynamic_demo.py
199198
examples/dynamic_demo_wx.py
199+
examples/dynamic_image_gtkagg.py
200200
examples/embedding_in_gtk.py
201201
examples/embedding_in_gtk2.py
202202
examples/embedding_in_tk.py
203203
examples/embedding_in_wx.py
204204
examples/embedding_in_wx2.py
205205
examples/errorbar_demo.py
206206
examples/figimage_demo.py
207+
examples/figlegend_demo.py
207208
examples/figtext.py
208209
examples/fill_demo.py
209210
examples/finance_demo.py
210-
examples/font_properties_demo.py
211211
examples/fonts_demo.py
212+
examples/fonts_demo_kw.py
212213
examples/ftface_props.py
213214
examples/ganged_plots.py
214215
examples/gdtest.py
@@ -229,7 +230,6 @@ examples/log_bar.py
229230
examples/log_demo.py
230231
examples/log_test.py
231232
examples/logo.py
232-
examples/longs_test.py
233233
examples/major_minor_demo1.py
234234
examples/major_minor_demo2.py
235235
examples/mathtext_demo.py
@@ -242,7 +242,6 @@ examples/multiple_figs_demo.py
242242
examples/object_picker.py
243243
examples/pcolor_demo.py
244244
examples/pcolor_demo2.py
245-
examples/pcolor_demo_with_scale.py
246245
examples/pcolor_small.py
247246
examples/poormans_contour.py
248247
examples/psd_demo.py
@@ -258,7 +257,6 @@ examples/stock_demo.py
258257
examples/subplot_demo.py
259258
examples/system_monitor.py
260259
examples/table_demo.py
261-
examples/test.py
262260
examples/text_handles.py
263261
examples/text_themes.py
264262
examples/to_numeric.py

examples/axes_demo.py

Lines changed: 22 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -1,42 +1,31 @@
1-
#!/usr/bin/env python
2-
# Demonstrate arbitrary placement of axes
31
from matplotlib.matlab import *
42

3+
# create some data to use for the plot
54
dt = 0.001
65
t = arange(0.0, 10.0, dt)
7-
r = exp(-t[:1000]/0.05) # impulse response
6+
r = exp(-t[:1000]/0.05) # impulse response
87
x = randn(len(t))
9-
s = convolve(x,r,mode=2)*dt # colored noise
10-
s = s[:len(x)] # remove the decay tail which will skew
11-
# the probability distribution
8+
s = convolve(x,r,mode=2)[:len(x)]*dt # colored noise
129

13-
# I'm just using the if 1 thing to break up the different regions of
14-
# the code visually.
10+
# the main axes is subplot(111) by default
11+
plot(t, s)
12+
axis([0, 1, 1.1*min(s), 2*max(s) ])
13+
xlabel('time (s)')
14+
ylabel('current (nA)')
15+
title('Gaussian colored noise')
1516

16-
# plot the noise
17-
if 1:
18-
plot(t, s)
19-
axis([0, 1, 1.1*min(s), 2*max(s) ])
20-
xlabel('time (s)')
21-
ylabel('current (nA)')
22-
title('Gaussian colored noise')
17+
# this is an inset axes over the main axes
18+
a = axes([.65, .6, .2, .2], axisbg='y')
19+
n, bins, patches = hist(s, 400, normed=1)
20+
title('Probability')
21+
set(a, xticks=[], yticks=[])
2322

24-
# Make a histogram probability density inset
25-
if 1:
26-
a = axes([.65, .6, .2, .2], axisbg='y')
27-
n, bins, patches = hist(s, 400, normed=1)
28-
title('Probability')
29-
set(a, 'xticks', [])
30-
set(a, 'yticks', [])
31-
32-
# Plot the impulse response function
33-
if 1:
34-
a = axes([0.2, 0.6, .2, .2], axisbg='y')
35-
plot(t[:len(r)], r)
36-
title('Impulse response')
37-
set(a, 'xlim', [0,.2])
38-
set(a, 'xticks', [])
39-
set(a, 'yticks', [])
40-
41-
#savefig('axes_demo', dpi=600)
23+
# this is another inset axes over the main axes
24+
a = axes([0.2, 0.6, .2, .2], axisbg='y')
25+
plot(t[:len(r)], r)
26+
title('Impulse response')
27+
set(a, xlim=(0,.2), xticks=[], yticks=[])
28+
29+
#savefig('../figures/axes_demo.eps')
30+
#savefig('../figures/axes_demo.png')
4231
show()

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 = [ 'PS']
93-
backends = [ 'Agg', 'PS', 'Template']
93+
#backends = [ 'Agg', 'PS', 'Template']
9494

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

examples/customize_rc.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ def set_pub():
1212
rc('tick', labelsize=15) # tick labels bigger
1313
rc('lines', lw=1, color='k') # thicker black lines (no budget for color!)
1414
rc('grid', c=0.5, ls='-', lw=0.5) # solid gray grid lines
15-
rc('savefig', dpi=300) # higher res outputs
15+
rc('#savefig', dpi=300) # higher res outputs
1616
1717
1818
@@ -21,7 +21,7 @@ def set_pub():
2121
>>> set_pub()
2222
>>> subplot(111)
2323
>>> plot([1,2,3])
24-
>>> savefig('myfig')
24+
>>> #savefig('myfig')
2525
>>> rcdefaults() # restore the defaults
2626
2727
"""

examples/figimage_demo.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
im1 = figimage(Z, xo=50, yo=0)
1414
im2 = figimage(Z, xo=100, yo=100, alpha=.8)
1515
#gray() # overrides current and sets default
16-
savefig('figimage_demo')
16+
#savefig('figimage_demo')
1717

1818
show()
1919

examples/fonts_demo.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,5 +111,5 @@
111111
**alignment)
112112

113113
axis([-1,1,0,1])
114-
savefig('fonts_demo')
114+
#savefig('fonts_demo')
115115
show()

examples/fonts_demo_kw.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,5 +80,5 @@
8080
**alignment)
8181

8282
axis([-1, 1, 0, 1])
83-
savefig('fonts_demo_kw')
83+
#savefig('fonts_demo_kw')
8484
show()

0 commit comments

Comments
 (0)