Skip to content

Commit 2ff4320

Browse files
committed
syncing to 0.73
svn path=/trunk/matplotlib/; revision=1080
1 parent a9530b0 commit 2ff4320

File tree

7 files changed

+44
-21
lines changed

7 files changed

+44
-21
lines changed

LICENSE/LICENSE

+10-10
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
LICENSE AGREEMENT FOR MATPLOTLIB 0.72
1+
LICENSE AGREEMENT FOR MATPLOTLIB 0.73
22
--------------------------------------
33

44
1. This LICENSE AGREEMENT is between 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.72
12+
derivative works, distribute, and otherwise use matplotlib 0.73
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-2005 John D. Hunter; All Rights Reserved" are retained in
16-
matplotlib 0.72 alone or in any derivative version prepared by
16+
matplotlib 0.73 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.72 or any part thereof, and wants to
20+
incorporates matplotlib 0.73 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.72.
23+
the changes made to matplotlib 0.73.
2424

25-
4. JDH is making matplotlib 0.72 available to Licensee on an "AS
25+
4. JDH is making matplotlib 0.73 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.72
29+
FOR ANY PARTICULAR PURPOSE OR THAT THE USE OF MATPLOTLIB 0.73
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.72 FOR ANY INCIDENTAL, SPECIAL, OR CONSEQUENTIAL DAMAGES OR
33+
0.73 FOR ANY INCIDENTAL, SPECIAL, OR CONSEQUENTIAL DAMAGES OR
3434
LOSS AS A RESULT OF MODIFYING, DISTRIBUTING, OR OTHERWISE USING
35-
MATPLOTLIB 0.72, OR ANY DERIVATIVE THEREOF, EVEN IF ADVISED OF
35+
MATPLOTLIB 0.73, 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.72,
47+
8. By copying, installing or otherwise using matplotlib 0.73,
4848
Licensee agrees to be bound by the terms and conditions of this License
4949
Agreement.

Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ clean:
1515
rm -f *.png *.ps *.eps *.svg *.jpg
1616
find . -name "_tmp*.py" | xargs rm -f;\
1717
find . \( -name "*~" -o -name "*.pyc" \) | xargs rm -f;\
18-
find examples \( -name "*.svg" -o -name "*.png" -o -name "*.ps" -o -name "*.jpg" -o -name "*.eps" -o -name "*.tar" -name "*.gz" \) | xargs rm -f
18+
find examples \( -name "*.svg" -o -name "*.png" -o -name "*.ps" -o -name "*.eps" -o -name "*.tar" -name "*.gz" \) | xargs rm -f
1919
find unit \( -name "*.png" -o -name "*.ps" -o -name "*.eps" \) | xargs rm -f
2020
find . \( -name "#*" -o -name ".#*" -o -name ".*~" -o -name "*~" \) | xargs rm -f
2121

examples/contour_demo.py

+1-6
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,6 @@
77
'''
88
from pylab import *
99

10-
import sys
11-
fignum = 0
12-
if len(sys.argv) == 2:
13-
fignum = int(sys.argv[1])
14-
1510
delta = 0.025
1611
x = arange(-3.0, 3.0, delta)
1712
y = arange(-2.0, 2.0, delta)
@@ -72,5 +67,5 @@
7267
hot() # Now change the colormap for the contour lines and colorbar
7368

7469

75-
#savefig('contour_demo')
70+
savefig('contour_demo')
7671
show()

examples/pcolor_demo.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ def func3(x,y):
2222
pcolor(X, Y, Z, shading='flat')
2323
colorbar()
2424
axis([-3,3,-3,3])
25-
#savefig('pcolor_demo')
25+
savefig('pcolor_demo')
2626
show()
2727

2828

lib/matplotlib/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@
141141
"""
142142
from __future__ import generators
143143

144-
__version__ = '0.73rc3'
144+
__version__ = '0.73'
145145
__revision__ = '$Revision$'
146146
__date__ = '$Date$'
147147

lib/matplotlib/backend_bases.py

+4-2
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,7 @@ def draw_line_collection(self, segments, transform, clipbox,
114114
faster drawing, but it is already much faster than using draw_lines()
115115
by itself.
116116
"""
117+
117118
gc = self.new_gc()
118119
gc.set_clip_rectangle(clipbox.get_bounds())
119120
gc.set_dashes(*linestyle)
@@ -137,8 +138,9 @@ def draw_line_collection(self, segments, transform, clipbox,
137138
gc.set_alpha( alpha )
138139
gc.set_linewidth( linewidths[i % Nlw] )
139140
gc.set_antialiased( antialiaseds[i % Naa] )
140-
141-
x, y = zip(*segments[i % Nsegments])
141+
seg = segments[i % Nsegments]
142+
if not len(seg): continue
143+
x, y = zip(*seg)
142144
x, y = transform.numerix_x_y(array(x), array(y))
143145
if usingOffsets:
144146
xo, yo = transOffset.xy_tup(offsets[i % Noffsets])

swig/agg_trans_affine.i

+26
Original file line numberDiff line numberDiff line change
@@ -48,4 +48,30 @@ namespace agg{
4848
%name(get_scaling) void scaling(double* OUTPUT, double* OUTPUT) const;
4949
};
5050

51+
52+
class trans_affine_rotation : public trans_affine
53+
{
54+
public:
55+
trans_affine_rotation(double a);
56+
};
57+
58+
class trans_affine_scaling : public trans_affine
59+
{
60+
public:
61+
trans_affine_scaling(double sx, double sy);
62+
trans_affine_scaling(double s);
63+
};
64+
65+
class trans_affine_translation : public trans_affine
66+
{
67+
public:
68+
trans_affine_translation(double tx, double ty);
69+
};
70+
71+
class trans_affine_skewing : public trans_affine
72+
{
73+
public:
74+
trans_affine_skewing(double sx, double sy);
75+
};
76+
5177
}

0 commit comments

Comments
 (0)