You can subscribe to this list here.
2003 |
Jan
|
Feb
|
Mar
|
Apr
|
May
(3) |
Jun
|
Jul
|
Aug
(12) |
Sep
(12) |
Oct
(56) |
Nov
(65) |
Dec
(37) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2004 |
Jan
(59) |
Feb
(78) |
Mar
(153) |
Apr
(205) |
May
(184) |
Jun
(123) |
Jul
(171) |
Aug
(156) |
Sep
(190) |
Oct
(120) |
Nov
(154) |
Dec
(223) |
2005 |
Jan
(184) |
Feb
(267) |
Mar
(214) |
Apr
(286) |
May
(320) |
Jun
(299) |
Jul
(348) |
Aug
(283) |
Sep
(355) |
Oct
(293) |
Nov
(232) |
Dec
(203) |
2006 |
Jan
(352) |
Feb
(358) |
Mar
(403) |
Apr
(313) |
May
(165) |
Jun
(281) |
Jul
(316) |
Aug
(228) |
Sep
(279) |
Oct
(243) |
Nov
(315) |
Dec
(345) |
2007 |
Jan
(260) |
Feb
(323) |
Mar
(340) |
Apr
(319) |
May
(290) |
Jun
(296) |
Jul
(221) |
Aug
(292) |
Sep
(242) |
Oct
(248) |
Nov
(242) |
Dec
(332) |
2008 |
Jan
(312) |
Feb
(359) |
Mar
(454) |
Apr
(287) |
May
(340) |
Jun
(450) |
Jul
(403) |
Aug
(324) |
Sep
(349) |
Oct
(385) |
Nov
(363) |
Dec
(437) |
2009 |
Jan
(500) |
Feb
(301) |
Mar
(409) |
Apr
(486) |
May
(545) |
Jun
(391) |
Jul
(518) |
Aug
(497) |
Sep
(492) |
Oct
(429) |
Nov
(357) |
Dec
(310) |
2010 |
Jan
(371) |
Feb
(657) |
Mar
(519) |
Apr
(432) |
May
(312) |
Jun
(416) |
Jul
(477) |
Aug
(386) |
Sep
(419) |
Oct
(435) |
Nov
(320) |
Dec
(202) |
2011 |
Jan
(321) |
Feb
(413) |
Mar
(299) |
Apr
(215) |
May
(284) |
Jun
(203) |
Jul
(207) |
Aug
(314) |
Sep
(321) |
Oct
(259) |
Nov
(347) |
Dec
(209) |
2012 |
Jan
(322) |
Feb
(414) |
Mar
(377) |
Apr
(179) |
May
(173) |
Jun
(234) |
Jul
(295) |
Aug
(239) |
Sep
(276) |
Oct
(355) |
Nov
(144) |
Dec
(108) |
2013 |
Jan
(170) |
Feb
(89) |
Mar
(204) |
Apr
(133) |
May
(142) |
Jun
(89) |
Jul
(160) |
Aug
(180) |
Sep
(69) |
Oct
(136) |
Nov
(83) |
Dec
(32) |
2014 |
Jan
(71) |
Feb
(90) |
Mar
(161) |
Apr
(117) |
May
(78) |
Jun
(94) |
Jul
(60) |
Aug
(83) |
Sep
(102) |
Oct
(132) |
Nov
(154) |
Dec
(96) |
2015 |
Jan
(45) |
Feb
(138) |
Mar
(176) |
Apr
(132) |
May
(119) |
Jun
(124) |
Jul
(77) |
Aug
(31) |
Sep
(34) |
Oct
(22) |
Nov
(23) |
Dec
(9) |
2016 |
Jan
(26) |
Feb
(17) |
Mar
(10) |
Apr
(8) |
May
(4) |
Jun
(8) |
Jul
(6) |
Aug
(5) |
Sep
(9) |
Oct
(4) |
Nov
|
Dec
|
2017 |
Jan
(5) |
Feb
(7) |
Mar
(1) |
Apr
(5) |
May
|
Jun
(3) |
Jul
(6) |
Aug
(1) |
Sep
|
Oct
(2) |
Nov
(1) |
Dec
|
2018 |
Jan
|
Feb
|
Mar
|
Apr
(1) |
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2020 |
Jan
|
Feb
|
Mar
|
Apr
|
May
(1) |
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2025 |
Jan
(1) |
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
S | M | T | W | T | F | S |
---|---|---|---|---|---|---|
1
(1) |
2
(12) |
3
(12) |
4
(19) |
5
(7) |
6
(6) |
7
(2) |
8
(2) |
9
(11) |
10
(15) |
11
(27) |
12
(27) |
13
(18) |
14
(3) |
15
(3) |
16
(25) |
17
(9) |
18
(3) |
19
(4) |
20
(2) |
21
(4) |
22
(9) |
23
(28) |
24
(18) |
25
(16) |
26
(9) |
27
(4) |
28
(13) |
29
(15) |
30
(33) |
|
|
|
|
|
Yes that was the bug. Please commit the fix. Xavier > Revision 7985 contains a typo (see bug tracker). Try replace the string > PY_ARRAYAUNIQUE_SYMBOL with PY_ARRAY_UNIQUE_SYMBOL in setupext.py. > > Christoph > > ------------------------------------------------------------------------------ > Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day > trial. Simplify your report design, integration and deployment - and focus on > what you do best, core application coding. Discover what's new with > Crystal Reports now. http://p.sf.net/sfu/bobj-july > _______________________________________________ > Matplotlib-users mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users >
Revision 7985 contains a typo (see bug tracker). Try replace the string PY_ARRAYAUNIQUE_SYMBOL with PY_ARRAY_UNIQUE_SYMBOL in setupext.py. Christoph
Hi, I'm trying to compile numpy/scipy and matplotlib (I did it N times without any problem). Numpy and scipy are ok (.test() is fine). However, from pylab import * fails with way: /usr/local/lib/python2.6/dist-packages/pylab.py in <module>() ----> 1 2 3 from matplotlib.pylab import * 4 import matplotlib.pylab 5 __doc__ = matplotlib.pylab.__doc__ /usr/local/lib/python2.6/dist-packages/matplotlib/pylab.py in <module>() 204 silent_list, iterable, dedent 205 --> 206 from matplotlib import mpl # pulls in most modules 207 208 from matplotlib.dates import date2num, num2date,\ /usr/local/lib/python2.6/dist-packages/matplotlib/mpl.py in <module>() ----> 1 2 3 from matplotlib import artist 4 from matplotlib import axis 5 from matplotlib import axes 6 from matplotlib import cbook 7 from matplotlib import collections /usr/local/lib/python2.6/dist-packages/matplotlib/artist.py in <module>() 4 import matplotlib.cbook as cbook 5 from matplotlib import docstring ----> 6 from transforms import Bbox, IdentityTransform, TransformedBbox, TransformedPath 7 from path import Path 8 /usr/local/lib/python2.6/dist-packages/matplotlib/transforms.py in <module>() 32 import numpy as np 33 from numpy import ma ---> 34 from matplotlib._path import affine_transform 35 from numpy.linalg import inv 36 ImportError: /usr/local/lib/python2.6/dist-packages/matplotlib/_path.so: undefined symbol: PyArray_API I may have a problem with the svn update but I'm not quite sure. Maybe it is just a temporary compatibility problem in between matplotlib and numpy. Can someone comment on that? I'm using: numpy At revision 7773. scipy At revision 6120. matplotlib At revision 7985. Xavier
Hi, just wanted to raise this problem on the devel list, where it probably belongs. Also, if nobody has time to look at it now and you prefer me to file a bug, please don't hesitate to tell it. the original post is there: http://thread.gmane.org/gmane.comp.python.matplotlib.general/20411 Cheers Le 21 novembre 2009 17:50, Sébastien Barthélemy <bar...@cr...> a écrit : > Le 18 novembre 2009 17:24, Michael Droettboom <md...@st...> a écrit : > > This is a bug -- but it has a fairly straightforward fix: to use Sphinx's >> "include" directive rather than roll our own as we currently do. This has >> been fixed in SVN r7972. plot-directive now takes an "encoding" option, >> exactly like the Sphinx include directive. It does not do automatic >> encoding detection (meaning it ignores the "# coding: latin1" comments), >> just as the Sphinx include directive does. >> > > Hello Michael, > > thank you for your fast reply and action. I just tried with the version > from trunk (r7978) and I still have an encoding problem on the same test > case. It seems to happen when the file is ran (to produce the figure) rather > than when it is included. I had a look at the code, but cannot understand > what is happenning, I would have expected imp to proprely guess the > encoding. > > Could you tell me if you have the same problem ? Do you have any idea of > what is going on ? > > Thanks ! > > $ git clone git://github.com/sbarthelemy/SphinxEncoding.git > $ cd SphinxEncoding/ > $ make html > sphinx-build -b html -d _build/doctrees . _build/html > Making output directory... > Running Sphinx v0.6.2 > loading pickled environment... not found > building [html]: targets for 1 source files that are out of date > updating environment: 1 added, 0 changed, 0 removed > /home/barthelemy/.local/lib/python2.6/site-packages/matplotlib/sphinxext/plot_directive.py:273: > UserWarning: Exception running plot ./fileutf8.py > Traceback (most recent call last): > File > "/home/barthelemy/.local/lib/python2.6/site-packages/matplotlib/sphinxext/plot_directive.py", > line 270, in render_figures > run_code(plot_path, function_name, plot_code) > File > "/home/barthelemy/.local/lib/python2.6/site-packages/matplotlib/sphinxext/plot_directive.py", > line 182, in run_code > "__plot__", fd, fname, ('py', 'r', imp.PY_SOURCE)) > File "fileutf8.py", line 2, in <module> > print(u"accent aigus é") > UnicodeEncodeError: 'ascii' codec can't encode character u'\xe9' in > position 13: ordinal not in range(128) >
FWIW: It comes from a set of OpenSolaris patches to Python here: http://src.opensolaris.org/source/xref/jds/spec-files/trunk/patches/Python-02-pycc.diff http://src.opensolaris.org/source/xref/jds/spec-files/trunk/patches/Python-03-distutils-pycc.diff Mike Michael Droettboom wrote: > Where is it from? Can you send it as an attachment? Googling doesn't > reveal anything. > > Mike > > David Trethewey wrote: > >> Looking at it, it describes itself as a script for running the C/C++ >> compiler when building python modules. >> >> David >> >> Michael Droettboom wrote: >> >>> What is /usr/lib/python2.4/pycc? Some sort of wrapper around the >>> compiler? I don't have it on my Sun machine. I would start by >>> looking at that to see what it's doing. It may not be passing the >>> source file along to the compiler. >>> >>> Mike >>> >>> David Trethewey wrote: >>> >>>> I am trying to compile matplotlib on Solaris, I have run into >>>> problems as below compiling the ft2fonts extension. Anyone know why? >>>> >>>> David >>>> >>>> >>>> python setup.py build >>>> ============================================================================ >>>> >>>> BUILDING MATPLOTLIB >>>> matplotlib: 0.99.1.1 >>>> python: 2.4.4 (#1, Jan 10 2007, 01:25:01) [C] >>>> platform: sunos5 >>>> >>>> REQUIRED DEPENDENCIES >>>> numpy: 1.1.0 >>>> freetype2: 9.8.3 >>>> >>>> OPTIONAL BACKEND DEPENDENCIES >>>> libpng: 1.2.35 >>>> Tkinter: Tkinter: 39220, Tk: 8.3, Tcl: 8.3 >>>> * Guessing the library and include >>>> directories for >>>> * Tcl and Tk because the tclConfig.sh and >>>> * tkConfig.sh could not be found and/or parsed. >>>> wxPython: no >>>> * wxPython not found >>>> Gtk+: no >>>> * Building for Gtk+ requires pygtk; you must >>>> be able >>>> * to "import gtk" in your build/install >>>> environment >>>> Mac OS X native: no >>>> Qt: no >>>> Qt4: no >>>> Cairo: no >>>> >>>> OPTIONAL DATE/TIMEZONE DEPENDENCIES >>>> datetime: present, version unknown >>>> dateutil: matplotlib will provide >>>> pytz: matplotlib will provide >>>> adding pytz >>>> >>>> OPTIONAL USETEX DEPENDENCIES >>>> dvipng: no >>>> ghostscript: 8.15.4 >>>> latex: 3.14159 >>>> >>>> [Edit setup.cfg to suppress the above messages] >>>> ============================================================================ >>>> >>>> pymods ['pylab'] >>>> packages ['matplotlib', 'matplotlib.backends', >>>> 'matplotlib.projections', 'mpl_toolkits', 'mpl_toolkits.mplot3d', >>>> 'mpl_toolkits.axes_grid', 'matplotlib.sphinxext', >>>> 'matplotlib.numerix', 'matplotlib.numerix.mlab', >>>> 'matplotlib.numerix.ma', 'matplotlib.numerix.linear_algebra', >>>> 'matplotlib.numerix.random_array', 'matplotlib.numerix.fft', >>>> 'matplotlib.delaunay', 'pytz', 'dateutil', 'dateutil/zoneinfo'] >>>> running build >>>> running build_py >>>> copying lib/matplotlib/mpl-data/matplotlibrc -> >>>> build/lib.solaris-2.10-sun4u-2.4/matplotlib/mpl-data >>>> copying lib/matplotlib/mpl-data/matplotlib.conf -> >>>> build/lib.solaris-2.10-sun4u-2.4/matplotlib/mpl-data >>>> running build_ext >>>> building 'matplotlib.ft2font' extension >>>> /usr/lib/python2.4/pycc -DNDEBUG >>>> -DPY_ARRAYAUNIQUE_SYMBOL=MPL_ARRAY_API >>>> -I/home/dlrt2/usr/lib/python/numpy/core/include -I/usr/sfw/include >>>> -I/usr/sfw/include/freetype2 -I/usr/local/include -I. >>>> -I/usr/include/python2.4 -c src/ft2font.cpp -o >>>> build/temp.solaris-2.10-sun4u-2.4/src/ft2font.o >>>> cc: No input file specified, no output generated >>>> error: command '/usr/lib/python2.4/pycc' failed with exit status 1 >>>> >>>> >>>> >> > > -- Michael Droettboom Science Software Branch Operations and Engineering Division Space Telescope Science Institute Operated by AURA for NASA
Where is it from? Can you send it as an attachment? Googling doesn't reveal anything. Mike David Trethewey wrote: > Looking at it, it describes itself as a script for running the C/C++ > compiler when building python modules. > > David > > Michael Droettboom wrote: >> What is /usr/lib/python2.4/pycc? Some sort of wrapper around the >> compiler? I don't have it on my Sun machine. I would start by >> looking at that to see what it's doing. It may not be passing the >> source file along to the compiler. >> >> Mike >> >> David Trethewey wrote: >>> I am trying to compile matplotlib on Solaris, I have run into >>> problems as below compiling the ft2fonts extension. Anyone know why? >>> >>> David >>> >>> >>> python setup.py build >>> ============================================================================ >>> >>> BUILDING MATPLOTLIB >>> matplotlib: 0.99.1.1 >>> python: 2.4.4 (#1, Jan 10 2007, 01:25:01) [C] >>> platform: sunos5 >>> >>> REQUIRED DEPENDENCIES >>> numpy: 1.1.0 >>> freetype2: 9.8.3 >>> >>> OPTIONAL BACKEND DEPENDENCIES >>> libpng: 1.2.35 >>> Tkinter: Tkinter: 39220, Tk: 8.3, Tcl: 8.3 >>> * Guessing the library and include >>> directories for >>> * Tcl and Tk because the tclConfig.sh and >>> * tkConfig.sh could not be found and/or parsed. >>> wxPython: no >>> * wxPython not found >>> Gtk+: no >>> * Building for Gtk+ requires pygtk; you must >>> be able >>> * to "import gtk" in your build/install >>> environment >>> Mac OS X native: no >>> Qt: no >>> Qt4: no >>> Cairo: no >>> >>> OPTIONAL DATE/TIMEZONE DEPENDENCIES >>> datetime: present, version unknown >>> dateutil: matplotlib will provide >>> pytz: matplotlib will provide >>> adding pytz >>> >>> OPTIONAL USETEX DEPENDENCIES >>> dvipng: no >>> ghostscript: 8.15.4 >>> latex: 3.14159 >>> >>> [Edit setup.cfg to suppress the above messages] >>> ============================================================================ >>> >>> pymods ['pylab'] >>> packages ['matplotlib', 'matplotlib.backends', >>> 'matplotlib.projections', 'mpl_toolkits', 'mpl_toolkits.mplot3d', >>> 'mpl_toolkits.axes_grid', 'matplotlib.sphinxext', >>> 'matplotlib.numerix', 'matplotlib.numerix.mlab', >>> 'matplotlib.numerix.ma', 'matplotlib.numerix.linear_algebra', >>> 'matplotlib.numerix.random_array', 'matplotlib.numerix.fft', >>> 'matplotlib.delaunay', 'pytz', 'dateutil', 'dateutil/zoneinfo'] >>> running build >>> running build_py >>> copying lib/matplotlib/mpl-data/matplotlibrc -> >>> build/lib.solaris-2.10-sun4u-2.4/matplotlib/mpl-data >>> copying lib/matplotlib/mpl-data/matplotlib.conf -> >>> build/lib.solaris-2.10-sun4u-2.4/matplotlib/mpl-data >>> running build_ext >>> building 'matplotlib.ft2font' extension >>> /usr/lib/python2.4/pycc -DNDEBUG >>> -DPY_ARRAYAUNIQUE_SYMBOL=MPL_ARRAY_API >>> -I/home/dlrt2/usr/lib/python/numpy/core/include -I/usr/sfw/include >>> -I/usr/sfw/include/freetype2 -I/usr/local/include -I. >>> -I/usr/include/python2.4 -c src/ft2font.cpp -o >>> build/temp.solaris-2.10-sun4u-2.4/src/ft2font.o >>> cc: No input file specified, no output generated >>> error: command '/usr/lib/python2.4/pycc' failed with exit status 1 >>> >>> >> > > -- Michael Droettboom Science Software Branch Operations and Engineering Division Space Telescope Science Institute Operated by AURA for NASA
Looking at it, it describes itself as a script for running the C/C++ compiler when building python modules. David Michael Droettboom wrote: > What is /usr/lib/python2.4/pycc? Some sort of wrapper around the > compiler? I don't have it on my Sun machine. I would start by > looking at that to see what it's doing. It may not be passing the > source file along to the compiler. > > Mike > > David Trethewey wrote: >> I am trying to compile matplotlib on Solaris, I have run into >> problems as below compiling the ft2fonts extension. Anyone know why? >> >> David >> >> >> python setup.py build >> ============================================================================ >> >> BUILDING MATPLOTLIB >> matplotlib: 0.99.1.1 >> python: 2.4.4 (#1, Jan 10 2007, 01:25:01) [C] >> platform: sunos5 >> >> REQUIRED DEPENDENCIES >> numpy: 1.1.0 >> freetype2: 9.8.3 >> >> OPTIONAL BACKEND DEPENDENCIES >> libpng: 1.2.35 >> Tkinter: Tkinter: 39220, Tk: 8.3, Tcl: 8.3 >> * Guessing the library and include >> directories for >> * Tcl and Tk because the tclConfig.sh and >> * tkConfig.sh could not be found and/or parsed. >> wxPython: no >> * wxPython not found >> Gtk+: no >> * Building for Gtk+ requires pygtk; you must >> be able >> * to "import gtk" in your build/install >> environment >> Mac OS X native: no >> Qt: no >> Qt4: no >> Cairo: no >> >> OPTIONAL DATE/TIMEZONE DEPENDENCIES >> datetime: present, version unknown >> dateutil: matplotlib will provide >> pytz: matplotlib will provide >> adding pytz >> >> OPTIONAL USETEX DEPENDENCIES >> dvipng: no >> ghostscript: 8.15.4 >> latex: 3.14159 >> >> [Edit setup.cfg to suppress the above messages] >> ============================================================================ >> >> pymods ['pylab'] >> packages ['matplotlib', 'matplotlib.backends', >> 'matplotlib.projections', 'mpl_toolkits', 'mpl_toolkits.mplot3d', >> 'mpl_toolkits.axes_grid', 'matplotlib.sphinxext', >> 'matplotlib.numerix', 'matplotlib.numerix.mlab', >> 'matplotlib.numerix.ma', 'matplotlib.numerix.linear_algebra', >> 'matplotlib.numerix.random_array', 'matplotlib.numerix.fft', >> 'matplotlib.delaunay', 'pytz', 'dateutil', 'dateutil/zoneinfo'] >> running build >> running build_py >> copying lib/matplotlib/mpl-data/matplotlibrc -> >> build/lib.solaris-2.10-sun4u-2.4/matplotlib/mpl-data >> copying lib/matplotlib/mpl-data/matplotlib.conf -> >> build/lib.solaris-2.10-sun4u-2.4/matplotlib/mpl-data >> running build_ext >> building 'matplotlib.ft2font' extension >> /usr/lib/python2.4/pycc -DNDEBUG >> -DPY_ARRAYAUNIQUE_SYMBOL=MPL_ARRAY_API >> -I/home/dlrt2/usr/lib/python/numpy/core/include -I/usr/sfw/include >> -I/usr/sfw/include/freetype2 -I/usr/local/include -I. >> -I/usr/include/python2.4 -c src/ft2font.cpp -o >> build/temp.solaris-2.10-sun4u-2.4/src/ft2font.o >> cc: No input file specified, no output generated >> error: command '/usr/lib/python2.4/pycc' failed with exit status 1 >> >> > -- David Trethewey Institute of Astronomy http://www.ast.cam.ac.uk/~dlrt2 Phone: 01223 339277 (office at IoA) Mobile: 07817 775159
What is /usr/lib/python2.4/pycc? Some sort of wrapper around the compiler? I don't have it on my Sun machine. I would start by looking at that to see what it's doing. It may not be passing the source file along to the compiler. Mike David Trethewey wrote: > I am trying to compile matplotlib on Solaris, I have run into problems > as below compiling the ft2fonts extension. Anyone know why? > > David > > > python setup.py build > ============================================================================ > BUILDING MATPLOTLIB > matplotlib: 0.99.1.1 > python: 2.4.4 (#1, Jan 10 2007, 01:25:01) [C] > platform: sunos5 > > REQUIRED DEPENDENCIES > numpy: 1.1.0 > freetype2: 9.8.3 > > OPTIONAL BACKEND DEPENDENCIES > libpng: 1.2.35 > Tkinter: Tkinter: 39220, Tk: 8.3, Tcl: 8.3 > * Guessing the library and include directories for > * Tcl and Tk because the tclConfig.sh and > * tkConfig.sh could not be found and/or parsed. > wxPython: no > * wxPython not found > Gtk+: no > * Building for Gtk+ requires pygtk; you must be able > * to "import gtk" in your build/install environment > Mac OS X native: no > Qt: no > Qt4: no > Cairo: no > > OPTIONAL DATE/TIMEZONE DEPENDENCIES > datetime: present, version unknown > dateutil: matplotlib will provide > pytz: matplotlib will provide > adding pytz > > OPTIONAL USETEX DEPENDENCIES > dvipng: no > ghostscript: 8.15.4 > latex: 3.14159 > > [Edit setup.cfg to suppress the above messages] > ============================================================================ > pymods ['pylab'] > packages ['matplotlib', 'matplotlib.backends', 'matplotlib.projections', > 'mpl_toolkits', 'mpl_toolkits.mplot3d', 'mpl_toolkits.axes_grid', > 'matplotlib.sphinxext', 'matplotlib.numerix', 'matplotlib.numerix.mlab', > 'matplotlib.numerix.ma', 'matplotlib.numerix.linear_algebra', > 'matplotlib.numerix.random_array', 'matplotlib.numerix.fft', > 'matplotlib.delaunay', 'pytz', 'dateutil', 'dateutil/zoneinfo'] > running build > running build_py > copying lib/matplotlib/mpl-data/matplotlibrc -> > build/lib.solaris-2.10-sun4u-2.4/matplotlib/mpl-data > copying lib/matplotlib/mpl-data/matplotlib.conf -> > build/lib.solaris-2.10-sun4u-2.4/matplotlib/mpl-data > running build_ext > building 'matplotlib.ft2font' extension > /usr/lib/python2.4/pycc -DNDEBUG -DPY_ARRAYAUNIQUE_SYMBOL=MPL_ARRAY_API > -I/home/dlrt2/usr/lib/python/numpy/core/include -I/usr/sfw/include > -I/usr/sfw/include/freetype2 -I/usr/local/include -I. > -I/usr/include/python2.4 -c src/ft2font.cpp -o > build/temp.solaris-2.10-sun4u-2.4/src/ft2font.o > cc: No input file specified, no output generated > error: command '/usr/lib/python2.4/pycc' failed with exit status 1 > > -- Michael Droettboom Science Software Branch Operations and Engineering Division Space Telescope Science Institute Operated by AURA for NASA
I am trying to compile matplotlib on Solaris, I have run into problems as below compiling the ft2fonts extension. Anyone know why? David python setup.py build ============================================================================ BUILDING MATPLOTLIB matplotlib: 0.99.1.1 python: 2.4.4 (#1, Jan 10 2007, 01:25:01) [C] platform: sunos5 REQUIRED DEPENDENCIES numpy: 1.1.0 freetype2: 9.8.3 OPTIONAL BACKEND DEPENDENCIES libpng: 1.2.35 Tkinter: Tkinter: 39220, Tk: 8.3, Tcl: 8.3 * Guessing the library and include directories for * Tcl and Tk because the tclConfig.sh and * tkConfig.sh could not be found and/or parsed. wxPython: no * wxPython not found Gtk+: no * Building for Gtk+ requires pygtk; you must be able * to "import gtk" in your build/install environment Mac OS X native: no Qt: no Qt4: no Cairo: no OPTIONAL DATE/TIMEZONE DEPENDENCIES datetime: present, version unknown dateutil: matplotlib will provide pytz: matplotlib will provide adding pytz OPTIONAL USETEX DEPENDENCIES dvipng: no ghostscript: 8.15.4 latex: 3.14159 [Edit setup.cfg to suppress the above messages] ============================================================================ pymods ['pylab'] packages ['matplotlib', 'matplotlib.backends', 'matplotlib.projections', 'mpl_toolkits', 'mpl_toolkits.mplot3d', 'mpl_toolkits.axes_grid', 'matplotlib.sphinxext', 'matplotlib.numerix', 'matplotlib.numerix.mlab', 'matplotlib.numerix.ma', 'matplotlib.numerix.linear_algebra', 'matplotlib.numerix.random_array', 'matplotlib.numerix.fft', 'matplotlib.delaunay', 'pytz', 'dateutil', 'dateutil/zoneinfo'] running build running build_py copying lib/matplotlib/mpl-data/matplotlibrc -> build/lib.solaris-2.10-sun4u-2.4/matplotlib/mpl-data copying lib/matplotlib/mpl-data/matplotlib.conf -> build/lib.solaris-2.10-sun4u-2.4/matplotlib/mpl-data running build_ext building 'matplotlib.ft2font' extension /usr/lib/python2.4/pycc -DNDEBUG -DPY_ARRAYAUNIQUE_SYMBOL=MPL_ARRAY_API -I/home/dlrt2/usr/lib/python/numpy/core/include -I/usr/sfw/include -I/usr/sfw/include/freetype2 -I/usr/local/include -I. -I/usr/include/python2.4 -c src/ft2font.cpp -o build/temp.solaris-2.10-sun4u-2.4/src/ft2font.o cc: No input file specified, no output generated error: command '/usr/lib/python2.4/pycc' failed with exit status 1 -- David Trethewey Institute of Astronomy http://www.ast.cam.ac.uk/~dlrt2 Phone: 01223 339277 (office at IoA) Mobile: 07817 775159
On Wed, Nov 25, 2009 at 8:01 AM, federico roncarolo <Fed...@ce...> wrote: > Hi, > > I'm new with matplotlib and > I'm trying to embed matplotlib objects into pygtk. > > I tried different backend imports (GTKAgg, GTK, GTKCairo) and always > get the same error (attached below) referring to the missing > _backend_gdk package. > > I work with MAC os x 10.6, python 2.6, pygtk2, matplotlib 0.99.1.1, > all installed via macports , even though I tried to install matplotlib > from source via the setup.py script and I get exactely the same problem. > > Could you help? > matplotlib is probably not finding pygtk at build time -- you need have pkg-config installed, and locate your pygtk-2.0.pc file and then add that path to your PKG_CONFIG_PATH. You can check the output of the build script at the beginning in the section OPTIONAL BACKEND DEPENDENCIES libpng: 1.2.27 Tkinter: Tkinter: 50704, Tk: 8.4, Tcl: 8.4 wxPython: 2.8.8.0 * WxAgg extension not required for wxPython >= 2.8 Gtk+: gtk+: 2.14.4, glib: 2.18.2, pygtk: 2.13.0, pygobject: 2.15.3 Mac OS X native: no Qt: Qt: 3.3.8, PyQt: 3.17.4 Qt4: Qt: 4.4.3, PyQt4: 4.4.4 Cairo: 1.4.12 You need to have an entry for Gtk or else the backend will not be built. JDH
On Mon, Nov 23, 2009 at 3:09 PM, Olof Werneman <olo...@gm...> wrote: > Hello! > > I am forced to use py version 2.3.3 (included in other software). I would > like to use matplotlib but can not find the version for py 2.3 on > sourceforge. I think it should be version 0.90.1? > Do you know how I can get hold of a copy of that version? If you have access to svn, you can do: svn co https://matplotlib.svn.sourceforge.net/svnroot/matplotlib/trunk/matplotlib mpl90.1 -r3352 If not, I can upload a tarball somewhere. JDH
On Tue, Nov 24, 2009 at 5:38 PM, thumperj <mrt...@gm...> wrote: > > I'm certain this is in an example somewhere but I can't seem to find it. If > someone can just point me to the example I'll take it from there. Thank > you! > > I have a line chart. I just want to add text or callout box that shows the > last value in the line. Use "text" or "annotate", eg http://matplotlib.sourceforge.net/examples/pylab_examples/annotation_demo.html http://matplotlib.sourceforge.net/examples/pylab_examples/annotation_demo2.html Let us know if you need any more help JDH
There may be a limitation on window sizes in the various GUI backends. Have you tried using the non-GUI backend (agg), and now "show"ing it, but just using "savefig"? Mike do...@us... wrote: > I'm trying to make a 10 inch wide by 30 inch high, 72 dpi figure and > display it interactively. Matplotlib seems to squash the height for > anything over a certain size, depending on the backend: > > --------------------------------------------------- > #!/usr/bin/env python > > import sys, os, matplotlib > matplotlib.use('TkAgg') > import matplotlib.pyplot as plt > > print os.uname() > print sys.version > print matplotlib.__version__ > print > > f = plt.figure(figsize=(10,30), dpi=72) > print "figheight before show(): %f" % f.get_figheight() > plt.show() > print "figheight after show(): %f" % f.get_figheight() > -------------------------------------------------- > > Prints this: > > ========================== > ('Linux', 'prime', '2.6.31-14-generic', '#48-Ubuntu SMP Fri Oct 16 > 14:05:01 UTC 2009', 'x86_64') > 2.6.4 (r264:75706, Nov 2 2009, 14:44:17) > [GCC 4.4.1] > 0.99.0 > > figheight before show(): 30.000000 > figheight after show(): 22.027778 > ========================== > > Tk squashes heights over 12 inches (the heights do get larger as you > request larger figures, but not as large as what you request); GTK > goes up to 11; and Qt4Agg only goes up to 7.3. WX seems to be the > only backend that will give me a 30 inch figure, but even then I have > to manually resize the window to make it fit. This happens in scripts > with pyplot, in ipython with or without -pylab, and via the matplotlib > API. > > Is there some limitation on figure sizes? > > ------------------------------------------------------------------------------ > Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day > trial. Simplify your report design, integration and deployment - and focus on > what you do best, core application coding. Discover what's new with > Crystal Reports now. http://p.sf.net/sfu/bobj-july > _______________________________________________ > Matplotlib-users mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users > -- Michael Droettboom Science Software Branch Operations and Engineering Division Space Telescope Science Institute Operated by AURA for NASA
Hi, I'm new with matplotlib and I'm trying to embed matplotlib objects into pygtk. I tried different backend imports (GTKAgg, GTK, GTKCairo) and always get the same error (attached below) referring to the missing _backend_gdk package. I work with MAC os x 10.6, python 2.6, pygtk2, matplotlib 0.99.1.1, all installed via macports , even though I tried to install matplotlib from source via the setup.py script and I get exactely the same problem. Could you help? Many thans in advance, Federico --------------------------------------------------------------------------- ImportError Traceback (most recent call last) /Volumes/froncaro/LINAC4/SOURCE/python/maplotlib_test.py in <module>() 9 #from matplotlib.backends.backend_gtk import FigureCanvasGTK, NavigationToolbar 10 ---> 11 from matplotlib.backends.backend_gtkcairo import FigureCanvasGTKCairo as FigureCanvas 12 13 /opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/ python2.6/site-packages/matplotlib/backends/backend_gtkcairo.py in <module>() 8 9 from matplotlib.backends import backend_cairo ---> 10 from matplotlib.backends.backend_gtk import * 11 12 backend_version = 'PyGTK(%d.%d.%d) ' % gtk.pygtk_version + \ /opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/ python2.6/site-packages/matplotlib/backends/backend_gtk.py in <module>() 23 from matplotlib.backend_bases import RendererBase, GraphicsContextBase, \ 24 FigureManagerBase, FigureCanvasBase, NavigationToolbar2, cursors ---> 25 from matplotlib.backends.backend_gdk import RendererGDK, FigureCanvasGDK 26 from matplotlib.cbook import is_string_like, is_writable_file_like 27 from matplotlib.colors import colorConverter /opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/ python2.6/site-packages/matplotlib/backends/backend_gdk.py in <module>() 27 from matplotlib.mathtext import MathTextParser 28 from matplotlib.transforms import Affine2D ---> 29 from matplotlib.backends._backend_gdk import pixbuf_get_pixels_array 30 31 ImportError: No module named _backend_gdk
I'm trying to make a 10 inch wide by 30 inch high, 72 dpi figure and display it interactively. Matplotlib seems to squash the height for anything over a certain size, depending on the backend: --------------------------------------------------- #!/usr/bin/env python import sys, os, matplotlib matplotlib.use('TkAgg') import matplotlib.pyplot as plt print os.uname() print sys.version print matplotlib.__version__ print f = plt.figure(figsize=(10,30), dpi=72) print "figheight before show(): %f" % f.get_figheight() plt.show() print "figheight after show(): %f" % f.get_figheight() -------------------------------------------------- Prints this: ========================== ('Linux', 'prime', '2.6.31-14-generic', '#48-Ubuntu SMP Fri Oct 16 14:05:01 UTC 2009', 'x86_64') 2.6.4 (r264:75706, Nov 2 2009, 14:44:17) [GCC 4.4.1] 0.99.0 figheight before show(): 30.000000 figheight after show(): 22.027778 ========================== Tk squashes heights over 12 inches (the heights do get larger as you request larger figures, but not as large as what you request); GTK goes up to 11; and Qt4Agg only goes up to 7.3. WX seems to be the only backend that will give me a 30 inch figure, but even then I have to manually resize the window to make it fit. This happens in scripts with pyplot, in ipython with or without -pylab, and via the matplotlib API. Is there some limitation on figure sizes?
Hi, 2009年11月18日 XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX: > In gnuplot, I can do the following: > > set format x "%.0s %cHz" > > ...and this will set the x-axis labels (on a semilogx style plot) to > be "10 Hz", "100 Hz", "1 kHz", "10 kHz", etc. I ended up implementing this myself, it wasn't too hard. I've attached the code if anyone else is interested. I don't know matplotlib that well, so I don't know if there's much duplication of code in there. I thought I'd CC the dev list in case others think it might be useful. If not, sorry for the noise. Cheers, Jason