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

Skip to content

Commit 0024d97

Browse files
committed
patch branch updates
svn path=/trunk/matplotlib/; revision=8176
1 parent 1e6bbf3 commit 0024d97

10 files changed

Lines changed: 47 additions & 24 deletions

File tree

CHANGELOG

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,26 @@
1+
2010-03-03 Manually brought in commits from branch via diff/patch (svnmerge is broken)
2+
3+
------------------------------------------------------------------------
4+
r8175 | leejjoon | 2010-03-03 10:03:30 -0800 (Wed, 03 Mar 2010) | 1 line
5+
6+
fix arguments of allow_rasterization.draw_wrapper
7+
------------------------------------------------------------------------
8+
r8174 | jdh2358 | 2010-03-03 09:15:58 -0800 (Wed, 03 Mar 2010) | 1 line
9+
10+
added support for favicon in docs build
11+
------------------------------------------------------------------------
12+
r8173 | jdh2358 | 2010-03-03 08:56:16 -0800 (Wed, 03 Mar 2010) | 1 line
13+
14+
applied Mattias get_bounds patch
15+
------------------------------------------------------------------------
16+
r8172 | jdh2358 | 2010-03-03 08:31:42 -0800 (Wed, 03 Mar 2010) | 1 line
17+
18+
fix svnmerge download instructions
19+
------------------------------------------------------------------------
20+
r8171 | jdh2358 | 2010-03-03 07:47:48 -0800 (Wed, 03 Mar 2010) | 1 line
21+
22+
23+
124
2010-02-25 add annotation_demo3.py that demonstrates new functionality. -JJL
225

326
2010-02-25 refactor Annotation to support arbitrary Transform as xycoords

doc/_static/favicon.ico

22 KB
Binary file not shown.

doc/_templates/indexsidebar.html

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,11 @@ <h3>News</h3>
99
pathto('users/installing') }}">installing</a>
1010
</p>
1111

12-
<p>Sandro Tosi has a new book
13-
<a href="http://www.packtpub.com/matplotlib-python-development/book">Matplotlib for python
14-
developers</a>
15-
also
16-
at <a href="http://www.amazon.com/Matplotlib-Python-Developers-Sandro-Tosi/dp/1847197906">amazon</a>.</p>
12+
<p>Sandro Tosi has a new book
13+
<a href="http://www.packtpub.com/matplotlib-python-development/book?utm_source=matplotlib.sourceforge.net&utm_medium=link&utm_content=pod&utm_campaign=mdb_002124">Matplotlib for python
14+
developers</a>
15+
also
16+
at <a href="http://www.amazon.com/Matplotlib-Python-Developers-Sandro-Tosi/dp/1847197906">amazon</a>.</p>
1717

1818
<p>Build websites like matplotlib's,
1919
with <a href="http://sphinx.pocoo.org/">sphinx</a> and extensions for

doc/_templates/layout.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
</script>
2424
<object><noscript><p><img src="http://apps.sourceforge.net/piwik/matplotlib/piwik.php?idsite=1" alt="piwik"/></p></noscript></object>
2525
<!-- End Piwik Tag -->
26-
26+
<link rel="shortcut icon" href="_static/favicon.ico">
2727

2828
<div style="background-color: white; text-align: left; padding: 10px 10px 15px 15px">
2929
<a href="{{ pathto('index') }}"><img src="{{

doc/devel/coding_guide.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,8 +82,8 @@ The basic procedure is:
8282

8383
* install ``svnmerge.py`` in your PATH::
8484

85-
> wget http://svn.collab.net/repos/svn/trunk/contrib/client-side/\
86-
svnmerge/svnmerge.py
85+
> wget http://svn.apache.org/repos/asf/subversion/trunk/contrib/\
86+
client-side/svnmerge/svnmerge.py
8787

8888
* get a svn checkout of the branch you'll be making bugfixes to and
8989
the trunk (see above)

doc/users/artists.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -419,7 +419,7 @@ interactive session illustrating what is going on:
419419
# and notice that the ax.add_patch method has set the axes
420420
# instance
421421
In [267]: print rect.get_axes()
422-
Subplot(49,81.25)
422+
Axes(0.125,0.1;0.775x0.8)
423423

424424
# and the transformation has been set too
425425
In [268]: print rect.get_transform()
@@ -434,7 +434,7 @@ interactive session illustrating what is going on:
434434
(0.0, 1.0)
435435

436436
# but the data limits have been updated to encompass the rectangle
437-
In [271]: print ax.dataLim.get_bounds()
437+
In [271]: print ax.dataLim.bounds
438438
(1.0, 1.0, 5.0, 12.0)
439439

440440
# we can manually invoke the auto-scaling machinery

lib/matplotlib/artist.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,9 @@ def after(artist, renderer):
5050
renderer.stop_rasterizing()
5151

5252
# the axes class has a second argument inframe for its draw method.
53-
def draw_wrapper(artist, renderer, *kl):
53+
def draw_wrapper(artist, renderer, *args, **kwargs):
5454
before(artist, renderer)
55-
draw(artist, renderer, *kl)
55+
draw(artist, renderer, *args, **kwargs)
5656
after(artist, renderer)
5757

5858
# "safe wrapping" to exactly replicate anything we haven't overridden above

lib/matplotlib/backends/backend_wxagg.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ def _clipped_image_as_bitmap(image, bbox):
171171
"""
172172
Convert the region of a wx.Image bounded by bbox to a wx.Bitmap.
173173
"""
174-
l, b, width, height = bbox.get_bounds()
174+
l, b, width, height = bbox.bounds
175175
r = l + width
176176
t = b + height
177177

@@ -238,7 +238,7 @@ def _WX28_clipped_agg_as_bitmap(agg, bbox):
238238
239239
Note: agg must be a backend_agg.RendererAgg instance.
240240
"""
241-
l, b, width, height = bbox.get_bounds()
241+
l, b, width, height = bbox.bounds
242242
r = l + width
243243
t = b + height
244244

lib/matplotlib/finance.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -597,8 +597,8 @@ def volume_overlay3(ax, quotes,
597597
maxy = max([volume for d, open, close, high, low, volume in quotes])
598598
corners = (minpy, miny), (maxx, maxy)
599599
ax.update_datalim(corners)
600-
#print 'datalim', ax.dataLim.get_bounds()
601-
#print 'viewlim', ax.viewLim.get_bounds()
600+
#print 'datalim', ax.dataLim.bounds
601+
#print 'viewlim', ax.viewLim.bounds
602602

603603
ax.add_collection(barCollection)
604604
ax.autoscale_view()

lib/matplotlib/patches.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1414,12 +1414,12 @@ def bbox_artist(artist, renderer, props=None, fill=True):
14141414
pad = props.pop('pad', 4)
14151415
pad = renderer.points_to_pixels(pad)
14161416
bbox = artist.get_window_extent(renderer)
1417-
l,b,w,h = bbox.bounds
1418-
l-=pad/2.
1419-
b-=pad/2.
1420-
w+=pad
1421-
h+=pad
1422-
r = Rectangle(xy=(l,b),
1417+
l, b, w, h = bbox.bounds
1418+
l -= pad/2.
1419+
b -= pad/2.
1420+
w += pad
1421+
h += pad
1422+
r = Rectangle(xy=(l, b),
14231423
width=w,
14241424
height=h,
14251425
fill=fill,
@@ -1438,8 +1438,8 @@ def draw_bbox(bbox, renderer, color='k', trans=None):
14381438
to test whether the artist is returning the correct bbox.
14391439
"""
14401440

1441-
l,b,w,h = bbox.get_bounds()
1442-
r = Rectangle(xy=(l,b),
1441+
l, b, w, h = bbox.bounds
1442+
r = Rectangle(xy=(l, b),
14431443
width=w,
14441444
height=h,
14451445
edgecolor=color,

0 commit comments

Comments
 (0)