Skip to content

Commit c980cd6

Browse files
committed
sync to 0.63.0
svn path=/trunk/matplotlib/; revision=549
1 parent 3980a91 commit c980cd6

File tree

7 files changed

+32
-16
lines changed

7 files changed

+32
-16
lines changed

CHANGELOG

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

33
==============================================================
4+
5+
6+
7+
==============================================================
8+
2004-09-28 Released 0.63.0
9+
410
2004-09-28 Added save to file object for agg - see
511
examples/print_stdout.py
612

lib/matplotlib/axes.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -695,7 +695,7 @@ def draw(self, renderer, *args, **kwargs):
695695
self.transAxes.freeze() # eval the lazy objects
696696
if self.axison:
697697
if self._frameon: self._axesPatch.draw(renderer)
698-
698+
699699
if len(self._images)==1:
700700
im = self._images[0]
701701
im.draw(renderer)
@@ -722,6 +722,7 @@ def draw(self, renderer, *args, **kwargs):
722722
self.xaxis.draw(renderer)
723723
self.yaxis.draw(renderer)
724724

725+
725726
for c in self._collections:
726727
c.draw(renderer)
727728

lib/matplotlib/axis.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -463,12 +463,12 @@ def draw(self, renderer, *args, **kwargs):
463463
self._majorFormatter.set_locs(majorLocs)
464464
majorLabels = [self._majorFormatter(val, i) for i, val in enumerate(majorLocs)]
465465

466+
466467
seen = {}
467468

468469
interval = self.get_view_interval()
469470
for tick, loc, label in zip(majorTicks, majorLocs, majorLabels):
470471
if not interval.contains(loc): continue
471-
#print loc, label, interval.get_bounds()
472472
seen[loc] = 1
473473
tick.update_position(loc)
474474
tick.set_label1(label)
@@ -477,12 +477,12 @@ def draw(self, renderer, *args, **kwargs):
477477
extent = tick.label1.get_window_extent(renderer)
478478
ticklabelBoxes.append(extent)
479479

480-
481480
minorTicks = self.get_minor_ticks()
482481
minorLocs = self._minorLocator()
483482
self._minorFormatter.set_locs(minorLocs)
484483
minorLabels = [self._minorFormatter(val, i) for i, val in enumerate(minorLocs)]
485484

485+
486486
for tick, loc, label in zip(minorTicks, minorLocs, minorLabels):
487487
if not interval.contains(loc): continue
488488
if seen.has_key(loc): continue

lib/matplotlib/na_imports.py

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,10 +42,12 @@ def _rc(self, a):
4242

4343
def __mul__(self, other):
4444
aother = asarray(other)
45-
if len(aother.shape) == 0:
46-
return self._rc(self*aother)
47-
else:
48-
return self._rc(dot(self, aother))
45+
#if len(aother.shape) == 0:
46+
# return self._rc(self*aother)
47+
#else:
48+
# return self._rc(dot(self, aother))
49+
#return self._rc(dot(self, aother))
50+
return dot(self, aother)
4951

5052
def __rmul__(self, other):
5153
aother = asarray(other)

lib/matplotlib/text.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,7 @@ def _get_layout(self, renderer):
143143

144144
# now rotate the bbox
145145
cornersRotated = [M*Matrix([[thisx],[thisy],[1]]) for thisx, thisy in cornersHoriz]
146+
146147
txs = [float(v[0][0]) for v in cornersRotated]
147148
tys = [float(v[1][0]) for v in cornersRotated]
148149

@@ -179,6 +180,7 @@ def _get_layout(self, renderer):
179180
# now rotate the positions around the first x,y position
180181
xys = [M*Matrix([[thisx],[thisy],[1]]) for thisx, thisy in offsetLayout]
181182

183+
182184
tx = [float(v[0][0])+offsetx for v in xys]
183185
ty = [float(v[1][0])+offsety for v in xys]
184186

unit/memleak_hawaii3.py

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -13,24 +13,24 @@ def report_memory(i):
1313

1414

1515
# take a memory snapshot on indStart and compare it with indEnd
16-
indStart, indEnd = 10, 110
16+
indStart, indEnd = 10, 60
1717
for i in range(indEnd):
1818
ind = arange(100)
1919
xx = rand(len(ind))
2020
figure(1)
2121

2222
subplot(221)
23-
plot(ind, xx)
24-
subplot(222)
23+
#plot(ind, xx)
24+
#subplot(222)
2525
X = rand(50,50)
26-
imshow(X)
26+
#imshow(X)
2727

28-
subplot(223)
29-
scatter(rand(50), rand(50))
30-
subplot(224)
31-
pcolor(10*rand(50,50))
28+
#subplot(223)
29+
#scatter(rand(50), rand(50))
30+
#subplot(224)
31+
#pcolor(10*rand(50,50))
3232

33-
#savefig('tmp%d' % i, dpi = 75)
33+
savefig('tmp%d' % i, dpi = 75)
3434
#fd = file('tmp%d' % i, 'wb')
3535
#savefig(fd, dpi = 75)
3636
#fd.close()

unit/transform_memleak.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import sys, time, os
22
from helpers import rand_val, rand_point, rand_bbox, rand_transform
3+
from matplotlib.numerix import rand
34

45
def report_memory(i):
56
pid = os.getpid()
@@ -18,6 +19,10 @@ def report_memory(i):
1819
p1 = rand_point()
1920
box1 = rand_bbox()
2021
t = rand_transform()
22+
N = 10000
23+
x, y = rand(N), rand(N)
24+
xt, yt = t.numerix_x_y(x, y)
25+
xys = t.seq_xy_tups( zip(x,y) )
2126
val = report_memory(i)
2227
if i==1: start = val
2328

0 commit comments

Comments
 (0)