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
(10) |
2
(11) |
3
(4) |
4
(2) |
5
(10) |
6
(20) |
7
(18) |
8
(32) |
9
(15) |
10
(2) |
11
(5) |
12
(7) |
13
(13) |
14
(9) |
15
(17) |
16
(10) |
17
(4) |
18
(7) |
19
(15) |
20
(16) |
21
(10) |
22
(19) |
23
(13) |
24
(4) |
25
(5) |
26
(8) |
27
(10) |
28
(17) |
29
(7) |
30
(18) |
31
(2) |
Sebastian Krieger wrote: > Dear all! > > I would like to ask two questions: one concerning imshow with the > Robinson projection and the second about the latitude limits for the > same map projection. > > First, I am trying to make a Robinson projection map using imshow > instead of contourf as described in the Basemap documentation. I > modified the script as follows: > > #---------------------------------------------------------------------- > from matplotlib.toolkits.basemap import Basemap, shiftgrid > from pylab import load, meshgrid, title, arange, show, cm, pi > # > # read in topo data (on a regular lat/lon grid) > etopo = load('etopo20data.gz') > lons = load('etopo20lons.gz') > lats = load('etopo20lats.gz') > # > # create Basemap instance for Robinson projection. > m = Basemap(projection='robin',lon_0=0.5*(lons[0]+lons[-1])) > # > # compute native map projection coordinates for lat/lon grid. > etopo, lons = shiftgrid(180., etopo, lons, start=False) > x, y = m(*meshgrid(lons,lats)) > dx = 2.*pi*m.rmajor/len(lons) > nx = int((m.xmax-m.xmin)/dx)+1; ny = int((m.ymax-m.ymin)/dx)+1 > dat, x, y = m.transform_scalar(etopo, lons, lats, nx, ny, > returnxy=True) > # > # make filled contour plot. > im = m.imshow(dat, cmap=cm.jet) > m.drawcoastlines() # draw coastlines > m.drawmapboundary() # draw a line around the map region > m.drawparallels(arange(-90.,120.,30.),labels=[1,0,0,0]) # draw > parallels > m.drawmeridians(arange(0.,420.,60.),labels=[0,0,0,1]) # draw meridians > title('Robinson Projection') # add a title > show() > #---------------------------------------------------------------------- > > > The result looks as I would expect, except that some data is plot > outside of the map boundaries. Using another projection as the > Orthographic for example, this problem doesn't happen. Am I doing > something wrong? Sebastian: The Robinson projection is non-rectangular, so it's not straightforward to plot an image on it. You would somehow have to mask the points outside the projection limb (this is what happens for the 'ortho' projection). It's much easier just to use pcolor, for example from matplotlib.toolkits.basemap import Basemap, shiftgrid from pylab import load, meshgrid, title, arange, show, cm, pi # read in topo data (on a regular lat/lon grid) etopo = load('etopo20data.gz') lons = load('etopo20lons.gz') lats = load('etopo20lats.gz') # create Basemap instance for Robinson projection. m = Basemap(projection='robin',lon_0=0.5*(lons[0]+lons[-1])) x,y = m(*meshgrid(lons,lats)) p = m.pcolormesh(x,y,etopo,shading='flat') m.drawcoastlines() # draw coastlines m.drawmapboundary() # draw a line around the map region m.drawparallels(arange(-90.,120.,30.),labels=[1,0,0,0]) # draw parallels m.drawmeridians(arange(0.,420.,60.),labels=[0,0,0,1]) # draw meridians title('Robinson Projection') # add a title show() > > Second, I work with Topex/POSEIDON and Jason-1 sea surface height > anomalies datasets where the latitudes range from about 67.5S to > 67.5N. Outside these limits hopefully its blank, as anyone would > expect. Aesthetically I find it more appealing if I could limit my map > boundaries to these limits, or even lower limits if I zoom the > equatorial region. Has anyone ever tried to do this? You can't with the Robinson projection, it's only defined globally. You could do it with the Mercator ('merc'), Miller ('mill') or Cylindrical Equidistant ('cyl') projections by specifying the lat/lon values of the upper right and lower left corners. > > Thank's in advance and kind regards, > Sebastian HTH, -Jeff -- Jeffrey S. Whitaker Phone : (303)497-6313 NOAA/OAR/CDC R/PSD1 FAX : (303)497-6449 325 Broadway Boulder, CO, USA 80305-3328
Dear all! I would like to ask two questions: one concerning imshow with the Robinson projection and the second about the latitude limits for the same map projection. First, I am trying to make a Robinson projection map using imshow instead of contourf as described in the Basemap documentation. I modified the script as follows: #---------------------------------------------------------------------- from matplotlib.toolkits.basemap import Basemap, shiftgrid from pylab import load, meshgrid, title, arange, show, cm, pi # # read in topo data (on a regular lat/lon grid) etopo = load('etopo20data.gz') lons = load('etopo20lons.gz') lats = load('etopo20lats.gz') # # create Basemap instance for Robinson projection. m = Basemap(projection='robin',lon_0=0.5*(lons[0]+lons[-1])) # # compute native map projection coordinates for lat/lon grid. etopo, lons = shiftgrid(180., etopo, lons, start=False) x, y = m(*meshgrid(lons,lats)) dx = 2.*pi*m.rmajor/len(lons) nx = int((m.xmax-m.xmin)/dx)+1; ny = int((m.ymax-m.ymin)/dx)+1 dat, x, y = m.transform_scalar(etopo, lons, lats, nx, ny, returnxy=True) # # make filled contour plot. im = m.imshow(dat, cmap=cm.jet) m.drawcoastlines() # draw coastlines m.drawmapboundary() # draw a line around the map region m.drawparallels(arange(-90.,120.,30.),labels=[1,0,0,0]) # draw parallels m.drawmeridians(arange(0.,420.,60.),labels=[0,0,0,1]) # draw meridians title('Robinson Projection') # add a title show() #---------------------------------------------------------------------- The result looks as I would expect, except that some data is plot outside of the map boundaries. Using another projection as the Orthographic for example, this problem doesn't happen. Am I doing something wrong? Second, I work with Topex/POSEIDON and Jason-1 sea surface height anomalies datasets where the latitudes range from about 67.5S to 67.5N. Outside these limits hopefully its blank, as anyone would expect. Aesthetically I find it more appealing if I could limit my map boundaries to these limits, or even lower limits if I zoom the equatorial region. Has anyone ever tried to do this? Thank's in advance and kind regards, Sebastian
Hallo! > I am not managing to ge matplotlib to work with the new Ubuntu realease hardy 8.04. After I install the python-matplotlib package, I am not able to list my modules in the help() section and I can also not import pylab. As anyone ha that problem and found a solution? I had the same problem today. However, in my case gtk was missing and I fixed it with installing apt-get install python-gtk2 LG Georg
Atually, I just installed g++ as you were saying and now, it's working. Thanks for the help. Johan Mazel 2008年5月30日 Michael Droettboom <md...@st...>: > This is in diff format, so it indicates that it is around line 960. The > part to add is this: > > if not os.path.exists(tk_inc): > tk_inc = os.path.normpath(os.path.join(tk_lib_dir, > '../../../include/tcl' + tk_ver)) > > right after this: > > if not os.path.exists(tk_inc): > tk_inc = os.path.normpath(os.path.join(tk_lib_dir, > '../../include')) > > Cheers, > Mike > > Johan Mazel wrote: > >> Hi >> Where am I supposed to copy this piece of code in setupext.py ? At the >> begining ? At the end ? >> Thanks for the answer. >> Johan Mazel >> >> >> >> 2008年5月30日 Michael Droettboom <md...@st... <mailto:md...@st...>>: >> >> >> It seems you have two unrelated errors here. >> >> The first is that Hardy changed how Tkinter is packaged so that >> matplotlib can't find it. We do not have a workaround for this on >> the 0.91.x maintenance branch. You will need to apply this patch >> to setupext.py: >> >> +@@ -960,6 +960,9 @@ def add_tk_flags(module): >> + if not os.path.exists(tk_inc): >> + tk_inc = os.path.normpath(os.path.join(tk_lib_dir, >> + '../../include')) >> ++ if not os.path.exists(tk_inc): >> ++ tk_inc = os.path.normpath(os.path.join(tk_lib_dir, >> ++ '../../../include/tcl' >> + tk_ver)) >> + + if ((not >> os.path.exists(os.path.join(tk_inc,'tk.h'))) and >> + os.path.exists(os.path.join(tcl_inc,'tk.h'))): >> + >> >> We have a better fix on the trunk, but it requires more testing. >> >> The second error typically occurs when g++ is not installed. Try >> "sudo apt-get install g++". >> >> Cheers, >> Mike >> >> Johan Mazel wrote: >> >> Hi >> I'm trying to install the 0.91.2 maintenance from the SVN on a >> Ubuntu 8.04 system. >> But I have an error about Tkinter during the checkin of >> dependancies : >> >> OPTIONAL BACKEND DEPENDENCIES >> libpng: 1.2.15beta5 >> Tkinter: no >> * Tkinter present, but header files are >> not found. >> * You may need to install development >> packages. >> >> For all the other dependancies, there is no problem at all. >> >> When I type python setup.py build, I got this error at the end : >> >> gcc: error trying to exec 'cc1plus': execvp: Aucun fichier ou >> dossier de ce type >> gcc: error trying to exec 'cc1plus': execvp: Aucun fichier ou >> dossier de ce type >> error: Command "gcc -pthread -fno-strict-aliasing -DNDEBUG -g >> -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC >> -I/usr/include/freetype2 -I/usr/local/include -I/usr/include >> -I. -I/usr/include/python2.5 -c CXX/cxx_extensions.cxx -o >> build/temp.linux-i686-2.5/CXX/cxx_extensions.o" failed with >> exit status 1 >> >> I'm guessing that the building error is directly related to >> the fact that I don't have the developpement package for tkinter. >> The main problem is that I can't find this package through >> Synaptic my package manager. >> If you have any idea of where this problem comes from, please, >> I'm listening. >> >> Thanks for the help. >> Johan Mazel >> >> ------------------------------------------------------------------------ >> >> >> ------------------------------------------------------------------------- >> This SF.net email is sponsored by: Microsoft >> Defy all challenges. Microsoft(R) Visual Studio 2008. >> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ >> >> ------------------------------------------------------------------------ >> >> _______________________________________________ >> Matplotlib-users mailing list >> Mat...@li... >> <mailto: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 >> >> >> > -- > Michael Droettboom > Science Software Branch > Operations and Engineering Division > Space Telescope Science Institute > Operated by AURA for NASA > >
I'm somewhat grasping at straws here: the Ubuntu-packaged matplotlib works for me on Hardy. Thanks. Ubuntu puts the matplotlib data files in a separate package, python-matplotlib-data. That *should* have installed automatically alongside python-matplotlib, but you may want to try forcing that: sudo apt-get install python-matplotlib-data If that fails, try reinstalling both python-matplotlib and python-matplotlib-data. sudo apt-get install --reinstall python-matplotlib The second error also seems like another instance of the same: the python-dateutil package should be installed. Cheers, Mike Marjolaine Rouault wrote: > hi > > I am running python 2.5 and installing the matplotlib using synaptic so it is installing the correct version (I assume). After installing matplotlib, In the help(), this is what i get when asking for the modules liist: > > File "<stdin>", line 1, in <module> > File "/usr/lib/python2.5/site.py", line 342, in __call__ > return pydoc.help(*args, **kwds) > File "/usr/lib/python2.5/pydoc.py", line 1649, in __call__ > self.interact() > File "/usr/lib/python2.5/pydoc.py", line 1667, in interact > self.help(request) > File "/usr/lib/python2.5/pydoc.py", line 1683, in help > elif request == 'modules': self.listmodules() > File "/usr/lib/python2.5/pydoc.py", line 1804, in listmodules > ModuleScanner().run(callback) > File "/usr/lib/python2.5/pydoc.py", line 1855, in run > for importer, modname, ispkg in pkgutil.walk_packages(): > File "/usr/lib/python2.5/pkgutil.py", line 125, in walk_packages > for item in walk_packages(path, name+'.', onerror): > File "/usr/lib/python2.5/pkgutil.py", line 110, in walk_packages > __import__(name) > File "/usr/lib/python2.5/site-packages/matplotlib/config/__init__.py", line 5, in <module> > from rcparams import rc > File "/usr/lib/python2.5/site-packages/matplotlib/config/rcparams.py", line 117, in <module> > rcParams = rc_params() > File "/usr/lib/python2.5/site-packages/matplotlib/config/rcparams.py", line 49, in rc_params > fname = get_config_file() > File "/usr/lib/python2.5/site-packages/matplotlib/config/cutils.py", line 181, in get_config_file > path = get_data_path() # guaranteed to exist or raise > File "/usr/lib/python2.5/site-packages/matplotlib/config/verbose.py", line 74, in wrapper > ret = func(*args, **kwargs) > File "/usr/lib/python2.5/site-packages/matplotlib/config/cutils.py", line 129, in _get_data_path_cached > defaultParams['datapath'][0] = _get_data_path() > File "/usr/lib/python2.5/site-packages/matplotlib/config/cutils.py", line 125, in _get_data_path > raise RuntimeError('Could not find the matplotlib data files') > RuntimeError: Could not find the matplotlib data files > > > if I try import pylab, this is what I get: > > Traceback (most recent call last): > File "<stdin>", line 1, in <module> > File "/usr/lib/python2.5/site-packages/pylab.py", line 1, in <module> > from matplotlib.pylab import * > File "/usr/lib/python2.5/site-packages/matplotlib/pylab.py", line 208, in <module> > from matplotlib import mpl # pulls in most modules > File "/usr/lib/python2.5/site-packages/matplotlib/mpl.py", line 4, in <module> > from matplotlib import axes > File "/usr/lib/python2.5/site-packages/matplotlib/axes.py", line 18, in <module> > from matplotlib import dates as mdates > File "/usr/lib/python2.5/site-packages/matplotlib/dates.py", line 91, in <module> > from dateutil.rrule import rrule, MO, TU, WE, TH, FR, SA, SU, YEARLY, \ > ImportError: No module named dateutil.rrule > > > > > >>>> Michael Droettboom <md...@st...> 05/30/08 2:11 PM >>> >>>> > I don't see this myself. Are you running the correct Python (not > accidentally running Python2.4, for example)? Do you have a > /usr/lib/python2.5/site-packages/matplotlib directory? What is the > exact error message when you import pylab? > > Cheers, > Mike > > Marjolaine Rouault wrote: > >> Hi, >> >> I am not managing to ge matplotlib to work with the new Ubuntu realease hardy 8.04. After I install the python-matplotlib package, I am not able to list my modules in the help() section and I can also not import pylab. As anyone ha that problem and found a solution? >> >> Thanks. >> >> >> >> >> > > -- Michael Droettboom Science Software Branch Operations and Engineering Division Space Telescope Science Institute Operated by AURA for NASA
This is in diff format, so it indicates that it is around line 960. The part to add is this: if not os.path.exists(tk_inc): tk_inc = os.path.normpath(os.path.join(tk_lib_dir, '../../../include/tcl' + tk_ver)) right after this: if not os.path.exists(tk_inc): tk_inc = os.path.normpath(os.path.join(tk_lib_dir, '../../include')) Cheers, Mike Johan Mazel wrote: > Hi > Where am I supposed to copy this piece of code in setupext.py ? At the > begining ? At the end ? > Thanks for the answer. > Johan Mazel > > > > 2008年5月30日 Michael Droettboom <md...@st... <mailto:md...@st...>>: > > It seems you have two unrelated errors here. > > The first is that Hardy changed how Tkinter is packaged so that > matplotlib can't find it. We do not have a workaround for this on > the 0.91.x maintenance branch. You will need to apply this patch > to setupext.py: > > +@@ -960,6 +960,9 @@ def add_tk_flags(module): > + if not os.path.exists(tk_inc): > + tk_inc = os.path.normpath(os.path.join(tk_lib_dir, > + '../../include')) > ++ if not os.path.exists(tk_inc): > ++ tk_inc = os.path.normpath(os.path.join(tk_lib_dir, > ++ '../../../include/tcl' > + tk_ver)) > + + if ((not > os.path.exists(os.path.join(tk_inc,'tk.h'))) and > + os.path.exists(os.path.join(tcl_inc,'tk.h'))): > + > > We have a better fix on the trunk, but it requires more testing. > > The second error typically occurs when g++ is not installed. Try > "sudo apt-get install g++". > > Cheers, > Mike > > Johan Mazel wrote: > > Hi > I'm trying to install the 0.91.2 maintenance from the SVN on a > Ubuntu 8.04 system. > But I have an error about Tkinter during the checkin of > dependancies : > > OPTIONAL BACKEND DEPENDENCIES > libpng: 1.2.15beta5 > Tkinter: no > * Tkinter present, but header files are > not found. > * You may need to install development > packages. > > For all the other dependancies, there is no problem at all. > > When I type python setup.py build, I got this error at the end : > > gcc: error trying to exec 'cc1plus': execvp: Aucun fichier ou > dossier de ce type > gcc: error trying to exec 'cc1plus': execvp: Aucun fichier ou > dossier de ce type > error: Command "gcc -pthread -fno-strict-aliasing -DNDEBUG -g > -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC > -I/usr/include/freetype2 -I/usr/local/include -I/usr/include > -I. -I/usr/include/python2.5 -c CXX/cxx_extensions.cxx -o > build/temp.linux-i686-2.5/CXX/cxx_extensions.o" failed with > exit status 1 > > I'm guessing that the building error is directly related to > the fact that I don't have the developpement package for tkinter. > The main problem is that I can't find this package through > Synaptic my package manager. > If you have any idea of where this problem comes from, please, > I'm listening. > > Thanks for the help. > Johan Mazel > ------------------------------------------------------------------------ > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > ------------------------------------------------------------------------ > > _______________________________________________ > Matplotlib-users mailing list > Mat...@li... > <mailto: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 > > -- Michael Droettboom Science Software Branch Operations and Engineering Division Space Telescope Science Institute Operated by AURA for NASA
hi I am running python 2.5 and installing the matplotlib using synaptic so it is installing the correct version (I assume). After installing matplotlib, In the help(), this is what i get when asking for the modules liist: File "<stdin>", line 1, in <module> File "/usr/lib/python2.5/site.py", line 342, in __call__ return pydoc.help(*args, **kwds) File "/usr/lib/python2.5/pydoc.py", line 1649, in __call__ self.interact() File "/usr/lib/python2.5/pydoc.py", line 1667, in interact self.help(request) File "/usr/lib/python2.5/pydoc.py", line 1683, in help elif request == 'modules': self.listmodules() File "/usr/lib/python2.5/pydoc.py", line 1804, in listmodules ModuleScanner().run(callback) File "/usr/lib/python2.5/pydoc.py", line 1855, in run for importer, modname, ispkg in pkgutil.walk_packages(): File "/usr/lib/python2.5/pkgutil.py", line 125, in walk_packages for item in walk_packages(path, name+'.', onerror): File "/usr/lib/python2.5/pkgutil.py", line 110, in walk_packages __import__(name) File "/usr/lib/python2.5/site-packages/matplotlib/config/__init__.py", line 5, in <module> from rcparams import rc File "/usr/lib/python2.5/site-packages/matplotlib/config/rcparams.py", line 117, in <module> rcParams = rc_params() File "/usr/lib/python2.5/site-packages/matplotlib/config/rcparams.py", line 49, in rc_params fname = get_config_file() File "/usr/lib/python2.5/site-packages/matplotlib/config/cutils.py", line 181, in get_config_file path = get_data_path() # guaranteed to exist or raise File "/usr/lib/python2.5/site-packages/matplotlib/config/verbose.py", line 74, in wrapper ret = func(*args, **kwargs) File "/usr/lib/python2.5/site-packages/matplotlib/config/cutils.py", line 129, in _get_data_path_cached defaultParams['datapath'][0] = _get_data_path() File "/usr/lib/python2.5/site-packages/matplotlib/config/cutils.py", line 125, in _get_data_path raise RuntimeError('Could not find the matplotlib data files') RuntimeError: Could not find the matplotlib data files if I try import pylab, this is what I get: Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/usr/lib/python2.5/site-packages/pylab.py", line 1, in <module> from matplotlib.pylab import * File "/usr/lib/python2.5/site-packages/matplotlib/pylab.py", line 208, in <module> from matplotlib import mpl # pulls in most modules File "/usr/lib/python2.5/site-packages/matplotlib/mpl.py", line 4, in <module> from matplotlib import axes File "/usr/lib/python2.5/site-packages/matplotlib/axes.py", line 18, in <module> from matplotlib import dates as mdates File "/usr/lib/python2.5/site-packages/matplotlib/dates.py", line 91, in <module> from dateutil.rrule import rrule, MO, TU, WE, TH, FR, SA, SU, YEARLY, \ ImportError: No module named dateutil.rrule >>> Michael Droettboom <md...@st...> 05/30/08 2:11 PM >>> I don't see this myself. Are you running the correct Python (not accidentally running Python2.4, for example)? Do you have a /usr/lib/python2.5/site-packages/matplotlib directory? What is the exact error message when you import pylab? Cheers, Mike Marjolaine Rouault wrote: > Hi, > > I am not managing to ge matplotlib to work with the new Ubuntu realease hardy 8.04. After I install the python-matplotlib package, I am not able to list my modules in the help() section and I can also not import pylab. As anyone ha that problem and found a solution? > > Thanks. > > > > -- -- This message is subject to the CSIR's copyright terms and conditions, e-mail legal notice, and implemented Open Document Format (ODF) standard. The full disclaimer details can be found at http://www.csir.co.za/disclaimer.html. This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. MailScanner thanks Transtec Computers for their support.
Hello, all. I've noticed that the alignment of text strings is usually based on the bounding box of the composite glyphs--the painted region. In certain cases, this behavior is producing results that I think are undesirable. One example involves the common case of fonts with tabular figures (numerals), for which the advance widths are equal (so that the digits line up in columnar layouts like spreadsheets), but whose glyphs have different widths (such as a digit one that's narrower than the other digits). Using such a font, when a Y axis label ends with a one, matplotlib's glyph-based right alignment takes that labels' digits out of vertical alignment with the other labels. Similar effects occur with old-style figures on the X axis, although that's more rarely seen in practice, I would imagine. More details and an example script and image are in the support request http://sourceforge.net/tracker/index.php?func=detail&aid=1978234&group_id=80 706&atid=560721, although I'm not sure whether this issue constitutes a support request, a feature request, or something else. What would be required to align text horizontally using advance widths and vertically using font-wide metrics for ascent, descent, and so on? Thanks.
Hi Where am I supposed to copy this piece of code in setupext.py ? At the begining ? At the end ? Thanks for the answer. Johan Mazel 2008年5月30日 Michael Droettboom <md...@st...>: > It seems you have two unrelated errors here. > > The first is that Hardy changed how Tkinter is packaged so that matplotlib > can't find it. We do not have a workaround for this on the 0.91.x > maintenance branch. You will need to apply this patch to setupext.py: > > +@@ -960,6 +960,9 @@ def add_tk_flags(module): > + if not os.path.exists(tk_inc): > + tk_inc = os.path.normpath(os.path.join(tk_lib_dir, > + '../../include')) > ++ if not os.path.exists(tk_inc): > ++ tk_inc = os.path.normpath(os.path.join(tk_lib_dir, > ++ '../../../include/tcl' + > tk_ver)) > + + if ((not > os.path.exists(os.path.join(tk_inc,'tk.h'))) and > + os.path.exists(os.path.join(tcl_inc,'tk.h'))): > + > > We have a better fix on the trunk, but it requires more testing. > > The second error typically occurs when g++ is not installed. Try "sudo > apt-get install g++". > > Cheers, > Mike > > Johan Mazel wrote: > >> Hi >> I'm trying to install the 0.91.2 maintenance from the SVN on a Ubuntu 8.04 >> system. >> But I have an error about Tkinter during the checkin of dependancies : >> >> OPTIONAL BACKEND DEPENDENCIES >> libpng: 1.2.15beta5 >> Tkinter: no >> * Tkinter present, but header files are not found. >> * You may need to install development packages. >> >> For all the other dependancies, there is no problem at all. >> >> When I type python setup.py build, I got this error at the end : >> >> gcc: error trying to exec 'cc1plus': execvp: Aucun fichier ou dossier de >> ce type >> gcc: error trying to exec 'cc1plus': execvp: Aucun fichier ou dossier de >> ce type >> error: Command "gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 >> -Wall -Wstrict-prototypes -fPIC -I/usr/include/freetype2 >> -I/usr/local/include -I/usr/include -I. -I/usr/include/python2.5 -c >> CXX/cxx_extensions.cxx -o build/temp.linux-i686-2.5/CXX/cxx_extensions.o" >> failed with exit status 1 >> >> I'm guessing that the building error is directly related to the fact that >> I don't have the developpement package for tkinter. >> The main problem is that I can't find this package through Synaptic my >> package manager. >> If you have any idea of where this problem comes from, please, I'm >> listening. >> >> Thanks for the help. >> Johan Mazel >> ------------------------------------------------------------------------ >> >> ------------------------------------------------------------------------- >> This SF.net email is sponsored by: Microsoft >> Defy all challenges. Microsoft(R) Visual Studio 2008. >> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ >> ------------------------------------------------------------------------ >> >> _______________________________________________ >> 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 > >
It seems you have two unrelated errors here. The first is that Hardy changed how Tkinter is packaged so that matplotlib can't find it. We do not have a workaround for this on the 0.91.x maintenance branch. You will need to apply this patch to setupext.py: +@@ -960,6 +960,9 @@ def add_tk_flags(module): + if not os.path.exists(tk_inc): + tk_inc = os.path.normpath(os.path.join(tk_lib_dir, + '../../include')) ++ if not os.path.exists(tk_inc): ++ tk_inc = os.path.normpath(os.path.join(tk_lib_dir, ++ '../../../include/tcl' + tk_ver)) + + if ((not os.path.exists(os.path.join(tk_inc,'tk.h'))) and + os.path.exists(os.path.join(tcl_inc,'tk.h'))): + We have a better fix on the trunk, but it requires more testing. The second error typically occurs when g++ is not installed. Try "sudo apt-get install g++". Cheers, Mike Johan Mazel wrote: > Hi > I'm trying to install the 0.91.2 maintenance from the SVN on a Ubuntu > 8.04 system. > But I have an error about Tkinter during the checkin of dependancies : > > OPTIONAL BACKEND DEPENDENCIES > libpng: 1.2.15beta5 > Tkinter: no > * Tkinter present, but header files are not found. > * You may need to install development packages. > > For all the other dependancies, there is no problem at all. > > When I type python setup.py build, I got this error at the end : > > gcc: error trying to exec 'cc1plus': execvp: Aucun fichier ou dossier > de ce type > gcc: error trying to exec 'cc1plus': execvp: Aucun fichier ou dossier > de ce type > error: Command "gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv > -O2 -Wall -Wstrict-prototypes -fPIC -I/usr/include/freetype2 > -I/usr/local/include -I/usr/include -I. -I/usr/include/python2.5 -c > CXX/cxx_extensions.cxx -o > build/temp.linux-i686-2.5/CXX/cxx_extensions.o" failed with exit status 1 > > I'm guessing that the building error is directly related to the fact > that I don't have the developpement package for tkinter. > The main problem is that I can't find this package through Synaptic my > package manager. > If you have any idea of where this problem comes from, please, I'm > listening. > > Thanks for the help. > Johan Mazel > ------------------------------------------------------------------------ > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > ------------------------------------------------------------------------ > > _______________________________________________ > 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
I don't see this myself. Are you running the correct Python (not accidentally running Python2.4, for example)? Do you have a /usr/lib/python2.5/site-packages/matplotlib directory? What is the exact error message when you import pylab? Cheers, Mike Marjolaine Rouault wrote: > Hi, > > I am not managing to ge matplotlib to work with the new Ubuntu realease hardy 8.04. After I install the python-matplotlib package, I am not able to list my modules in the help() section and I can also not import pylab. As anyone ha that problem and found a solution? > > Thanks. > > > > -- Michael Droettboom Science Software Branch Operations and Engineering Division Space Telescope Science Institute Operated by AURA for NASA
Hi I'm trying to install the 0.91.2 maintenance from the SVN on a Ubuntu 8.04 system. But I have an error about Tkinter during the checkin of dependancies : OPTIONAL BACKEND DEPENDENCIES libpng: 1.2.15beta5 Tkinter: no * Tkinter present, but header files are not found. * You may need to install development packages. For all the other dependancies, there is no problem at all. When I type python setup.py build, I got this error at the end : gcc: error trying to exec 'cc1plus': execvp: Aucun fichier ou dossier de ce type gcc: error trying to exec 'cc1plus': execvp: Aucun fichier ou dossier de ce type error: Command "gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I/usr/include/freetype2 -I/usr/local/include -I/usr/include -I. -I/usr/include/python2.5 -c CXX/cxx_extensions.cxx -o build/temp.linux-i686-2.5/CXX/cxx_extensions.o" failed with exit status 1 I'm guessing that the building error is directly related to the fact that I don't have the developpement package for tkinter. The main problem is that I can't find this package through Synaptic my package manager. If you have any idea of where this problem comes from, please, I'm listening. Thanks for the help. Johan Mazel
On Friday 30 May 2008 6:05:05 am kei...@bt... wrote: > I got this message: > > /usr/lib64/python2.5/site-packages/matplotlib/numerix/__init__.py:65: > > DeprecationWarning: numarray use as a numerix backed for matplotlib is > > deprecated > > What does "numerix backed" mean? Its a typo, it should read backend.
I got this message: > /usr/lib64/python2.5/site-packages/matplotlib/numerix/__init__.py:65: DeprecationWarning: numarray use as a numerix backed for matplotlib is deprecated What does "numerix backed" mean? Keith
Hi, I'd like to plot three scatter plots on the same figure, each with different symbols. Associated to these scatter plots, I'd like to put a legend. For the moment, the legend is based on one of the color of the associated scatter plot, but it is not relevant. Indeed, the colors are not identical inside one scatter plot, so the displayed color is discriminating. So I'd like to display the symbol (circle, square, cross, ...) instead of the color rectangle. Is it possible ? Thanks, Matthieu -- French PhD student Website : http://matthieu-brucher.developpez.com/ Blogs : http://matt.eifelle.com and http://blog.developpez.com/?blog=92 LinkedIn : http://www.linkedin.com/in/matthieubrucher
Hi, I am not managing to ge matplotlib to work with the new Ubuntu realease hardy 8.04. After I install the python-matplotlib package, I am not able to list my modules in the help() section and I can also not import pylab. As anyone ha that problem and found a solution? Thanks. -- This message is subject to the CSIR's copyright terms and conditions, e-mail legal notice, and implemented Open Document Format (ODF) standard. The full disclaimer details can be found at http://www.csir.co.za/disclaimer.html. This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. MailScanner thanks Transtec Computers for their support.
Thanks for that, I already have a button to enable picking mode and the original post shows that I have already tried the copy background/restore/blit, however I must have been doing something wrong. Pehaps you can point out what the issue was ro where I was going wrong John Hunter-4 wrote: > > On Wed, May 28, 2008 at 7:10 AM, New2Python <new...@li...> > wrote: > >> One issue that I find now is that the removed marker is not redrawn as >> removed, in other words, all the original markers remain drawn whether or >> not the datapoints exist in the array. How can I remove the marker I >> don't >> want anymore withought doing a clf() call because I can have over 300,000 >> datapoints and the redraw will take ages > > You will need to do some extra work here. I would have a "picking > mode" which is enabled by a key-stroke or button press, and when the > mode is enabled, you can copy the background using the > copy_background/restore region/blit techniques discussed at > http://www.scipy.org/Cookbook/Matplotlib/Animations. Then you can > mark your vertices and just draw the vertex marker line over the > background. Alternatively, you can use the clipped line approach I > pointed you to in my prior post to only plot the vertices in the > viewport. You will have to do a little bookkeeping to translate the > marked vertices in the viewport to the ones in the original dataset. > > Unfortunately, I don't have time to write the complete example right > now... > > JDH > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Matplotlib-users mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users > > -- View this message in context: http://www.nabble.com/Plotting-single-marker-point-at-zoomed-level-tp17470649p17550943.html Sent from the matplotlib - users mailing list archive at Nabble.com.
Never mind. I think this may have had to do with something else not being installed correctly. This config (numpy 1.10, apple python 2.5.1, mpl 0.91.2, /usr/X11 png and freetype) works fine though. On May 29, 2008, at 9:59 PM, Alan G Isaac wrote: > On 2008年5月29日, Gideon Simpson apparently wrote: >> Using apple python, numpy 1.10, I get the following error in >> matplotlib 0.91.2: > > I do not see this. I have the > same mpl and np version, > and same Python version, > but I'm on Windows. > > fwiw, > Alan Isaac > > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Matplotlib-users mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users
On 2008年5月29日, Gideon Simpson apparently wrote: > Using apple python, numpy 1.10, I get the following error in > matplotlib 0.91.2: I do not see this. I have the same mpl and np version, and same Python version, but I'm on Windows. fwiw, Alan Isaac
Using apple python, numpy 1.10, I get the following error in matplotlib 0.91.2: Python 2.5.1 (r251:54863, Jan 17 2008, 19:35:17) [GCC 4.0.1 (Apple Inc. build 5465)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> from pylab import * >>> plot([1,2,3,4]) [<matplotlib.lines.Line2D object at 0x2be5d70>] >>> show() Traceback (most recent call last): File "/opt/lib/python2.5/site-packages/matplotlib/backends/ backend_wx.py", line 1021, in _onPaint self.draw(repaint=False) File "/opt/lib/python2.5/site-packages/matplotlib/backends/ backend_wxagg.py", line 60, in draw FigureCanvasAgg.draw(self) File "/opt/lib/python2.5/site-packages/matplotlib/backends/ backend_agg.py", line 254, in draw self.renderer = self.get_renderer() File "/opt/lib/python2.5/site-packages/matplotlib/backends/ backend_agg.py", line 265, in get_renderer self.renderer = RendererAgg(w, h, self.figure.dpi) File "/opt/lib/python2.5/site-packages/matplotlib/backends/ backend_agg.py", line 66, in __init__ self.draw_path_collection = self._renderer.draw_path_collection AttributeError: draw_path_collection Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/opt/lib/python2.5/site-packages/matplotlib/backends/ backend_wx.py", line 1187, in show figwin.canvas.draw() File "/opt/lib/python2.5/site-packages/matplotlib/backends/ backend_wxagg.py", line 60, in draw FigureCanvasAgg.draw(self) File "/opt/lib/python2.5/site-packages/matplotlib/backends/ backend_agg.py", line 254, in draw self.renderer = self.get_renderer() File "/opt/lib/python2.5/site-packages/matplotlib/backends/ backend_agg.py", line 265, in get_renderer self.renderer = RendererAgg(w, h, self.figure.dpi) File "/opt/lib/python2.5/site-packages/matplotlib/backends/ backend_agg.py", line 66, in __init__ self.draw_path_collection = self._renderer.draw_path_collection AttributeError: draw_path_collection >>> Terminated -gideon
Torsten Hahn wrote: > Hello, > > i am having some trouble to make the pictures for my thesis look > good. I could not figure out, how i can change the space between the > axis and the tick-labels in my plots. > > Can anyone help me? There is an rcParams setting for this. You can set it in the matplotlibrc file, or directly in the script. For example, from matplotlib import pyplot as plt plt.rc(('xtick.major', 'ytick.major'), pad=20) plt.plot([1,2,3]) plt.show() (If this fails because you don't have pyplot--you are using an older version of mpl--change the import line to "import pylab as plt".) Eric > > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Matplotlib-users mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Hello, i am having some trouble to make the pictures for my thesis look good. I could not figure out, how i can change the space between the axis and the tick-labels in my plots. Can anyone help me?
cyclopsvs wrote: > Hello matplotlib users, > > I just recently started using the matplot library for generating simple > graphs instead of using R. The problem i'm experiencing are the following. > > On my work station i had to enable x11 forwarding to be able to run a script > generating plots on a server . The problem now is that my own computer is a > mac and normally when i use the x11 app to connect to a server x forwarding > is suited to run all script that use a x11 window. If you don't need interactive plots, you might consider doing it the old-fashioned way: saving the plots as png files in batch mode and displaying with firefox. import matplotlib matplotlib.use('Agg') #non-interacive back-end import matplotlib.pyplot as plt .... plt.savefig('/home/me/public_html/plots/thefile.png',dpi=100) We've automated this so the python script makes the plots, builds an image gallery with thumbnails and then copies the plots off our cluster (which doesn't mount the web server directory) and onto the web server using rsync. For example http://clouds.eos.ubc.ca/~phil/savefigs/E/ -- Phil
Eric Firing wrote: > _backend_gdk.c and nxutils.c both call into the numpy C API; maybe some > c++ code does also. It is not entirely clear to me whether 1.1 is > sufficiently binary-compatible that this is safe. > The C API did not change (with the possible exception of additions). I'd be really surprised if this is an issue -- the numpy devs worked to make sure there would be no breakage at the C API level. (And even if it did change, as it might one day in the future -- numpy 2? -- there's a check that happens at numpy load time, during import_array(), that checks whether the version of numpy you compiled with is the version you're loading now and raises an exception if it's not. So, the old nightmares of numeric and numarray possibly being run against binary incompatible versions are a thing of the past. This check actually saved quite a few headaches during the runup to numpy 1.0, when there were a number of C API changes happening in quick succession as Travis worked to get it right. That machinery is still in there.)
On Thu, May 29, 2008 at 9:40 AM, cyclopsvs <men...@gm...> wrote: > Does anyone had some experience with using apache and matplot lib together, > if so could you share the experiences you had installing everything. > > I'd like to know before i continue developing these features of the > application. matplotlib renders to a number of different targets, eg user interfaces, PNG, or postscript. The user interfaces require an x11 connection, but the image generation backends do not. Thjese are the ones you will want to use with apache, django, etc. What you need to do is set your default backend to "Agg" in your matplotlibrc file. This file resides in site-packages/matplotlib/mpl-data and can be moved into either HOME/..matplotlib or your working directory (eg where your image generating code lives). Once this is done mpl will generate PNGs w/o an X11 connection. http://www.scipy.org/Cookbook/Matplotlib/Django has some information on using mpl with django, but it is bit out of date because you no longer need PIL to save to a file handle. mpl can now save PNG directly to a file handle