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

Skip to content

Commit 8398d9b

Browse files
committed
Merged revisions 7813,7818-7819 via svnmerge from
https://matplotlib.svn.sourceforge.net/svnroot/matplotlib/branches/v0_99_maint ........ r7813 | jdh2358 | 2009-09-21 12:12:47 -0500 (Mon, 21 Sep 2009) | 1 line tag for 0.99.1 release ........ r7818 | jdh2358 | 2009-09-23 22:00:28 -0500 (Wed, 23 Sep 2009) | 1 line try statically linking in the deps for OSX ........ r7819 | jdh2358 | 2009-09-23 22:57:31 -0500 (Wed, 23 Sep 2009) | 1 line applied a fix for sf bug 2865490; is there something more elegant? ........ svn path=/trunk/matplotlib/; revision=7821
1 parent 059c975 commit 8398d9b

4 files changed

Lines changed: 25 additions & 3 deletions

File tree

CHANGELOG

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
===============================================
2+
2009-09-21 Tagged for release 0.99.1
3+
14
2009-09-20 Fix usetex spacing errors in pdf backend. - JKS
25

36
2009-09-20 Add Sphinx extension to highlight IPython console sessions,

doc/_templates/indexsidebar.html

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,11 @@ <h3>News</h3>
33

44
<p>Please <a href="http://sourceforge.net/project/project_donations.php?group_id=80706">donate</a>
55
to support matplotlib development.</p>
6-
7-
<p>matplotlib 0.99 is available for <a href="http://sourceforge.net/projects/matplotlib">download</a>. See <a href="{{ pathto('users/whats_new') }}">what's new</a> and tips on <a href="{{
6+
7+
<p>We have a release candidate of matplotlib 0.99.1 <a href="http://drop.io/xortel1">available</a> for testing. Please report any problems on the <a href="http://sourceforge.net/tracker2/?group_id=80706">tracker</a> and <a href="http://sourceforge.net/mail/?group_id=80706">mailing list</a>.
8+
</p>
9+
10+
<p>matplotlib 0.99.0 is available for <a href="http://sourceforge.net/projects/matplotlib">download</a>. See <a href="{{ pathto('users/whats_new') }}">what's new</a> and tips on <a href="{{
811
pathto('users/installing') }}">installing</a>
912
</p>
1013

make.osx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
# build mpl into a local install dir with
22
# PREFIX=/Users/jdhunter/dev make -f make.osx fetch deps mpl_install
33

4-
MPLVERSION=0.99.1
54
PYVERSION=2.6
65
PYTHON=python${PYVERSION}
76
ZLIBVERSION=1.2.3
@@ -92,6 +91,7 @@ binaries:
9291
cp release/osx/data/setup.cfg release/osx/data/ReadMe.txt . &&\
9392
export CFLAGS=${CFLAGS} &&\
9493
export LDFLAGS=${LDFLAGS} &&\
94+
rm -f ${PREFIX}/lib/*.dylib &&\
9595
/Library/Frameworks/Python.framework/Versions/${PYVERSION}/bin/bdist_mpkg --readme=ReadMe.txt &&\
9696
hdiutil create -srcdir dist/matplotlib-${MPLVERSION}-py${PYVERSION}-macosx10.5.mpkg dist/matplotlib-${MPLVERSION}-py${PYVERSION}-macosx10.5.dmg &&\
9797
${PYTHON} setupegg.py bdist_egg

src/_backend_agg.cpp

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -608,6 +608,14 @@ RendererAgg::draw_markers(const Py::Tuple& args) {
608608

609609
x = (double)(int)x; y = (double)(int)y;
610610

611+
// if x or y is close to the width or height, the filled
612+
// region could be inside the boundary even if the center is
613+
// out. But at some point we need to cull these points
614+
// because they can create segfaults of they overflow; eg
615+
// https://sourceforge.net/tracker/?func=detail&aid=2865490&group_id=80706&atid=560720
616+
if (fabs(x)>(2*width)) continue;
617+
if (fabs(y)>(2*height)) continue;
618+
611619
pixfmt_amask_type pfa(pixFmt, alphaMask);
612620
amask_ren_type r(pfa);
613621
amask_aa_renderer_type ren(r);
@@ -629,6 +637,14 @@ RendererAgg::draw_markers(const Py::Tuple& args) {
629637

630638
x = (double)(int)x; y = (double)(int)y;
631639

640+
// if x or y is close to the width or height, the filled
641+
// region could be inside the boundary even if the center is
642+
// out. But at some point we need to cull these points
643+
// because they can create segfaults of they overflow; eg
644+
// https://sourceforge.net/tracker/?func=detail&aid=2865490&group_id=80706&atid=560720
645+
if (fabs(x)>(2*width)) continue;
646+
if (fabs(y)>(2*height)) continue;
647+
632648
if (face.first) {
633649
rendererAA.color(face.second);
634650
sa.init(fillCache, fillSize, x, y);

0 commit comments

Comments
 (0)