Skip to content

Commit 4f85be1

Browse files
committed
Initialized merge tracking via "svnmerge" with revisions "1-7318" from
http://matplotlib.svn.sourceforge.net/svnroot/matplotlib/branches/v0_99_maint svn path=/trunk/matplotlib/; revision=8148
1 parent 096b235 commit 4f85be1

File tree

6 files changed

+128
-128
lines changed

6 files changed

+128
-128
lines changed

doc/_templates/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{% extends "layout.html" %}
22
{% set title = 'matplotlib: python plotting' %}
33

4-
4+
55
{% block body %}
66
<h1>intro</h1>
77

doc/_templates/indexsidebar.html

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

12-
<p>Sandro Tosi has a new book
12+
<p>Sandro Tosi has a new book
1313
<a href="http://www.packtpub.com/matplotlib-python-development/book">Matplotlib for python
1414
developers</a>
1515
also
@@ -22,13 +22,12 @@ <h3>News</h3>
2222
tutorial.
2323
</p>
2424

25-
2625
<h3>Videos</h3>
2726

2827
<p>Watch the <a href="http://conference.scipy.org/">SciPy</a> 2009 <a href="http://www.archive.org/details/scipy09_introTutorialDay2_1">intro</a> and <a href="http://www.archive.org/details/scipy09_advancedTutorialDay1_3">advanced</a> matplotlib tutorials
2928
</p>
3029

31-
<p>Watch a <a href="http://videolectures.net/mloss08_hunter_mat">talk</a> about matplotlib presented at <a href="http://videolectures.net/mloss08_whistler">NIPS 08 Workshop</a> <i>MLOSS</i></a>.
30+
<p>Watch a <a href="http://videolectures.net/mloss08_hunter_mat">talk</a> about matplotlib presented at <a href="http://videolectures.net/mloss08_whistler">NIPS 08 Workshop</a> <i>MLOSS</i></a>.
3231
</p>
3332

3433

doc/faq/installing_faq.rst

Lines changed: 42 additions & 54 deletions
Original file line numberDiff line numberDiff line change
@@ -206,19 +206,19 @@ Renderer Filetypes Description
206206
using the `Anti-Grain Geometry`_ engine
207207
PS :term:`ps` :term:`vector graphics` -- Postscript_ output
208208
:term:`eps`
209-
PDF :term:`pdf` :term:`vector graphics` --
209+
PDF :term:`pdf` :term:`vector graphics` --
210210
`Portable Document Format`_
211211
SVG :term:`svg` :term:`vector graphics` --
212212
`Scalable Vector Graphics`_
213213
:term:`Cairo` :term:`png` :term:`vector graphics` --
214214
:term:`ps` `Cairo graphics`_
215-
:term:`pdf`
216-
:term:`svg`
217-
...
215+
:term:`pdf`
216+
:term:`svg`
217+
...
218218
:term:`GDK` :term:`png` :term:`raster graphics` --
219219
:term:`jpg` the `Gimp Drawing Kit`_
220-
:term:`tiff`
221-
...
220+
:term:`tiff`
221+
...
222222
============= ============ ================================================
223223

224224
And here are the user interfaces and renderer combinations supported:
@@ -264,8 +264,8 @@ There is a `bug in PyGTK-2.4`_. You need to edit
264264
:file:`pygobject.h` to add the :cmacro:`G_BEGIN_DECLS` and :cmacro:`G_END_DECLS`
265265
macros, and rename :cdata:`typename` parameter to :cdata:`typename_`::
266266

267-
- const char *typename,
268-
+ const char *typename_,
267+
- const char *typename,
268+
+ const char *typename_,
269269

270270
.. _`bug in PyGTK-2.4`: http://bugzilla.gnome.org/show_bug.cgi?id=155304
271271

@@ -294,20 +294,22 @@ Installing OSX binaries
294294
-----------------------
295295

296296
If you want to install matplotlib from one of the binary installers we
297-
build, you have two choices: a dmg installer, which is a typical
297+
build, you have two choices: a mpkg installer, which is a typical
298298
Installer.app, or an binary OSX egg, which you can install via
299299
setuptools easy_install.
300300

301-
The mkpg installer will have a "dmg" extension, and will have a name
302-
like :file:`matplotlib-0.99.0-py2.5-macosx10.5.dmg` depending on the
303-
python, matplotlib, and OSX versions. Save this file and double
304-
click it, which will open up a folder with a file in it that has the
305-
mpkg extension. Double click this to run the Installer.app, which
306-
will prompt you for a password if you need system wide installation
307-
privileges, and install to a directory like
308-
:file:`/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages`,
309-
again depedending on your python version. This directory should be in
310-
your python path, so you can test your installation with::
301+
The mkpg installer will have a "zip" extension, and will have a name
302+
like file:`matplotlib-0.99.0.rc1-py2.5-macosx10.5_mpkg.zip` depending on
303+
the python, matplotlib, and OSX versions. You need to unzip this file
304+
using either the "unzip" command on OSX, or simply double clicking on
305+
it to run StuffIt Expander. When you double click on the resultant
306+
mpkd directory, which will have a name like
307+
file:`matplotlib-0.99.0.rc1-py2.5-macosx10.5.mpkg`, it will run the
308+
Installer.app, prompt you for a password if you need system wide
309+
installation privileges, and install to a directory like
310+
file:`/Library/Python/2.5/site-packages/`, again depedending on your
311+
python version. This directory may not be in your python path, so you
312+
can test your installation with::
311313

312314
> python -c 'import matplotlib; print matplotlib.__version__, matplotlib.__file__'
313315

@@ -319,23 +321,9 @@ If you get an error like::
319321

320322
then you will need to set your PYTHONPATH, eg::
321323

322-
export PYTHONPATH=/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages:$PYTHONPATH
323-
324-
See also :ref:`environment-variables`.
325-
326-
327-
If you are upgrading your matplotlib using the dmg installer over an
328-
Enthought Python Distribution, you may get an error like "You must use
329-
a framework install of python". EPD puts their python in a directory
330-
like :file:``//Library/Frameworks/Python.framework/Versions/4.3.0``
331-
where 4.3.0 is an EPD version number. The mpl installer needs the
332-
`python` version number, so you need to create a symlink pointing your
333-
python version to the EPS version before installing matplotlib. For
334-
example, for python veersion 2.5 and EPD version 4.3.0::
335-
336-
> cd /Library/Frameworks/Python.framework/Versions
337-
> ln -s 4.3.0 2.5
324+
export PYTHONPATH=/Library/Python/2.5/site-packages:$PYTHONPATH
338325

326+
See also ref:`environment-variables`.
339327

340328
.. _easy-install-osx-egg:
341329

@@ -411,25 +399,25 @@ previous version of MPL was installed (Looks something like ``./matplotlib-0.98.
411399
#branch="release"
412400
branch="trunk"
413401
if [ $branch = "trunk" ]
414-
then
415-
echo getting the trunk
416-
svn co https://matplotlib.svn.sourceforge.net/svnroot/$NAME/trunk/$NAME $NAME
417-
cd $NAME
418-
419-
fi
420-
if [ $branch = "release" ]
421-
then
422-
echo getting the maintenance branch
423-
svn co https://matplotlib.svn.sf.net/svnroot/matplotlib/branches/v${VERSION}_maint $NAME$VERSION
424-
cd $NAME$VERSION
425-
fi
426-
export CFLAGS="-Os -arch i386"
427-
export LDFLAGS="-Os -arch i386"
428-
export PKG_CONFIG_PATH="/usr/x11/lib/pkgconfig"
429-
export ARCHFLAGS="-arch i386"
430-
python setup.py build
431-
python setup.py install #--prefix=$PREFIX #Use this if you don't want it installed into your default location
432-
cd ..
402+
then
403+
echo getting the trunk
404+
svn co https://matplotlib.svn.sourceforge.net/svnroot/$NAME/trunk/$NAME $NAME
405+
cd $NAME
406+
407+
fi
408+
if [ $branch = "release" ]
409+
then
410+
echo getting the maintenance branch
411+
svn co https://matplotlib.svn.sf.net/svnroot/matplotlib/branches/v${VERSION}_maint $NAME$VERSION
412+
cd $NAME$VERSION
413+
fi
414+
export CFLAGS="-Os -arch i386"
415+
export LDFLAGS="-Os -arch i386"
416+
export PKG_CONFIG_PATH="/usr/x11/lib/pkgconfig"
417+
export ARCHFLAGS="-arch i386"
418+
python setup.py build
419+
python setup.py install #--prefix=$PREFIX #Use this if you don't want it installed into your default location
420+
cd ..
433421

434422
Run this script (for example ``sh ./install-matplotlib-epd-osx.sh``) in the
435423
directory in which you want the source code to be placed, or simply type the

doc/users/installing.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,9 @@ and running quickly::
7979

8080
In [2]: hist(x, 100)
8181

82+
Instructions for installing our OSX binaries are found in the FAQ
83+
ref:`install_osx_binaries`.
84+
8285
Note that when testing matplotlib installations from the interactive
8386
python console, there are some issues relating to user interface
8487
toolkits and interactive settings that are discussed in

examples/pylab_examples/boxplot_demo2.py

Lines changed: 19 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,6 @@
1616
randomDists = ['Normal(1,1)',' Lognormal(1,1)', 'Exp(1)', 'Gumbel(6,4)',
1717
'Triangular(2,9,11)']
1818
N = 500
19-
20-
np.random.seed(3) # make identical plots each time
21-
2219
norm = np.random.normal(1,1, N)
2320
logn = np.random.lognormal(1,1, N)
2421
expo = np.random.exponential(1, N)
@@ -42,8 +39,8 @@
4239
ax1 = fig.add_subplot(111)
4340
plt.subplots_adjust(left=0.075, right=0.95, top=0.9, bottom=0.25)
4441

45-
bp = plt.boxplot(data, notch=0, sym='+', vert=1, whis=1.5, patch_artist=True)
46-
plt.setp(bp['boxes'], edgecolor='black')
42+
bp = plt.boxplot(data, notch=0, sym='+', vert=1, whis=1.5)
43+
plt.setp(bp['boxes'], color='black')
4744
plt.setp(bp['whiskers'], color='black')
4845
plt.setp(bp['fliers'], color='red', marker='+')
4946

@@ -64,12 +61,25 @@
6461
medians = range(numBoxes)
6562
for i in range(numBoxes):
6663
box = bp['boxes'][i]
64+
boxX = []
65+
boxY = []
66+
for j in range(5):
67+
boxX.append(box.get_xdata()[j])
68+
boxY.append(box.get_ydata()[j])
69+
boxCoords = zip(boxX,boxY)
70+
# Alternate between Dark Khaki and Royal Blue
6771
k = i % 2
68-
# Set the box colors
69-
box.set_facecolor(boxColors[k])
70-
# Now get the medians
72+
boxPolygon = Polygon(boxCoords, facecolor=boxColors[k])
73+
ax1.add_patch(boxPolygon)
74+
# Now draw the median lines back over what we just filled in
7175
med = bp['medians'][i]
72-
medians[i] = med.get_ydata()[0]
76+
medianX = []
77+
medianY = []
78+
for j in range(2):
79+
medianX.append(med.get_xdata()[j])
80+
medianY.append(med.get_ydata()[j])
81+
plt.plot(medianX, medianY, 'k')
82+
medians[i] = medianY[0]
7383
# Finally, overplot the sample averages, with horixzontal alignment
7484
# in the center of each box
7585
plt.plot([np.average(med.get_xdata())], [np.average(data[i])],

release/osx/Makefile

Lines changed: 61 additions & 61 deletions
Original file line numberDiff line numberDiff line change
@@ -22,86 +22,86 @@ CFLAGS_DEPS="-arch i386 -arch ppc -I${SRCDIR}/zlib-${ZLIBVERSION} -isysroot /Dev
2222
LDFLAGS_DEPS="-arch i386 -arch ppc -L${SRCDIR}/zlib-${ZLIBVERSION} -syslibroot,/Developer/SDKs/MacOSX10.4u.sdk"
2323

2424
clean:
25-
rm -rf zlib-${ZLIBVERSION}.tar.gz libpng-${PNGVERSION}.tar.bz2 \
26-
freetype-${FREETYPEVERSION}.tar.bz2 bdist_mpkg-${BDISTMPKGVERSION}.tar.gz \
27-
bdist_mpkg-${BDISTMPKGVERSION} \
28-
zlib-${ZLIBVERSION} libpng-${PNGVERSION} freetype-${FREETYPEVERSION} \
29-
matplotlib-${MPLVERSION} *~
25+
rm -rf zlib-${ZLIBVERSION}.tar.gz libpng-${PNGVERSION}.tar.bz2 \
26+
freetype-${FREETYPEVERSION}.tar.bz2 bdist_mpkg-${BDISTMPKGVERSION}.tar.gz \
27+
bdist_mpkg-${BDISTMPKGVERSION} \
28+
zlib-${ZLIBVERSION} libpng-${PNGVERSION} freetype-${FREETYPEVERSION} \
29+
matplotlib-${MPLVERSION} *~
3030

3131
fetch:
32-
curl -LO http://www.zlib.net/zlib-${ZLIBVERSION}.tar.gz &&\
33-
curl -LO http://internap.dl.sourceforge.net/sourceforge/libpng/libpng-${PNGVERSION}.tar.bz2 &&\
34-
curl -LO http://download.savannah.gnu.org/releases/freetype/freetype-${FREETYPEVERSION}.tar.bz2&&\
35-
curl -LO http://pypi.python.org/packages/source/b/bdist_mpkg/bdist_mpkg-${BDISTMPKGVERSION}.tar.gz&&\
36-
tar xvfz bdist_mpkg-${BDISTMPKGVERSION}.tar.gz &&\
37-
echo "You need to install bdist_mpkg-${BDISTMPKGVERSION} now"
32+
curl -LO http://www.zlib.net/zlib-${ZLIBVERSION}.tar.gz &&\
33+
curl -LO http://internap.dl.sourceforge.net/sourceforge/libpng/libpng-${PNGVERSION}.tar.bz2 &&\
34+
curl -LO http://download.savannah.gnu.org/releases/freetype/freetype-${FREETYPEVERSION}.tar.bz2&&\
35+
curl -LO http://pypi.python.org/packages/source/b/bdist_mpkg/bdist_mpkg-${BDISTMPKGVERSION}.tar.gz&&\
36+
tar xvfz bdist_mpkg-${BDISTMPKGVERSION}.tar.gz &&\
37+
echo "You need to install bdist_mpkg-${BDISTMPKGVERSION} now"
3838

3939

4040

4141
zlib:
42-
unset PKG_CONFIG_PATH &&\
43-
rm -rf zlib-${ZLIBVERSION} &&\
44-
tar xvfz zlib-${ZLIBVERSION}.tar.gz &&\
45-
cd zlib-${ZLIBVERSION} &&\
46-
export MACOSX_DEPLOYMENT_TARGET=${MACOSX_DEPLOYMENT_TARGET} &&\
47-
export CFLAGS=${CFLAGS_DEPS} &&\
48-
export LDFLAGS=${LDFLAGS_DEPS} &&\
49-
./configure &&\
50-
MACOSX_DEPLOYMENT_TARGET=${MACOSX_DEPLOYMENT_TARGET} CFLAGS=${CFLAGS_ZLIB} LDFLAGS=${LDFLAGS_ZLIB} make -j3&& \
51-
unset MACOSX_DEPLOYMENT_TARGET
42+
unset PKG_CONFIG_PATH &&\
43+
rm -rf zlib-${ZLIBVERSION} &&\
44+
tar xvfz zlib-${ZLIBVERSION}.tar.gz &&\
45+
cd zlib-${ZLIBVERSION} &&\
46+
export MACOSX_DEPLOYMENT_TARGET=${MACOSX_DEPLOYMENT_TARGET} &&\
47+
export CFLAGS=${CFLAGS_DEPS} &&\
48+
export LDFLAGS=${LDFLAGS_DEPS} &&\
49+
./configure &&\
50+
MACOSX_DEPLOYMENT_TARGET=${MACOSX_DEPLOYMENT_TARGET} CFLAGS=${CFLAGS_ZLIB} LDFLAGS=${LDFLAGS_ZLIB} make -j3&& \
51+
unset MACOSX_DEPLOYMENT_TARGET
5252

5353
png: zlib
54-
unset PKG_CONFIG_PATH &&\
55-
rm -rf libpng-${PNGVERSION} &&\
56-
tar xvfj libpng-${PNGVERSION}.tar.bz2
57-
cd libpng-${PNGVERSION} &&\
58-
export MACOSX_DEPLOYMENT_TARGET=${MACOSX_DEPLOYMENT_TARGET} &&\
59-
export CFLAGS=${CFLAGS_DEPS} &&\
60-
export LDFLAGS=${LDFLAGS_DEPS} &&\
61-
./configure --disable-dependency-tracking &&\
62-
make -j3 &&\
63-
cp .libs/libpng.a . &&\
64-
unset MACOSX_DEPLOYMENT_TARGET
54+
unset PKG_CONFIG_PATH &&\
55+
rm -rf libpng-${PNGVERSION} &&\
56+
tar xvfj libpng-${PNGVERSION}.tar.bz2
57+
cd libpng-${PNGVERSION} &&\
58+
export MACOSX_DEPLOYMENT_TARGET=${MACOSX_DEPLOYMENT_TARGET} &&\
59+
export CFLAGS=${CFLAGS_DEPS} &&\
60+
export LDFLAGS=${LDFLAGS_DEPS} &&\
61+
./configure --disable-dependency-tracking &&\
62+
make -j3 &&\
63+
cp .libs/libpng.a . &&\
64+
unset MACOSX_DEPLOYMENT_TARGET
6565

6666

6767
freetype: zlib
68-
unset PKG_CONFIG_PATH &&\
69-
rm -rf ${FREETYPEVERSION} &&\
70-
tar xvfj freetype-${FREETYPEVERSION}.tar.bz2 &&\
71-
cd freetype-${FREETYPEVERSION} &&\
72-
export MACOSX_DEPLOYMENT_TARGET=${MACOSX_DEPLOYMENT_TARGET} &&\
73-
export CFLAGS=${CFLAGS_DEPS} &&\
74-
export LDFLAGS=${LDFLAGS_DEPS} &&\
75-
./configure &&\
76-
make -j3 &&\
77-
cp objs/.libs/libfreetype.a . &&\
78-
unset MACOSX_DEPLOYMENT_TARGET
68+
unset PKG_CONFIG_PATH &&\
69+
rm -rf ${FREETYPEVERSION} &&\
70+
tar xvfj freetype-${FREETYPEVERSION}.tar.bz2 &&\
71+
cd freetype-${FREETYPEVERSION} &&\
72+
export MACOSX_DEPLOYMENT_TARGET=${MACOSX_DEPLOYMENT_TARGET} &&\
73+
export CFLAGS=${CFLAGS_DEPS} &&\
74+
export LDFLAGS=${LDFLAGS_DEPS} &&\
75+
./configure &&\
76+
make -j3 &&\
77+
cp objs/.libs/libfreetype.a . &&\
78+
unset MACOSX_DEPLOYMENT_TARGET
7979

8080
deps:
81-
make zlib png freetype
81+
make zlib png freetype
8282

8383
installers:
84-
unset PKG_CONFIG_PATH &&\
85-
tar xvfz matplotlib-${MPLVERSION}.tar.gz && \
86-
cd ${MPLSRC} && \
87-
rm -rf build && \
88-
cp ../data/setup.cfg ../data/ReadMe.txt . &&\
89-
export CFLAGS=${CFLAGS} &&\
90-
export LDFLAGS=${LDFLAGS} &&\
91-
/Library/Frameworks/Python.framework/Versions/${PYVERSION}/bin/bdist_mpkg --readme=ReadMe.txt &&\
92-
hdiutil create -srcdir dist/matplotlib-${MPLVERSION}-py${PYVERSION}-macosx10.5.mpkg dist/matplotlib-${MPLVERSION}-py${PYVERSION}-macosx10.5.dmg &&\
93-
${PYTHON} setupegg.py bdist_egg
84+
unset PKG_CONFIG_PATH &&\
85+
tar xvfz matplotlib-${MPLVERSION}.tar.gz && \
86+
cd ${MPLSRC} && \
87+
rm -rf build && \
88+
cp ../data/setup.cfg ../data/ReadMe.txt . &&\
89+
export CFLAGS=${CFLAGS} &&\
90+
export LDFLAGS=${LDFLAGS} &&\
91+
/Library/Frameworks/Python.framework/Versions/${PYVERSION}/bin/bdist_mpkg --readme=ReadMe.txt &&\
92+
hdiutil create -srcdir dist/matplotlib-${MPLVERSION}-py${PYVERSION}-macosx10.5.mpkg dist/matplotlib-${MPLVERSION}-py${PYVERSION}-macosx10.5.dmg &&\
93+
${PYTHON} setupegg.py bdist_egg
9494

9595
upload:
96-
rm -rf upload &&\
97-
mkdir upload &&\
98-
cp matplotlib-${MPLVERSION}.tar.gz upload/ &&\
99-
cp matplotlib-${MPLVERSION}/dist/matplotlib-${MPLVERSION}_r0-py${PYVERSION}-macosx-10.3-fat.egg upload/matplotlib-${MPLVERSION}-macosx-py${PYVERSION}.egg &&\
100-
cp matplotlib-${MPLVERSION}/dist/matplotlib-${MPLVERSION}-py${PYVERSION}-macosx10.5.zip upload/matplotlib-${MPLVERSION}-py${PYVERSION}-mpkg.zip&&\
101-
scp upload/* jdh2358@frs.sourceforge.net:uploads/
96+
rm -rf upload &&\
97+
mkdir upload &&\
98+
cp matplotlib-${MPLVERSION}.tar.gz upload/ &&\
99+
cp matplotlib-${MPLVERSION}/dist/matplotlib-${MPLVERSION}_r0-py${PYVERSION}-macosx-10.3-fat.egg upload/matplotlib-${MPLVERSION}-macosx-py${PYVERSION}.egg &&\
100+
cp matplotlib-${MPLVERSION}/dist/matplotlib-${MPLVERSION}-py${PYVERSION}-macosx10.5.zip upload/matplotlib-${MPLVERSION}-py${PYVERSION}-mpkg.zip&&\
101+
scp upload/* jdh2358@frs.sourceforge.net:uploads/
102102

103103
all:
104-
make clean fetch deps installers upload
104+
make clean fetch deps installers upload
105105

106106

107107

0 commit comments

Comments
 (0)