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
(47) |
2
(13) |
3
(12) |
4
(16) |
5
(3) |
6
(6) |
7
(20) |
8
(45) |
9
(24) |
10
(30) |
11
(14) |
12
(4) |
13
(1) |
14
(6) |
15
(6) |
16
(10) |
17
(15) |
18
(13) |
19
(4) |
20
|
21
(14) |
22
(13) |
23
(9) |
24
(19) |
25
(24) |
26
|
27
(4) |
28
(20) |
29
(17) |
30
(7) |
|
|
|
From: Benjamin R. <ben...@ou...> - 2010-06-25 19:59:59
|
Ranjit, There are a couple of possibilities. The first is that the TrueType fonts packages weren't detected during the build, so matplotlib compiled without it, leading to your issue. I have also seen an issue where your ~/.matplotlib/ needs to be cleaned out of font-related files. Another possibility has to do with building both numpy and matplotlib. I have found that if I update the numpy source code and rebuild it, then I have to rebuild matplotlib. Now that you managed to get a complete build. I would go back and completely eliminate the build directories of matplotlib (and numpy, if you have it), and rebuild. Build numpy first if you have that from source, and then build matplotlib. So, first double-check your TrueType Font packages and see if you comply with the dependencies listed on the developer wiki. If so, then check your .matplotlib directory for any fontCache files and remove it. Lastly, do a complete clean and rebuild of matplotlib (the cleaning part is very important). I hope that helps, Ben Root On Fri, Jun 25, 2010 at 11:56 AM, Ranjit Chacko <rjc...@gm...> wrote: > I finally somehow managed to get matplotlib to compile but now when I try > to import matplotlib.pyplot I get the following error: > > Traceback (most recent call last): > File "<stdin>", line 1, in <module> > AttributeError: 'module' object has no attribute 'pyplot' > >>> from matplotlib import pyplot as plot > Traceback (most recent call last): > File "<stdin>", line 1, in <module> > File > "/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/matplotlib/pyplot.py", > line 6, in <module> > from matplotlib.figure import Figure, figaspect > File > "/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/matplotlib/figure.py", > line 18, in <module> > from axes import Axes, SubplotBase, subplot_class_factory > File > "/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/matplotlib/axes.py", > line 12, in <module> > import matplotlib.axis as maxis > File > "/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/matplotlib/axis.py", > line 10, in <module> > import matplotlib.font_manager as font_manager > File > "/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/matplotlib/font_manager.py", > line 52, in <module> > from matplotlib import ft2font > ImportError: > dlopen(/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/matplotlib/ft2font.so, > 2): Symbol not found: _FT_Attach_File > Referenced from: > /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/matplotlib/ft2font.so > Expected in: dynamic lookup > > What is going wrong here? > > Thanks, > > -Ranjit > > > > ------------------------------------------------------------------------------ > ThinkGeek and WIRED's GeekDad team up for the Ultimate > GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the > lucky parental unit. See the prize list and enter to win: > http://p.sf.net/sfu/thinkgeek-promo > _______________________________________________ > Matplotlib-users mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users > > |
From: <PH...@Ge...> - 2010-06-25 18:51:40
|
Success! (well, the import worked) Christoph, thanks so much for the link, it is awesome! It can't be said enough that this is an awesome project and I'm so glad and thankful that it exists. > -----Original Message----- > From: Christoph Gohlke [mailto:cg...@uc...] > Sent: Friday, June 25, 2010 11:37 AM > To: mat...@li... > Subject: Re: [Matplotlib-users] basemap broken with matplotlib 0.99.3? > > IIRC basemap contains Cython code, which would need to be "recythonized" > with the latest Cython version in order to work with numpy 1.4.1. If you > don't mind trying developer releases, use basemap 0.99.5 from > <http://www.lfd.uci.edu/~gohlke/pythonlibs/#basemap>, which should work > with numpy 1.4.1. > > Christoph > > > On 6/25/2010 11:21 AM, PH...@Ge... wrote: > > Bill, > > > > Unfortunately, I don't have a solution for you. I just wanted to chime > in and say that I'm getting the same error. I'm on XP, py2.6, mpl0.99.3, > np1.4.1, sp0.8.0b1. Basemap came from the latest Windows binary on > Sourceforge. > > -paul > > > >> -----Original Message----- > >> From: Bill Eaton [mailto:ee...@ae...] > >> Sent: Wednesday, June 23, 2010 8:24 AM > >> To: mat...@li... > >> Subject: [Matplotlib-users] basemap broken with matplotlib 0.99.3? > >> > >> I stumbled across a basemap demo a couple of days ago and was > immediately > >> enchanted. > >> > >> I can't get it to install nicely on a Windoze box with matplotlib > 0.99.3. > >> When I try the famous > >> from mpl_toolkits.basemap import Basemap > >> directive, I get > >> In [1]: from mpl_toolkits.basemap import Basemap > >> ---------------------------------------------------------------------- > --- > >> -- > >> ValueError Traceback (most recent call > >> last) > >> > >> C:\Documents and Settings\Bill.DC1\<ipython console> in<module>() > >> > >> C:\Python26\lib\site-packages\mpl_toolkits\basemap\__init__.py in > >> <module>() > >> 36 from matplotlib.lines import Line2D > >> 37 from matplotlib.transforms import Bbox > >> ---> 38 import pyproj, sys, os, math, dbflib > >> 39 from proj import Proj > >> 40 import numpy as np > >> > >> C:\Python26\lib\site-packages\mpl_toolkits\basemap\pyproj.py in > >> <module>() > >> 46 CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. """ > >> 47 > >> ---> 48 from _proj import Proj as _Proj > >> 49 from _geod import Geod as _Geod > >> 50 from _proj import _transform > >> > >> C:\Documents and Settings\Bill.DC1\c_numpy.pxd in _proj > >> (src/_proj.c:3234)() > >> > >> ValueError: numpy.dtype does not appear to be the correct type object > >> > >> I tried manually installing many of the prerequisites (which should be > >> bundled) and also reinstalling MPL. But still no joy. > >> > >> On my Linux box running 0.99.0, I was able to install basemap and run > one > >> of > >> the example codes. Works quite nicely. > >> > >> > >> > >> > >> ---------------------------------------------------------------------- > --- > >> ----- > >> ThinkGeek and WIRED's GeekDad team up for the Ultimate > >> GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the > >> lucky parental unit. See the prize list and enter to win: > >> http://p.sf.net/sfu/thinkgeek-promo > >> _______________________________________________ > >> Matplotlib-users mailing list > >> Mat...@li... > >> https://lists.sourceforge.net/lists/listinfo/matplotlib-users > > > > ----------------------------------------------------------------------- > ------- > > ThinkGeek and WIRED's GeekDad team up for the Ultimate > > GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the > > lucky parental unit. See the prize list and enter to win: > > http://p.sf.net/sfu/thinkgeek-promo > > _______________________________________________ > > Matplotlib-users mailing list > > Mat...@li... > > https://lists.sourceforge.net/lists/listinfo/matplotlib-users > > > > > > ------------------------------------------------------------------------- > ----- > ThinkGeek and WIRED's GeekDad team up for the Ultimate > GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the > lucky parental unit. See the prize list and enter to win: > http://p.sf.net/sfu/thinkgeek-promo > _______________________________________________ > Matplotlib-users mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users |
From: Christoph G. <cg...@uc...> - 2010-06-25 18:37:33
|
IIRC basemap contains Cython code, which would need to be "recythonized" with the latest Cython version in order to work with numpy 1.4.1. If you don't mind trying developer releases, use basemap 0.99.5 from <http://www.lfd.uci.edu/~gohlke/pythonlibs/#basemap>, which should work with numpy 1.4.1. Christoph On 6/25/2010 11:21 AM, PH...@Ge... wrote: > Bill, > > Unfortunately, I don't have a solution for you. I just wanted to chime in and say that I'm getting the same error. I'm on XP, py2.6, mpl0.99.3, np1.4.1, sp0.8.0b1. Basemap came from the latest Windows binary on Sourceforge. > -paul > >> -----Original Message----- >> From: Bill Eaton [mailto:ee...@ae...] >> Sent: Wednesday, June 23, 2010 8:24 AM >> To: mat...@li... >> Subject: [Matplotlib-users] basemap broken with matplotlib 0.99.3? >> >> I stumbled across a basemap demo a couple of days ago and was immediately >> enchanted. >> >> I can't get it to install nicely on a Windoze box with matplotlib 0.99.3. >> When I try the famous >> from mpl_toolkits.basemap import Basemap >> directive, I get >> In [1]: from mpl_toolkits.basemap import Basemap >> ------------------------------------------------------------------------- >> -- >> ValueError Traceback (most recent call >> last) >> >> C:\Documents and Settings\Bill.DC1\<ipython console> in<module>() >> >> C:\Python26\lib\site-packages\mpl_toolkits\basemap\__init__.py in >> <module>() >> 36 from matplotlib.lines import Line2D >> 37 from matplotlib.transforms import Bbox >> ---> 38 import pyproj, sys, os, math, dbflib >> 39 from proj import Proj >> 40 import numpy as np >> >> C:\Python26\lib\site-packages\mpl_toolkits\basemap\pyproj.py in >> <module>() >> 46 CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. """ >> 47 >> ---> 48 from _proj import Proj as _Proj >> 49 from _geod import Geod as _Geod >> 50 from _proj import _transform >> >> C:\Documents and Settings\Bill.DC1\c_numpy.pxd in _proj >> (src/_proj.c:3234)() >> >> ValueError: numpy.dtype does not appear to be the correct type object >> >> I tried manually installing many of the prerequisites (which should be >> bundled) and also reinstalling MPL. But still no joy. >> >> On my Linux box running 0.99.0, I was able to install basemap and run one >> of >> the example codes. Works quite nicely. >> >> >> >> >> ------------------------------------------------------------------------- >> ----- >> ThinkGeek and WIRED's GeekDad team up for the Ultimate >> GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the >> lucky parental unit. See the prize list and enter to win: >> http://p.sf.net/sfu/thinkgeek-promo >> _______________________________________________ >> Matplotlib-users mailing list >> Mat...@li... >> https://lists.sourceforge.net/lists/listinfo/matplotlib-users > > ------------------------------------------------------------------------------ > ThinkGeek and WIRED's GeekDad team up for the Ultimate > GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the > lucky parental unit. See the prize list and enter to win: > http://p.sf.net/sfu/thinkgeek-promo > _______________________________________________ > Matplotlib-users mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users > > |
From: Jeff W. <js...@fa...> - 2010-06-25 18:33:44
|
On 6/25/10 12:21 PM, PH...@Ge... wrote: > Bill, > > Unfortunately, I don't have a solution for you. I just wanted to chime in and say that I'm getting the same error. I'm on XP, py2.6, mpl0.99.3, np1.4.1, sp0.8.0b1. Basemap came from the latest Windows binary on Sourceforge. > -paul > Bill,Paul: I'm pretty sure this is due to a binary incompatibilty between cython extensions compiled with numpy < 1.4 and numpy >= 1.4. The installer was probably created with numpy 1.2.1, and you have numpy 1.4.1. Unfortunately, I don't have the ability to make windows installers, so you'll either have to compile basemap yourself on windows, or downgrade your numpy. -Jeff > >> -----Original Message----- >> From: Bill Eaton [mailto:ee...@ae...] >> Sent: Wednesday, June 23, 2010 8:24 AM >> To: mat...@li... >> Subject: [Matplotlib-users] basemap broken with matplotlib 0.99.3? >> >> I stumbled across a basemap demo a couple of days ago and was immediately >> enchanted. >> >> I can't get it to install nicely on a Windoze box with matplotlib 0.99.3. >> When I try the famous >> from mpl_toolkits.basemap import Basemap >> directive, I get >> In [1]: from mpl_toolkits.basemap import Basemap >> ------------------------------------------------------------------------- >> -- >> ValueError Traceback (most recent call >> last) >> >> C:\Documents and Settings\Bill.DC1\<ipython console> in<module>() >> >> C:\Python26\lib\site-packages\mpl_toolkits\basemap\__init__.py in >> <module>() >> 36 from matplotlib.lines import Line2D >> 37 from matplotlib.transforms import Bbox >> ---> 38 import pyproj, sys, os, math, dbflib >> 39 from proj import Proj >> 40 import numpy as np >> >> C:\Python26\lib\site-packages\mpl_toolkits\basemap\pyproj.py in >> <module>() >> 46 CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. """ >> 47 >> ---> 48 from _proj import Proj as _Proj >> 49 from _geod import Geod as _Geod >> 50 from _proj import _transform >> >> C:\Documents and Settings\Bill.DC1\c_numpy.pxd in _proj >> (src/_proj.c:3234)() >> >> ValueError: numpy.dtype does not appear to be the correct type object >> >> I tried manually installing many of the prerequisites (which should be >> bundled) and also reinstalling MPL. But still no joy. >> >> On my Linux box running 0.99.0, I was able to install basemap and run one >> of >> the example codes. Works quite nicely. >> >> >> >> >> ------------------------------------------------------------------------- >> ----- >> ThinkGeek and WIRED's GeekDad team up for the Ultimate >> GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the >> lucky parental unit. See the prize list and enter to win: >> http://p.sf.net/sfu/thinkgeek-promo >> _______________________________________________ >> Matplotlib-users mailing list >> Mat...@li... >> https://lists.sourceforge.net/lists/listinfo/matplotlib-users >> > ------------------------------------------------------------------------------ > ThinkGeek and WIRED's GeekDad team up for the Ultimate > GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the > lucky parental unit. See the prize list and enter to win: > http://p.sf.net/sfu/thinkgeek-promo > _______________________________________________ > Matplotlib-users mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users > -- Jeffrey S. Whitaker Phone : (303)497-6313 Meteorologist FAX : (303)497-6449 NOAA/OAR/PSD R/PSD1 Email : Jef...@no... 325 Broadway Office : Skaggs Research Cntr 1D-113 Boulder, CO, USA 80303-3328 Web : http://tinyurl.com/5telg |
From: <PH...@Ge...> - 2010-06-25 18:21:37
|
Bill, Unfortunately, I don't have a solution for you. I just wanted to chime in and say that I'm getting the same error. I'm on XP, py2.6, mpl0.99.3, np1.4.1, sp0.8.0b1. Basemap came from the latest Windows binary on Sourceforge. -paul > -----Original Message----- > From: Bill Eaton [mailto:ee...@ae...] > Sent: Wednesday, June 23, 2010 8:24 AM > To: mat...@li... > Subject: [Matplotlib-users] basemap broken with matplotlib 0.99.3? > > I stumbled across a basemap demo a couple of days ago and was immediately > enchanted. > > I can't get it to install nicely on a Windoze box with matplotlib 0.99.3. > When I try the famous > from mpl_toolkits.basemap import Basemap > directive, I get > In [1]: from mpl_toolkits.basemap import Basemap > ------------------------------------------------------------------------- > -- > ValueError Traceback (most recent call > last) > > C:\Documents and Settings\Bill.DC1\<ipython console> in <module>() > > C:\Python26\lib\site-packages\mpl_toolkits\basemap\__init__.py in > <module>() > 36 from matplotlib.lines import Line2D > 37 from matplotlib.transforms import Bbox > ---> 38 import pyproj, sys, os, math, dbflib > 39 from proj import Proj > 40 import numpy as np > > C:\Python26\lib\site-packages\mpl_toolkits\basemap\pyproj.py in > <module>() > 46 CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. """ > 47 > ---> 48 from _proj import Proj as _Proj > 49 from _geod import Geod as _Geod > 50 from _proj import _transform > > C:\Documents and Settings\Bill.DC1\c_numpy.pxd in _proj > (src/_proj.c:3234)() > > ValueError: numpy.dtype does not appear to be the correct type object > > I tried manually installing many of the prerequisites (which should be > bundled) and also reinstalling MPL. But still no joy. > > On my Linux box running 0.99.0, I was able to install basemap and run one > of > the example codes. Works quite nicely. > > > > > ------------------------------------------------------------------------- > ----- > ThinkGeek and WIRED's GeekDad team up for the Ultimate > GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the > lucky parental unit. See the prize list and enter to win: > http://p.sf.net/sfu/thinkgeek-promo > _______________________________________________ > Matplotlib-users mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users |
From: Tim G. <tg...@pr...> - 2010-06-25 17:10:03
|
On Jun 25, 2010 at 10:01 AM -0700, Christopher Barker wrote: > Anyway, it's been common practice to build binaries for the python.org > python -- it's the way to reach the widest audience. MPL used to do this. I > suspect the latest binary is a mistake, but if not, it should be Clearly > labeled as for the ApplePython2.6-osx-10.6, and ideally, a python.org > compatible binary provided as well. I'm sorry I can't find the time to do > that myself right now. I'll be ok for the time being. I've been using matplotlib, scipy, and numpy (and variants) for the past 5 years or so on OS X. Every time I go to upgrade, the recommended procedure changes. The previous version still runs however, so I'll survive. It would be useful though to make a note for whoever packages official releases of matplotlib for OS X to make sure they are targeting the python.org install of python. numpy and scipy also do this. It makes it a lot easier to push python as a Matlab/IDL replacement if potential users can just download four dmgs (python, numpy, scipy, and matplotlib) and it all just works out of the box. Thanks for the help! Tim |
From: Christopher B. <Chr...@no...> - 2010-06-25 17:01:46
|
Tim Gray wrote: > The 0.99.1.1 installer places > files in the appropriate location for python.org 2.6.5. The 0.99.3 > installer places files in the appropriate location for the OS X bundled > version of python (2.6.1) that we have been warned not to use. Well, it's not the worst thing in the world to use Apple's python, but I still don't think that it's the best either: - The Apple python has never been updated - Anything built for it will only work on 10.6 - you can't use py2app and get a fully self-contained binary - I can't remember the others. Anyway, it's been common practice to build binaries for the python.org python -- it's the way to reach the widest audience. MPL used to do this. I suspect the latest binary is a mistake, but if not, it should be Clearly labeled as for the ApplePython2.6-osx-10.6, and ideally, a python.org compatible binary provided as well. I'm sorry I can't find the time to do that myself right now. -Chris -- Christopher Barker, Ph.D. Oceanographer Emergency Response Division NOAA/NOS/OR&R (206) 526-6959 voice 7600 Sand Point Way NE (206) 526-6329 fax Seattle, WA 98115 (206) 526-6317 main reception Chr...@no... |
From: Ranjit C. <rjc...@gm...> - 2010-06-25 16:56:20
|
I finally somehow managed to get matplotlib to compile but now when I try to import matplotlib.pyplot I get the following error: Traceback (most recent call last): File "<stdin>", line 1, in <module> AttributeError: 'module' object has no attribute 'pyplot' >>> from matplotlib import pyplot as plot Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/matplotlib/pyplot.py", line 6, in <module> from matplotlib.figure import Figure, figaspect File "/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/matplotlib/figure.py", line 18, in <module> from axes import Axes, SubplotBase, subplot_class_factory File "/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/matplotlib/axes.py", line 12, in <module> import matplotlib.axis as maxis File "/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/matplotlib/axis.py", line 10, in <module> import matplotlib.font_manager as font_manager File "/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/matplotlib/font_manager.py", line 52, in <module> from matplotlib import ft2font ImportError: dlopen(/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/matplotlib/ft2font.so, 2): Symbol not found: _FT_Attach_File Referenced from: /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/matplotlib/ft2font.so Expected in: dynamic lookup What is going wrong here? Thanks, -Ranjit |
From: Ranjit C. <rjc...@gm...> - 2010-06-25 16:00:50
|
I tried compiling matplotlib following these directions and it failed on the build step. Any idea what's going wrong here: gcc-4.0 -arch ppc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -fno-strict-aliasing -fno-common -dynamic -DNDEBUG -g -O3 -DPY_ARRAY_UNIQUE_SYMBOL=MPL_ARRAY_API -I/System/Library/Frameworks/Tcl.framework/Headers -I/System/Library/Frameworks/Tcl.framework/Versions/Current/PrivateHeaders -I/System/Library/Frameworks/Tk.framework/Headers -I/System/Library/Frameworks/Tk.framework/Versions/Current/PrivateHeaders -I. -I/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/numpy/core/include -Isrc -Iagg24/include -I. -I/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/numpy/core/include -I/opt/local/include/freetype2 -I/opt/local/include -I. -I/Library/Frameworks/Python.framework/Versions/2.6/include/python2.6 -c CXX/cxxextensions.c -o build/temp.macosx-10.3-fat-2.6/CXX/cxxextensions.o -framework Tcl -framework Tk i686-apple-darwin10-gcc-4.0.1: -framework: linker input file unused because linking not done i686-apple-darwin10-gcc-4.0.1: Tcl: linker input file unused because linking not done i686-apple-darwin10-gcc-4.0.1: -framework: linker input file unused because linking not done i686-apple-darwin10-gcc-4.0.1: Tk: linker input file unused because linking not done powerpc-apple-darwin10-gcc-4.0.1: -framework: linker input file unused because linking not done powerpc-apple-darwin10-gcc-4.0.1: Tcl: linker input file unused because linking not done powerpc-apple-darwin10-gcc-4.0.1: -framework: linker input file unused because linking not done powerpc-apple-darwin10-gcc-4.0.1: Tk: linker input file unused because linking not done c++ -arch ppc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -g -bundle -undefined dynamic_lookup build/temp.macosx-10.3-fat-2.6/src/agg_py_transforms.o build/temp.macosx-10.3-fat-2.6/src/_tkagg.o build/temp.macosx-10.3-fat-2.6/CXX/cxx_extensions.o build/temp.macosx-10.3-fat-2.6/CXX/cxxsupport.o build/temp.macosx-10.3-fat-2.6/CXX/IndirectPythonInterface.o build/temp.macosx-10.3-fat-2.6/CXX/cxxextensions.o -L/opt/local/lib -lstdc++ -lm -lfreetype -lz -lz -lstdc++ -lm -o build/lib.macosx-10.3-fat-2.6/matplotlib/backends/_tkagg.so -framework Tcl -framework Tk ld: warning: in /opt/local/lib/libfreetype.dylib, file was built for unsupported file format which is not the architecture being linked (ppc) ld: warning: in /opt/local/lib/libz.dylib, file was built for unsupported file format which is not the architecture being linked (ppc) ld: in /opt/local/lib/libxml2.2.dylib, file was built for unsupported file format which is not the architecture being linked (ppc) for architecture ppc collect2: ld returned 1 exit status ld: warning: in /opt/local/lib/libfreetype.dylib, file was built for unsupported file format which is not the architecture being linked (i386) ld: warning: in /opt/local/lib/libz.dylib, file was built for unsupported file format which is not the architecture being linked (i386) ld: in /opt/local/lib/libxml2.2.dylib, file was built for unsupported file format which is not the architecture being linked (i386) for architecture i386 collect2: ld returned 1 exit status lipo: can't open input file: /var/tmp//ccuCbz2a.out (No such file or directory) error: command 'c++' failed with exit status 1 ---------------------------------------------------------------------- > > Message: 1 > Date: Thu, 24 Jun 2010 20:58:37 -0400 > From: Adam J Richards <ada...@gm...> > Subject: Re: [Matplotlib-users] Mac OS X 10.6 dmg install (Tim Gray) > To: mat...@li... > Message-ID: <4C2...@gm...> > Content-Type: text/plain; charset=ISO-8859-1; format=flowed > > Hi Tim, > > From what I gather you are trying to install everything from source the > trying to install via the dmg. I did a fresh install of python, > matplotlib and a number of other packages today (on 10.6) and maybe it > would be helpful to see how to install from source. When installing > Python, be sure to use --enable-framework. I used a /usr/local prefix > though this may be somewhere else for you. > > $ wget http://www.python.org/ftp/python/2.6.5/Python-2.6.5.tar.bz2 > $ tar -jxvf Python-2.6.5.tar.bz2 > $ cd Python-2.6.5 > $ ./configure --prefix=/usr/local --enable-framework > $ make > $ make install > > It appears that you have already installed numpy and so you would also > need the following: > > dateutils > $ sudo wget > http://labix.org/download/python-dateutil/python-dateutil-1.5.tar.gz > $ sudo tar xzf python-dateutil-1.5.tar.gz > $ cd python-dateutil-1.5 > $ sudo /usr/local/bin/python setup.py install > > freetype > $ > > http://download.savannah.gnu.org/releases-noredirect/freetype/freetype-2.3.12.tar.gz > $ sudo tar xzf freetype-2.3.12.tar.gz > $ cd freetype-2.3.12 > $ sudo ./configure --prefix=/usr/local > $ sudo make > $ sudo make install > > libpng > $ sudo wget > > http://sourceforge.net/projects/libpng/files/01-libpng-master/1.4.2/libpng-1.4.2.tar.gz/download > $ sudo tar xzf libpng-1.4.2.tar.gz > $ cd libpng-1.4.2 > $ sudo ./configure --prefix=/usr/local > $ sudo make > $ sudo make install > > pkconfig > $ sudo wget > http://pkgconfig.freedesktop.org/releases/pkg-config-0.22.tar.gz > $ sudo tar xzf pkg-config-0.22.tar.gz > $ cd pkg-config-0.22 > $ sudo ./configure --prefix=/usr/local > $ sudo make > $ sudo make install > > Finally, you should be able to install matplotlib from source using, > $ sudo wget > > http://sourceforge.net/projects/matplotlib/files/matplotlib/matplotlib-0.99.3/matplotlib-0.99.3.tar.gz/download > $ sudo tar xzf matplotlib-0.99.3.tar.gz > $ cd matplotlib-0.99.3 > $ sudo /usr/local/bin/python setup.py build > $ sudo /usr/local/bin/python setup.py install_* > *_ > Hopefully this helps. > > -Adam Richards > > Duke University > > > > |
From: Joe K. <jki...@wi...> - 2010-06-25 14:31:30
|
There's no single function to do it, but just reversing the current ylimits manually is a one-liner. ("plt" is "matplotlib.pyplot", here) plt.ylim(plt.ylim()[::-1]) Hope that helps, -Joe On Fri, Jun 25, 2010 at 6:41 AM, Preben Randhol <ra...@pv...> wrote: > Hi > > I need to plot some data vs depth. In stead of giving depths as > 0,-1000,-2000, I want to give the depths as 0,1000,2000 but when plotting > the data goes downwards (as if they had been negative). Can I get the > y-axis to reverse so it goes downwards and not upwards? > > > > > > ------------------------------------------------------------------------------ > ThinkGeek and WIRED's GeekDad team up for the Ultimate > GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the > lucky parental unit. See the prize list and enter to win: > http://p.sf.net/sfu/thinkgeek-promo > _______________________________________________ > Matplotlib-users mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users > |
From: Michael D. <md...@st...> - 2010-06-25 14:00:40
|
On 06/25/2010 07:41 AM, Preben Randhol wrote: > Hi > > I need to plot some data vs depth. In stead of giving depths as > 0,-1000,-2000, I want to give the depths as 0,1000,2000 but when plotting > the data goes downwards (as if they had been negative). Can I get the > y-axis to reverse so it goes downwards and not upwards? > If using the OO interface: axes.invert_yaxis() or axes.set_ylim(2000, 0) # note the larger value first or with the pylab interface: ylim(2000, 0) Mike -- Michael Droettboom Science Software Branch Space Telescope Science Institute Baltimore, Maryland, USA |
From: Ian Stokes-R. <ijs...@hk...> - 2010-06-25 13:52:20
|
On 6/25/10 8:23 AM, Christopher Brewster wrote: > I have followed these instructions to (almost ) the letter. > Only difference is that python was already installed at /Library/Frameworks/Python.framework/Versions/2.6/bin/python > I also re-installed numpy. > > Still no good with always the same problem - the absence of numpy.core.ma FWIW, I have had exactly this same problem, though I have not attempted the very helpful instructions others have supplied in response to this thread. I am in the undesirable situation of using different Python distributions depending on what features I require: either my "main" copy, for most operations (some other applications I have installed will only use this), EPD (32-bit) when I want all the bells and whistles of EPD, and in some circumstances I opt for a customized version of Sage Math which includes specialized packages that install easily. Ian |
From: Tim G. <tg...@pr...> - 2010-06-25 13:49:38
|
On Jun 24, 2010 at 09:37 PM -0700, Hana Sevcikova wrote: > I think you just need to direct the PYTHONPATH variable to the place where > matplotlib is installed. My PYTHONPATH looks like this: > > /Library/Frameworks/Python.framework/Versions/Current/lib/python2.6/site-packages:/Library/Python/2.6/site-packages I think that underscores the problem. The matplotlib OS X dmg installer installs matplotlib in the site-packages directory for the system default install of Python (2.6.1). Everywhere I read insists that on OS X you should install python.org's python, which puts it's site-packages in the location you say. The numpy installer puts stuff in the right place. But matplotlib is not there. |
From: Tim G. <tg...@pr...> - 2010-06-25 13:49:03
|
On Jun 24, 2010 at 04:52 PM -0400, Tim Gray wrote: > I'm updating my python install but am running into problems with > matplotlib, > as always. This time around I'd thought I'd use the .dmg installer. I've > already installed Python 2.6.5 from python.org and numpy from scipy.org. > Both of these work. I noticed the matplotlib installer wants to install to > /Library/Python/2.6/site-packages, even though the appropriate location for > the python.org install is in > /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages. > As a result, when I run python 2.6.5 from python.org, it doesn't > matplotlib. To clarify, I've taken screen shots of the 0.99.3 and 0.99.1.1 dmg installers. If you look in the bottom pane of the window, you will see the install location which you cannot change. The 0.99.1.1 installer places files in the appropriate location for python.org 2.6.5. The 0.99.3 installer places files in the appropriate location for the OS X bundled version of python (2.6.1) that we have been warned not to use. <http://www.dropbox.com/gallery/100367/1/matplotlib?h=49e1ff> |
From: Preben R. <ra...@pv...> - 2010-06-25 12:52:14
|
Hi I need to plot some data vs depth. In stead of giving depths as 0,-1000,-2000, I want to give the depths as 0,1000,2000 but when plotting the data goes downwards (as if they had been negative). Can I get the y-axis to reverse so it goes downwards and not upwards? |
From: Christopher B. <cbr...@gm...> - 2010-06-25 12:28:45
|
I have followed these instructions to (almost ) the letter. Only difference is that python was already installed at /Library/Frameworks/Python.framework/Versions/2.6/bin/python I also re-installed numpy. Still no good with always the same problem - the absence of numpy.core.ma Any suggestions? Christopher ---- >>> from pylab import randn, hist /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/matplotlib/__init__.py:62: DeprecationWarning: the md5 module is deprecated; use hashlib instead import md5, os, re, shutil, sys, warnings /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/pytz/tzinfo.py:5: DeprecationWarning: the sets module is deprecated from sets import Set /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/matplotlib/__init__.py:606: UserWarning: Bad val "MacOSX" on line #31 "backend : MacOSX " in file "/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/matplotlib/mpl-data/matplotlibrc" Unrecognized backend string "macosx": valid strings are ['Cairo', 'GD', 'CocoaAgg', 'GDK', 'PS', 'GTKAgg', 'GTK', 'Paint', 'QtAgg', 'Template', 'Agg2', 'Aqt', 'FltkAgg', 'TkAgg', 'WX', 'Qt4Agg', 'EMF', 'Agg', 'SVG', 'GTKCairo', 'WXAgg', 'Pdf'] "%s"\n\t%s' % (val, cnt, line, fname, msg)) Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/pylab.py", line 1, in <module> from matplotlib.pylab import * File "/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/matplotlib/pylab.py", line 206, in <module> from matplotlib.numerix import npyma as ma File "/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/matplotlib/numerix/__init__.py", line 166, in <module> __import__('ma', g, l) File "/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/matplotlib/numerix/ma/__init__.py", line 16, in <module> from numpy.core.ma import * ImportError: No module named ma ---- On 25 Jun 2010, at 01:58, Adam J Richards wrote: > Hi Tim, > > From what I gather you are trying to install everything from source the > trying to install via the dmg. I did a fresh install of python, > matplotlib and a number of other packages today (on 10.6) and maybe it > would be helpful to see how to install from source. When installing > Python, be sure to use --enable-framework. I used a /usr/local prefix > though this may be somewhere else for you. > > $ wget http://www.python.org/ftp/python/2.6.5/Python-2.6.5.tar.bz2 > $ tar -jxvf Python-2.6.5.tar.bz2 > $ cd Python-2.6.5 > $ ./configure --prefix=/usr/local --enable-framework > $ make > $ make install > > It appears that you have already installed numpy and so you would also > need the following: > > dateutils > $ sudo wget > http://labix.org/download/python-dateutil/python-dateutil-1.5.tar.gz > $ sudo tar xzf python-dateutil-1.5.tar.gz > $ cd python-dateutil-1.5 > $ sudo /usr/local/bin/python setup.py install > > freetype > $ > http://download.savannah.gnu.org/releases-noredirect/freetype/freetype-2.3.12.tar.gz > $ sudo tar xzf freetype-2.3.12.tar.gz > $ cd freetype-2.3.12 > $ sudo ./configure --prefix=/usr/local > $ sudo make > $ sudo make install > > libpng > $ sudo wget > http://sourceforge.net/projects/libpng/files/01-libpng-master/1.4.2/libpng-1.4.2.tar.gz/download > $ sudo tar xzf libpng-1.4.2.tar.gz > $ cd libpng-1.4.2 > $ sudo ./configure --prefix=/usr/local > $ sudo make > $ sudo make install > > pkconfig > $ sudo wget http://pkgconfig.freedesktop.org/releases/pkg-config-0.22.tar.gz > $ sudo tar xzf pkg-config-0.22.tar.gz > $ cd pkg-config-0.22 > $ sudo ./configure --prefix=/usr/local > $ sudo make > $ sudo make install > > Finally, you should be able to install matplotlib from source using, > $ sudo wget > http://sourceforge.net/projects/matplotlib/files/matplotlib/matplotlib-0.99.3/matplotlib-0.99.3.tar.gz/download > $ sudo tar xzf matplotlib-0.99.3.tar.gz > $ cd matplotlib-0.99.3 > $ sudo /usr/local/bin/python setup.py build > $ sudo /usr/local/bin/python setup.py install_* > *_ > Hopefully this helps. > > -Adam Richards > > Duke University > > ------------------------------------------------------------------------------ > ThinkGeek and WIRED's GeekDad team up for the Ultimate > GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the > lucky parental unit. See the prize list and enter to win: > http://p.sf.net/sfu/thinkgeek-promo > _______________________________________________ > Matplotlib-users mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users |
From: German O. <ger...@gm...> - 2010-06-25 09:34:26
|
Hi I'm using the following code for insert a scatter plot in a figure in Qt. vmin=min(r_time[:]) vmax=max(r_time[:]) valores=np.arange(vmin,vmax+1) a1=self.ui.axes4.scatter(r_east,r_nort,vmin=vmin,vmax=vmax,c=r_time,edgecolors="none") b1=self.ui.fig2.colorbar(a1,values=valores,format="%.3f",spacing="uniform") The plot is ok and and the colors in the colorbar are ok, but for some reason the ticks are missing. I tried b1=self.ui.fig2.colorbar(a1,values=valores,ticks=valores,format="%.3f",spacing="uniform") but still the ticks doesn't appear. How can I get the ticks in the colorbar? Thanks German |
From: Mike A. <and...@ce...> - 2010-06-25 06:05:32
|
Hi, > Went looking on examples page and found there was a file name demo_image.py > http://matplotlib.sourceforge.net/examples/axes_grid/demo_image.html > > However for whatever reason the source code was not downloadable (404 > error), so I copied it off the html page. I'm not sure why the matplotlib examples page would contain weird dependencies like that, rather than just having simpler examples. As for 'pip', it is a replacement for 'easy_install', both of which find and install python packages. pip is meant to improve on easy_install, with new features and more stability. And I think you figured out my exact problem: > I'd be questioning your configuration of matplotlib, there should be a rc > file somewhere, maybe you (or your distro) have set the backend to gtk by > default? Yep, unfortunately in ~/.matplotlib/matplotlibrc this line was set to backend : GTKAgg So I fixed that. The other solution I found is to have at the top of the plotting script the matplotlib.use() statement so that it uses something else for a backend: import matplotlib # Do this before importing pylab or pyplot #matplotlib.use('Agg') # Anti-Grain Geometry (raster images) matplotlib.use('PDF') import matplotlib.pyplot as plt Thanks! Mike |
From: Hana S. <ha...@cs...> - 2010-06-25 04:37:21
|
Tim, I think you just need to direct the PYTHONPATH variable to the place where matplotlib is installed. My PYTHONPATH looks like this: /Library/Frameworks/Python.framework/Versions/Current/lib/python2.6/site-packages:/Library/Python/2.6/site-packages Hana On 6/24/10 6:45 PM, Tim Gray wrote: > On Jun 24, 2010 at 08:58 PM -0400, Adam J Richards wrote: > >> Hi Tim, >> >> From what I gather you are trying to install everything from source the >> trying to install via the dmg. I did a fresh install of python, >> matplotlib and a number of other packages today (on 10.6) and maybe it >> would be helpful to see how to install from source. When installing >> Python, be sure to use --enable-framework. I used a /usr/local prefix >> though this may be somewhere else for you. >> > I'm actually trying to install from the prepackaged dmgs. That would speed > things up for me quite a bit. All the other components went fine, but it > looks like the matplotlib dmg is configured for the wrong location. I saw a > couple mentions of this in the archives but no responses... > > I guess I'll try from source if no one has a different solution. Your notes > will help me if I have to do that. Thanks! > > ------------------------------------------------------------------------------ > ThinkGeek and WIRED's GeekDad team up for the Ultimate > GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the > lucky parental unit. See the prize list and enter to win: > http://p.sf.net/sfu/thinkgeek-promo > _______________________________________________ > Matplotlib-users mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users > |
From: Tim G. <tg...@pr...> - 2010-06-25 01:52:38
|
On Jun 24, 2010 at 08:58 PM -0400, Adam J Richards wrote: > Hi Tim, > > From what I gather you are trying to install everything from source the > trying to install via the dmg. I did a fresh install of python, > matplotlib and a number of other packages today (on 10.6) and maybe it > would be helpful to see how to install from source. When installing > Python, be sure to use --enable-framework. I used a /usr/local prefix > though this may be somewhere else for you. I'm actually trying to install from the prepackaged dmgs. That would speed things up for me quite a bit. All the other components went fine, but it looks like the matplotlib dmg is configured for the wrong location. I saw a couple mentions of this in the archives but no responses... I guess I'll try from source if no one has a different solution. Your notes will help me if I have to do that. Thanks! |
From: Adam J R. <ada...@gm...> - 2010-06-25 00:58:53
|
Hi Tim, From what I gather you are trying to install everything from source the trying to install via the dmg. I did a fresh install of python, matplotlib and a number of other packages today (on 10.6) and maybe it would be helpful to see how to install from source. When installing Python, be sure to use --enable-framework. I used a /usr/local prefix though this may be somewhere else for you. $ wget http://www.python.org/ftp/python/2.6.5/Python-2.6.5.tar.bz2 $ tar -jxvf Python-2.6.5.tar.bz2 $ cd Python-2.6.5 $ ./configure --prefix=/usr/local --enable-framework $ make $ make install It appears that you have already installed numpy and so you would also need the following: dateutils $ sudo wget http://labix.org/download/python-dateutil/python-dateutil-1.5.tar.gz $ sudo tar xzf python-dateutil-1.5.tar.gz $ cd python-dateutil-1.5 $ sudo /usr/local/bin/python setup.py install freetype $ http://download.savannah.gnu.org/releases-noredirect/freetype/freetype-2.3.12.tar.gz $ sudo tar xzf freetype-2.3.12.tar.gz $ cd freetype-2.3.12 $ sudo ./configure --prefix=/usr/local $ sudo make $ sudo make install libpng $ sudo wget http://sourceforge.net/projects/libpng/files/01-libpng-master/1.4.2/libpng-1.4.2.tar.gz/download $ sudo tar xzf libpng-1.4.2.tar.gz $ cd libpng-1.4.2 $ sudo ./configure --prefix=/usr/local $ sudo make $ sudo make install pkconfig $ sudo wget http://pkgconfig.freedesktop.org/releases/pkg-config-0.22.tar.gz $ sudo tar xzf pkg-config-0.22.tar.gz $ cd pkg-config-0.22 $ sudo ./configure --prefix=/usr/local $ sudo make $ sudo make install Finally, you should be able to install matplotlib from source using, $ sudo wget http://sourceforge.net/projects/matplotlib/files/matplotlib/matplotlib-0.99.3/matplotlib-0.99.3.tar.gz/download $ sudo tar xzf matplotlib-0.99.3.tar.gz $ cd matplotlib-0.99.3 $ sudo /usr/local/bin/python setup.py build $ sudo /usr/local/bin/python setup.py install_* *_ Hopefully this helps. -Adam Richards Duke University |
From: Stephen G. <ste...@op...> - 2010-06-24 23:04:23
|
Hi Mike, I tried to run it on windows. Got error D:\download\python>demo_axes_grid.py Traceback (most recent call last): File "D:\download\python\demo_axes_grid.py", line 2, in <module> from demo_image import get_demo_image ImportError: No module named demo_image Went looking on examples page and found there was a file name demo_image.py http://matplotlib.sourceforge.net/examples/axes_grid/demo_image.html However for whatever reason the source code was not downloadable (404 error), so I copied it off the html page. After that the example ran fine under windows, ... I have never installed anything called 'dsextras' and don't know what it is. However it doesn't look like a gtk GUI to me., a quick check of the code reveals no gtk type commands or imports? I'd be questioning your configuration of matplotlib, there should be a rc file somewhere, maybe you (or your distro) have set the backend to gtk by default? I don't have a system here without gtk installed, that I could test example runs without it installed - sorry. (what distro and what's a pip command?) - Steve On 23/06/2010 11:09 PM, Mike Anderson wrote: > Hi, > > I'm trying to run a demo example, > http://matplotlib.sourceforge.net/plot_directive/mpl_toolkits/axes_grid/figures/demo_axes_grid.py > > ran into this problem saying pygtk was needed: > > $ curl > http://matplotlib.sourceforge.net/plot_directive/mpl_toolkits/axes_grid/figures/demo_axes_grid.py > > demo_axes_grid.py > > $ python demo_axes_grid.py > Traceback (most recent call last): > File "demo_axes_grid.py", line 1, in <module> > import matplotlib.pyplot as plt > File > "/Library/Frameworks/Python.framework/Versions/Current/lib/python2.6/site-packages/matplotlib/pyplot.py", > line 78, in <module> > new_figure_manager, draw_if_interactive, show = pylab_setup() > File > "/Library/Frameworks/Python.framework/Versions/Current/lib/python2.6/site-packages/matplotlib/backends/__init__.py", > line 25, in pylab_setup > globals(),locals(),[backend_name]) > File > "/Library/Frameworks/Python.framework/Versions/Current/lib/python2.6/site-packages/matplotlib/backends/backend_gtkagg.py", > line 10, in <module> > from matplotlib.backends.backend_gtk import gtk, FigureManagerGTK, > FigureCanvasGTK,\ > File > "/Library/Frameworks/Python.framework/Versions/Current/lib/python2.6/site-packages/matplotlib/backends/backend_gtk.py", > line 11, in <module> > raise ImportError("Gtk* backend requires pygtk to be installed.") > ImportError: Gtk* backend requires pygtk to be installed. > > > > Then I tried to install pygtk: > > $ pip install pygtk > Downloading/unpacking pygtk > Running setup.py egg_info for package pygtk > Traceback (most recent call last): > File "<string>", line 14, in <module> > File > "/Users/michaelanderson/root/mikeWork/2010June/temp/build/pygtk/setup.py", > line 22, in <module> > from dsextras import get_m4_define, getoutput, have_pkgconfig, \ > ImportError: No module named dsextras > Complete output from command python setup.py egg_info: > Traceback (most recent call last): > > File "<string>", line 14, in <module> > > File > "/Users/michaelanderson/root/mikeWork/2010June/temp/build/pygtk/setup.py", > line 22, in <module> > > from dsextras import get_m4_define, getoutput, have_pkgconfig, \ > > ImportError: No module named dsextras > > ---------------------------------------- > Command python setup.py egg_info failed with error code 1 > Storing complete log in /Users/michaelanderson/.pip/pip.log > > > Ok, then I tried to install dsextras: > $ pip install dsextras > Downloading/unpacking dsextras > Could not find any downloads that satisfy the requirement dsextras > No distributions at all found for dsextras > Storing complete log in /Users/michaelanderson/.pip/pip.log > > > What is this obscure package (dsextras) and is it really necessary to > run the shared axes demo? > > Mike > > > ------------------------------------------------------------------------------ > ThinkGeek and WIRED's GeekDad team up for the Ultimate > GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the > lucky parental unit. See the prize list and enter to win: > http://p.sf.net/sfu/thinkgeek-promo > > > _______________________________________________ > Matplotlib-users mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users > |
From: Eric F. <ef...@ha...> - 2010-06-24 22:21:05
|
On 06/24/2010 11:57 AM, Florian Berger wrote: > Hi, > > Eric Firing<ef...@ha...>: >> >> It was *such* a major change that Value and its ilk were completely >> replaced, not moved aside. > > Thanks, I feared as much. :) > > >> look at what you were trying to do with the code, not at how you >> implemented it via Value. > > Well the thing is that *I* did not try anything, as it is third party > code. :) So I fear I have to figure out why the original author found > Value() so appealing. *sigh* > > >> Unless you were using Value et al for your own purposes [...] > > I think that is what he did. :-/ At least for those applications, you might be able to go back to an earlier mpl version, pull out the c++ code and the wrappers for Value, BinOp, etc., and turn them into an independent extension. That might be worthwhile if you have a *lot* of third-party code that is using those things extensively in ways not tied to mpl. I suspect it would not be very difficult. It's a long time since I looked at that code, though. Eric > > Anyway, thanks for the clarification! > > Best, > Florian > |
From: Florian B. <fl...@ar...> - 2010-06-24 22:00:08
|
Hi, Eric Firing <ef...@ha...>: > > It was *such* a major change that Value and its ilk were completely > replaced, not moved aside. Thanks, I feared as much. :) > look at what you were trying to do with the code, not at how you > implemented it via Value. Well the thing is that *I* did not try anything, as it is third party code. :) So I fear I have to figure out why the original author found Value() so appealing. *sigh* > Unless you were using Value et al for your own purposes [...] I think that is what he did. :-/ Anyway, thanks for the clarification! Best, Florian |
From: Eric F. <ef...@ha...> - 2010-06-24 21:38:02
|
On 06/24/2010 11:07 AM, Florian Berger wrote: > Hi, > > Ryan May<rm...@gm...>: >> >> Michael Droettboom<md...@st...> wrote: >>> There is a guide about porting from the old transforms to the new >>> transforms here: >>> >>> http://matplotlib.sourceforge.net/api/api_changes.html#notes-about-the-transforms-refactoring >> >> It's possible I'm missing something, but I don't see >> matplotlib.transforms.Value() or anything remotely resembling it >> mentioned there. > > Same with me. :) Michael, I've checked the very document and just like > Ryan I couldn't find any hint of what had become of that functionality. > > Here is a diff of transforms.py before and after the refactoring: > > http://matplotlib.svn.sourceforge.net/viewvc/matplotlib/trunk/matplotlib/lib/matplotlib/transforms.py?r1=3513&r2=4817 > > On the left side you see that Value() has been featured quite > distinctively. After the refactoring there doesn't seem to be anything > left of it. To a newbie like me this is striking, as it seems to be a > major change in the API. I thus hoped it probably could have been moved > to another module or something like this. It was *such* a major change that Value and its ilk were completely replaced, not moved aside. Value was a lazy value. The original transforms system was based on lazy evaluation of expressions, for the sake of efficiency. (The new transforms system achieves the same sort of efficiency but in a more general and extensible framework.) To port code, you really have to look not for replacements for things like Value, but for how the structure changed so that they are not needed. Essentially, you have to look at one level higher than the Value level--look at what you were trying to do with the code, not at how you implemented it via Value. Unless you were using Value et al for your own purposes, rather than in Bbox etc, looking at this higher level should take you straight to the translations in the table that Mike made to help guide the transition. Eric > > Still glad about any enlightenments. :) > > Best, > Florian > > ------------------------------------------------------------------------------ > ThinkGeek and WIRED's GeekDad team up for the Ultimate > GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the > lucky parental unit. See the prize list and enter to win: > http://p.sf.net/sfu/thinkgeek-promo > _______________________________________________ > Matplotlib-users mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users |