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
(23) |
2
(13) |
3
(1) |
4
(17) |
5
(3) |
6
(10) |
7
(7) |
8
(7) |
9
(4) |
10
(13) |
11
(20) |
12
(13) |
13
(17) |
14
(20) |
15
(14) |
16
(3) |
17
(5) |
18
(15) |
19
(18) |
20
(14) |
21
(2) |
22
(13) |
23
(8) |
24
(3) |
25
(7) |
26
(10) |
27
(17) |
28
(20) |
29
(42) |
|
From: Michael D. <md...@st...> - 2008-02-29 13:55:30
|
Davide Cellai wrote: > That answers my questions. > > Thank you very much, > > Davide > > On Thu, Feb 28, 2008 at 8:08 PM, Steve Schmerler <el...@gm... > <mailto:el...@gm...>> wrote: > > On Thu, Feb 28, 2008 at 05:40:00PM +0000, Davide Cellai wrote: > > 1. To begin with, I've copied the lines: > > > > deb http://anakonda.altervista.org/debian packages/ > > deb-src http://anakonda.altervista.org/debian sources/ > > > > I'm sure matplotlib is in Ubuntu's official repos by now [1]. Same > for Debian. > > > 2. When I try to run some examples I have downloaded from the > website, the > > program complains about modules. For example, if I try > > python hline_demo.py > > > > Ubuntu's latest version is 0.90.1. According to [2], the pyplot > module was introduced with 0.91.2. Right -- but the examples from 0.90.1 should still work for you if you want to use the 0.90.1 packages in the Ubuntu or Debian repositories. You can download the (older) examples as part of the source distribution from here: http://sourceforge.net/project/showfiles.php?group_id=80706 Cheers, Mike -- Michael Droettboom Science Software Branch Operations and Engineering Division Space Telescope Science Institute Operated by AURA for NASA |
From: Michael D. <md...@st...> - 2008-02-29 13:53:00
|
Can you describe how you are changing the locale? It could be that Qt is reverting it to your system value every time a new figure window is created. Maybe you could set it somehow "deeper", like in an environment variable. Cheers, Mike Stephane Raynaud wrote: > Hi, > > when I set the locale to a value (let's say 'en_US.UTF-8' different > from my that of environement ('fr_FR'), it is automatically switched > back to 'fr_FR.UTF-8' after the first figure is created when the > backend is dervied from Qt (no problem with Agg only). > > Any idea how to prevent from that? > -- Michael Droettboom Science Software Branch Operations and Engineering Division Space Telescope Science Institute Operated by AURA for NASA |
From: Alan G I. <ai...@am...> - 2008-02-29 13:48:41
|
On Fri, 29 Feb 2008, Matthieu Brucher apparently wrote: > Sorry to raise this issue again, but some has a clue ? Didn't see this earlier and you did not attach the picture this time, but I've seen cut-off labels in some settings when there are negative coordinates in the EPS bounding box. (Not always honored.) Are there? Anyway, it is almost surely a bounding box problem. I think you can use eps2eps to get a new bounding box. Cheers, Alan Isaac |
From: Matthieu B. <mat...@gm...> - 2008-02-29 13:25:40
|
Hi, Sorry to raise this issue again, but some has a clue ? Matthieu 2008/2/4, Matthieu Brucher <mat...@gm...>: > > Hi, > > I'm trying to change the y labels on the attached picture > (cout_it_459_zoom.eps). I modified the labels explicitly, but they still are > outside the picture :( > Is it possible to force a constant multiplication factor like in the > second image (cout_it_459.eps) ? > > 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 > -- 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 |
From: Forrest S. B. <for...@gm...> - 2008-02-29 12:13:33
|
Well, I want a way that I can use some function or an option/parameter of a function to do that. The code I am using to plot is like this: x = range(0,len(data)); lines = plot(x, data); setp(lines, linewidth=0.5) axis('tight') grid(True); xlabel('sampling points'); ylabel('quantilized steps'); title(sys.argv[1][:-4]); savefig('eps/'+sys.argv[1][:-4]+'.eps') savefig('png/'+sys.argv[1][:-4]+'.png') Cheers, Forrest On Fri, Feb 29, 2008 at 5:53 AM, Alan G Isaac <ai...@am...> wrote: > On Fri, 29 Feb 2008, Forrest Sheng Bao apparently wrote: > > I wanna know how to change the aspect of my > > plot in my program. > > Call set_aspect on a axes instance; then call apply_aspect. > > hth, > 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 > -- Forrest Sheng Bao Ph.D. student, Dept. of Computer Science M.Sc. student, Dept. of Electrical & Computer Engineering Texas Tech University, USA http://fsbao.net 1-806-577-4592 Forrest is an equal opportunity Email sender. 1. You are encouraged to use the language you prefer. Beyond English, I can also read traditional/simplified Chinese and a bit German. 2. I will only send you files that can be opened by free or open source software. |
From: Alan G I. <ai...@am...> - 2008-02-29 11:51:27
|
On Fri, 29 Feb 2008, Forrest Sheng Bao apparently wrote: > I wanna know how to change the aspect of my > plot in my program. Call set_aspect on a axes instance; then call apply_aspect. hth, Alan Isaac |
From: Alan G I. <ai...@am...> - 2008-02-29 11:36:48
|
I think I recall that eps2eps can reset your bounding box, if that's the problem. http://www.linuxcommand.org/man_pages/eps2eps1.html Cheers, Alan Isaac |
From: Davide C. <da...@fi...> - 2008-02-29 10:00:05
|
That answers my questions. Thank you very much, Davide On Thu, Feb 28, 2008 at 8:08 PM, Steve Schmerler <el...@gm...> wrote: > On Thu, Feb 28, 2008 at 05:40:00PM +0000, Davide Cellai wrote: > > 1. To begin with, I've copied the lines: > > > > deb http://anakonda.altervista.org/debian packages/ > > deb-src http://anakonda.altervista.org/debian sources/ > > > > I'm sure matplotlib is in Ubuntu's official repos by now [1]. Same for > Debian. > > > 2. When I try to run some examples I have downloaded from the website, > the > > program complains about modules. For example, if I try > > python hline_demo.py > > > > Ubuntu's latest version is 0.90.1. According to [2], the pyplot > module was introduced with 0.91.2. > > [1] > http://packages.ubuntu.com/search?keywords=matplotlib&searchon=names&suite=all§ion=all > [2] http://matplotlib.sourceforge.net/whats_new.html > > cheers, > steve > > ------------------------------------------------------------------------- > 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 > |
From: Forrest S. B. <for...@gm...> - 2008-02-29 09:10:28
|
Hi guys, I am quite new to matplotlib. I wanna know how to change the aspect of my plot in my program. I don't wanna change it by toolbar coz there are thousands of data that I can't change them one by one by myself. Thanks, Forrest -- Forrest Sheng Bao Ph.D. student, Dept. of Computer Science M.Sc. student, Dept. of Electrical & Computer Engineering Texas Tech University, USA http://fsbao.net 1-806-577-4592 Forrest is an equal opportunity Email sender. 1. You are encouraged to use the language you prefer. Beyond English, I can also read traditional/simplified Chinese and a bit German. 2. I will only send you files that can be opened by free or open source software. |
From: Michael H. <mh...@us...> - 2008-02-29 02:39:13
|
Does anyone know of a way of preventing the generation of extra whitespace around the edge of a figure? The code sample below demonstrates the problem I'm having - I've tried postprocessing the postscript output with ImageMagick's "mogrify -trim", but unfortunately it makes it into a raster image in the process, and I really need the output to stay in vector postscript. --------------------------------------------------------------- #!/usr/bin/python from matplotlib.toolkits.basemap import Basemap from pylab import * clat = 21.813100 clon = 120.529800 xmin=117.629800 ymin=19.079100 xmax=123.546467 ymax=24.579100 bounds = [xmin,xmax,ymin,ymax] figwidth = 5.4 dx = bounds[1] - bounds[0] dy = bounds[3] - bounds[2] clat = bounds[2] + (bounds[3] - bounds[2])/2 clon = bounds[0] + (bounds[1] - bounds[0])/2 aspect = dy/dx figheight = aspect * figwidth fig = figure(figsize=(figwidth,figheight)) ax1 = fig.add_axes([0,0,0.98,0.98]) m = Basemap(llcrnrlon=xmin,llcrnrlat=ymin,urcrnrlon=xmax,urcrnrlat=ymax, rsphere=(6378137.00,6356752.3142), resolution='h',projection='merc', lat_ts=clat) water_color = [.47,.60,.81] m.drawrivers(color=water_color) m.drawcoastlines(linewidth=0.1) #draw inset map ax2 = fig.add_axes((0.1,0.1,0.25,0.25)) map = Basemap(resolution='l', projection='ortho', lon_0=clon,lat_0=clat,ax=ax2) print 'map created.' map.drawcountries(linewidth=0.1,color=[0.2,0.2,0.2]) map.drawcoastlines(linewidth=0.05,color=[0.2,0.2,0.2]) map.drawlsmask((230,230,230,255),(119,155,207,255)) meridians = arange(-180,210,30) parallels = arange(-90,120,30) map.drawmeridians(meridians,linewidth=0.1,dashes=[1,0],color= [0.2,0.2,0.2]) map.drawparallels(parallels,linewidth=0.1,dashes=[1,0],color= [0.2,0.2,0.2]) pcx,pcy = map(clon,clat) print 'Lat: %f, Lon: %f' % (clat,clon) map.plot(array([pcx]),array([pcy]),'rD',linewidth=2,markersize=5) map.drawmapboundary(color='k',linewidth=2.0) savefig('maptest.eps') close('all') --------------------------------------------------------------- ------------------------------------------------------ Michael Hearne mh...@us... (303) 273-8620 USGS National Earthquake Information Center 1711 Illinois St. Golden CO 80401 Senior Software Engineer Synergetics, Inc. ------------------------------------------------------ |
From: darckense <dar...@fr...> - 2008-02-29 01:26:25
|
Thanks for your tip, it's work perfectly ! :-) |
From: Malte M. <Mal...@cs...> - 2008-02-29 01:03:51
|
Hi, Not that it helps you, but I have a created python2.4 egg. matplotlib-0.91.2-py2.4-macosx-10.4-fat.egg It is build against numpy-1.0.4 and with the TkAgg backend. Is there some way of contributing it to the larger community. Cheers, Malte Christopher Barker wrote: > Hi all, > > I notice that matplotlib 0.91.2 has been out for a bit. > > Has anyone built a binary that works with OS-X 10.4, MacPython python2.5? > > easy_install seems to find 0.91.1, but not 0.91.2 > > -Chris > > |
From: Jeff P. <jef...@ya...> - 2008-02-29 00:58:24
|
Hello, I just upgraded to the most recent version of matplotlib. I'm using wxagg backend for a wxapp. after upgrading my toolbar didn't work anymore and I was getting an error in the method 'zoomx' in class NavigationToolbarWx in backend_wx.py. I noticed that zoomx, zoomy, panx, and pany all had the same error. the error is that the axes have no attribute zoomx, zoomy, panx, pany. some quick digging around fixed the problem. it appears this should be as shown below. this seems to work well now. please let me know if this is incorrect.Thanks! def panx(self, direction): DEBUG_MSG("panx()", 1, self) for a in self._active: a.xaxis.pan(direction) self.canvas.draw() self.canvas.Refresh(eraseBackground=False) def pany(self, direction): DEBUG_MSG("pany()", 1, self) for a in self._active: a.yaxis.pan(direction) self.canvas.draw() self.canvas.Refresh(eraseBackground=False) def zoomx(self, in_out): DEBUG_MSG("zoomx()", 1, self) for a in self._active: a.xaxis.zoom(in_out) self.canvas.draw() self.canvas.Refresh(eraseBackground=False) def zoomy(self, in_out): DEBUG_MSG("zoomy()", 1, self) for a in self._active: a.yaxis.zoom(in_out) self.canvas.draw() self.canvas.Refresh(eraseBackground=False) Jeff --------------------------------- Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now. |
From: Christopher B. <Chr...@no...> - 2008-02-29 00:57:04
|
Hi all, I notice that matplotlib 0.91.2 has been out for a bit. Has anyone built a binary that works with OS-X 10.4, MacPython python2.5? easy_install seems to find 0.91.1, but not 0.91.2 -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: Rob H. <he...@ta...> - 2008-02-29 00:44:24
|
On Feb 28, 2008, at 10:23 AM, yves frederix wrote: > On Thu, Feb 28, 2008 at 9:33 AM, darckense <dar...@fr...> wrote: > > I asked the same question some time ago. The trick is setting the > linewidth to zero: > > from pylab import * > .... > lg = legend() > lg.get_frame().set_linewidth(0) > > Maybe there are other ways, but this one works for me. Another way: plot(random.rand(10), label='foo') l = legend() l.draw_frame(False) draw() Note, this takes away the white background of the legend axis as well. This may or may not be desirable. -Rob ---- Rob Hetland, Associate Professor Dept. of Oceanography, Texas A&M University http://pong.tamu.edu/~rob phone: 979-458-0096, fax: 979-845-6331 |
From: Stephen G. <ste...@op...> - 2008-02-29 00:29:47
|
Hi Olusina, I guess you have specific reason to prefer to use python2.4 and not install matplotlib into python2.5 I also have 2 versions installed on my computer, .. only one will work directly from the command line, the first one found on the path. however whenever I want to run a test against Version2.4 I can do that by calling the interpretor directly and pass the script name from command prompt c:\python24\python myscript.py or if you want to run the interpretor interactively D:\> D:\>c:\python24\python Python 2.4.3 (#69, Mar 29 2006, 17:35:34) [MSC v.1310 32 bit (Intel)] on win32 Type "help", "copyright", "credits" or "license" for more information. >>> ^Z D:\>c:\python25\python Python 2.5 (r25:51908, Sep 19 2006, 09:52:17) [MSC v.1310 32 bit (Intel)] on win32 Type "help", "copyright", "credits" or "license" for more information. >>> ^Z Hope this helps Steve olusina eric wrote: > I am a new user of Python and need to also use matplotlib but I am > having some problems which I hope somebody will be able to help me with. > I have two versions of Python on my laptop that runs on Windows XP. > Version 2.4 installed in a folder named python 24 and I also have > VisIt which has associated with it Python Version 2.5. I installed > matplotlib for version 2.4 on my laptop and it detected the Python > version 2.4 and installed itself in the right folder. However I can > only use Python 2.4 when I am in this folder (c:\python24\). When I > call python from any other folder is loads the 2.5 version. > For the other version of Python (the 2.5 version) I can call this > version from any directory but when I installed matplotlib for Python > version 2.5, it will not import pylab even though I can call this > version of Python from any folder. > The problem I have is I have a working folder with subfolders and I > need to use pylab for some plots. If I call python from this folder it > loads 2.5, which will not import pylab. I put the working folder in > c:\python24\ and it still calls 2.5 version. > How can I get my system to call python 2.4 from any folder > Or > Get python 2.5 to import pylab. > I have put the path for both versions of python as shown below: > Path to Python version 2.5: > C:\Program Files\LLNL\VisIt 1.6.1\Python\Lib;C:\Program > Files\LLNL\VisIt 1.6.1\Python\DLLs;C:\Program Files\LLNL\VisIt > 1.6.1\Python\Lib\lib-tk > > Path to Python version 2.4: > C:\Python24\Lib;C:\Python24\DLLs;C:\Python24\Lib\lib-tk > > Thanks for your help > Eric > > ------------------------------------------------------------------------ > Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try > it now. > <http://us.rd.yahoo.com/evt=51733/*http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ%20> > > ------------------------------------------------------------------------ |
From: olusina e. <eri...@ya...> - 2008-02-28 23:00:34
|
I am a new user of Python and need to also use matplotlib but I am having some problems which I hope somebody will be able to help me with. I have two versions of Python on my laptop that runs on Windows XP. Version 2.4 installed in a folder named python 24 and I also have VisIt which has associated with it Python Version 2.5. I installed matplotlib for version 2.4 on my laptop and it detected the Python version 2.4 and installed itself in the right folder. However I can only use Python 2.4 when I am in this folder (c:\python24\). When I call python from any other folder is loads the 2.5 version. For the other version of Python (the 2.5 version) I can call this version from any directory but when I installed matplotlib for Python version 2.5, it will not import pylab even though I can call this version of Python from any folder. The problem I have is I have a working folder with subfolders and I need to use pylab for some plots. If I call python from this folder it loads 2.5, which will not import pylab. I put the working folder in c:\python24\ and it still calls 2.5 version. How can I get my system to call python 2.4 from any folder Or Get python 2.5 to import pylab. I have put the path for both versions of python as shown below: Path to Python version 2.5: C:\Program Files\LLNL\VisIt 1.6.1\Python\Lib;C:\Program Files\LLNL\VisIt 1.6.1\Python\DLLs;C:\Program Files\LLNL\VisIt 1.6.1\Python\Lib\lib-tk Path to Python version 2.4: C:\Python24\Lib;C:\Python24\DLLs;C:\Python24\Lib\lib-tk Thanks for your help Eric --------------------------------- Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now. |
From: Steve S. <el...@gm...> - 2008-02-28 20:08:52
|
On Thu, Feb 28, 2008 at 05:40:00PM +0000, Davide Cellai wrote: > 1. To begin with, I've copied the lines: > > deb http://anakonda.altervista.org/debian packages/ > deb-src http://anakonda.altervista.org/debian sources/ > I'm sure matplotlib is in Ubuntu's official repos by now [1]. Same for Debian. > 2. When I try to run some examples I have downloaded from the website, the > program complains about modules. For example, if I try > python hline_demo.py > Ubuntu's latest version is 0.90.1. According to [2], the pyplot module was introduced with 0.91.2. [1] http://packages.ubuntu.com/search?keywords=matplotlib&searchon=names&suite=all§ion=all [2] http://matplotlib.sourceforge.net/whats_new.html cheers, steve |
From: chombee <ch...@ne...> - 2008-02-28 19:48:54
|
I'm making some scatter plots which will probably end up getting printed in black and white. I'm actually drawing two scatter plots onto one axes. So to the distinguish between the two plots I've had them use different marker shapes and different shades of grey. The problem is that the legend displays only a rectangular block indicating the color for each plot. Is there a way to get the marker shapes of scatter plots into the legend? Thanks |
From: Davide C. <da...@fi...> - 2008-02-28 17:40:05
|
Hi there, Very basic questions. I have installed matplotlib by Synaptic on Ubuntu and I'm trying to get the examples work (without much success!). 1. To begin with, I've copied the lines: deb http://anakonda.altervista.org/debian packages/ deb-src http://anakonda.altervista.org/debian sources/ into /etc/apt/sources.list, but when I try to update I get errors like this: Failed to fetch http://anakonda.altervista.org/debian/packages/Packages.gz 302 Moved Temporarily [IP: 193.1.172.188 8484] 2. When I try to run some examples I have downloaded from the website, the program complains about modules. For example, if I try python hline_demo.py I get: Traceback (most recent call last): File "hline_demo.py", line 2, in <module> from matplotlib.pyplot import * ImportError: No module named pyplot Can anybody help here? Cheers, Davide |
From: Stephane R. <ste...@gm...> - 2008-02-28 15:54:42
|
Hi, when I set the locale to a value (let's say 'en_US.UTF-8' different from my that of environement ('fr_FR'), it is automatically switched back to 'fr_FR.UTF-8' after the first figure is created when the backend is dervied from Qt (no problem with Agg only). Any idea how to prevent from that? -- Stephane Raynaud |
From: chombee <ch...@ne...> - 2008-02-28 15:16:19
|
Okay I see what's going on now. The output from axis('tight') specifies the limits of the two axes: > (-0.33718689788053952, > 7.0809248554913298, > -0.34782608695652173, > 7.3043478260869561) As you can see it's actually setting negative minimum limits for both axes, which is why the axes are offset from the (0,0) position. The clue to this behaviour is in the axis function docstring: > axis('auto') or 'normal' (deprecated) restores default behavior; > axis limits are automatically scaled to make the data fit > comfortably within the plot box. and > axis('tight') changes x and y axis limits such that all data is > shown. If all data is already shown, it will move it to the center > of the figure without modifying (xmax-xmin) or (ymax-ymin). Note > this is slightly different than in matlab. Neither of those will necessarily set the xmin and ymin of the axes to 0. It depends on what data you've plotted before calling axis(). I found that if I call axis('tight') before plotting anything (i.e. before calling plot or scatter) then the axes xmin and ymin do get set to 0, but this is because at the time of calling axis('tight') there is no data to show. If you call axis('tight') after plotting data then (contrary to the docstring) it seems to adjust the axes so that all data is shown **and none of it is too close to the axes**, there is some degree of padding, although it is tighter than with axis('auto'). I'm not sure about this 'auto' and 'tight' behaviour. To my eye the corner formed by the x and y axes at the bottom-left signifies (0,0), unless otherwise stated. The padding applied by 'normal' and 'tight' breaks this expectation. In my case, when I don't have any numerical labels on the axes to show that they begin at (-0.34,-0.35), I should probably make sure that they begin at (0,0). You can explicitly set the axes limits with axis(xmin=0,ymin=0). |
From: John H. <jd...@gm...> - 2008-02-28 15:09:40
|
On Thu, Feb 28, 2008 at 8:51 AM, chombee <ch...@ne...> wrote: > That did improve the situation slightly, but it still looks like > something odd is going on. It's clearer if I actually draw the axis > frame. These two screenshots show the graphic before and after calling > axis('tight'): When did you call axis('tight')? It should be after all of your other plotting commands. JDH |
From: chombee <ch...@ne...> - 2008-02-28 14:55:37
|
On Thu, 2008-02-28 at 14:19 +0100, Bernhard Voigt wrote: > > How do I get rid of the redundant ticks on the top and right > edges? > > pylab.gca().get_xaxis().set_ticks_postion('bottom') > > same for yaxis That worked, thanks! > Why is there such a big gap between the plot itself and the > axes ticks? > > did you try pylab.axis('tight') That did improve the situation slightly, but it still looks like something odd is going on. It's clearer if I actually draw the axis frame. These two screenshots show the graphic before and after calling axis('tight'): http://img87.imageshack.us/img87/7352/beforetightku8.png http://img403.imageshack.us/img403/9506/aftertightyk5.png As you can see the data moves a little closer to the axes when I call axis('tight'). But that dashed line starts at (0,0), it is plotted with the simple command: plot([0,7],[0,7],color='#999999',linestyle='--') and yet the beginning of the line is nowhere near either axis, even after calling axis('tight'). So something's up. Here's the output of axis('tight'): (-0.33718689788053952, 7.0809248554913298, -0.34782608695652173, 7.3043478260869561) And here's the source code that produced the graphic in the first place: rc('xtick.major',size=8) rc('xtick',direction='out') rc('ytick.major',size=8) rc('ytick',direction='out') fig = figure(facecolor='white' ) ax = axes(frameon=True) ax.get_xaxis().set_ticks_position('bottom') ax.get_yaxis().set_ticks_position('left') title('Comparison of frequency of cards per function in week one and week two') s = scatter(functions.proportioncardsweek1,functions.proportioncardsweek2,marker='s',color='g') plot([0,7],[0,7],color='#999999',linestyle='--') xlabel('Proportion of total number of cards, week 1') ylabel('Proportion of total number of cards, week 2') xticks(functions.proportioncardsweek1,' '*len(functions.proportioncardsweek1)) yticks(functions.proportioncardsweek2,' '*len(functions.proportioncardsweek2)) for function,x,y in map(None,functions.shortnames,functions.proportioncardsweek1,functions.proportioncardsweek2): annotate(function,xy=(x,y),size=8) |
From: Pierre GM <pgm...@gm...> - 2008-02-28 14:07:57
|
Michael, Give scikits.timeseries a try. It's a package designed to handle time series, with or without missing data or dates, for which matplotlib functions are also available. http://scipy.org/scipy/scikits/wiki/TimeSeries The problem you're refering to (missing dates) is trivial with this package. Let me know if you have any problem with it. Please note that plotting with hourly frequency is still experimental (and we need some feedback). HIH P. |