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
(12) |
2
(13) |
3
(14) |
4
(9) |
5
(9) |
6
(22) |
7
(17) |
8
(16) |
9
(19) |
10
(17) |
11
(6) |
12
|
13
(20) |
14
(21) |
15
(20) |
16
(10) |
17
(14) |
18
(3) |
19
(3) |
20
(12) |
21
(22) |
22
(26) |
23
(31) |
24
(26) |
25
(9) |
26
(4) |
27
(33) |
28
(15) |
29
(37) |
30
(26) |
|
|
From: Bala s. <bal...@gm...> - 2009-04-27 13:18:09
|
Hi, Version informations Python 2.5.2 IPython 0.8.4 matplotlib 0.98.1 backend GTKAgg Running on Fedora10 Bala On Mon, Apr 27, 2009 at 2:36 PM, Sandro Tosi <mo...@de...> wrote: > Hi Bala, > > On Mon, Apr 27, 2009 at 13:40, Bala subramanian > <bal...@gm...> wrote: > > Friends, > > I started pylab with ipython -pylab > > I think it would help if you can also specify what version of ipython > and matplotlib you're using, as long as what backend is configured to > be used. > > > After some time, i did > > > > In [21]: import matplotlib > > Warning: Timeout for mainloop thread exceeded > > switching to nonthreaded mode (until mainloop wakes up again) > > > > Why this warning comes ? > > I think this is something related to the graphical backend used, or > maybe a mixture from the default one and the one set by hand in this > session. > > Regards, > -- > Sandro Tosi (aka morph, morpheus, matrixhasu) > My website: http://matrixhasu.altervista.org/ > Me at Debian: http://wiki.debian.org/SandroTosi > |
From: Juan F. <fi...@ya...> - 2009-04-27 12:50:23
|
Hi, I am trying to put a sphere (rather than circles or disks) as markers for a plot. I am a newbiew so I tried the poor man approach: I plotted several circles one over the other for each point to mimic a sphere (looking it from very far). It kind of worked, except that all are not exactly the same and they distort when I change the aspect ratio of the plot. I am attaching two figures to show what I mean. I looked around in the mailing list and searched all over the web but did not find nothing mentioned. Any help is appreciated. Regards, Juan |
From: Sandro T. <mo...@de...> - 2009-04-27 12:36:19
|
Hi Bala, On Mon, Apr 27, 2009 at 13:40, Bala subramanian <bal...@gm...> wrote: > Friends, > I started pylab with ipython -pylab I think it would help if you can also specify what version of ipython and matplotlib you're using, as long as what backend is configured to be used. > After some time, i did > > In [21]: import matplotlib > Warning: Timeout for mainloop thread exceeded > switching to nonthreaded mode (until mainloop wakes up again) > > Why this warning comes ? I think this is something related to the graphical backend used, or maybe a mixture from the default one and the one set by hand in this session. Regards, -- Sandro Tosi (aka morph, morpheus, matrixhasu) My website: http://matrixhasu.altervista.org/ Me at Debian: http://wiki.debian.org/SandroTosi |
From: Bala s. <bal...@gm...> - 2009-04-27 11:40:35
|
Friends, I started pylab with ipython -pylab After some time, i did In [21]: import matplotlib Warning: Timeout for mainloop thread exceeded switching to nonthreaded mode (until mainloop wakes up again) Why this warning comes ? Even when i exit with ctrl + d, the shell is still remaining. Thanks, Bala |
From: D2Hitman <j.m...@wa...> - 2009-04-27 11:07:06
|
Thanks both of you. Works nicely. I was also looking for line thickness, so: for l in ax.get_xticklines() + ax.get_yticklines(): l.set_markersize(10) l.set_markeredgewidth(10) Has a slightly blurry edge at that size, but does the job. Cheers, Jon. Matthias Michler wrote: > > Hi Jon, > > the dashed associated with each tick are actually line instances and > therefore > hold information about the used marker, markersize, color, ... > > For example you could do the following: > > import matplotlib.pyplot as plt > ax = plt.gca() # get the current axes > > for l in ax.get_xticklines() + ax.get_yticklines(): > l.set_markersize(10) > > plt.show() > > best regards Matthias > > On Monday 27 April 2009 12:15:24 D2Hitman wrote: >> I am looking to change the size/style of the tick markers. Not the labels >> associated with each tick, the dashes. How do i go about this? >> >> Cheers, >> >> Jon. > > > > ------------------------------------------------------------------------------ > Crystal Reports - New Free Runtime and 30 Day Trial > Check out the new simplified licensign option that enables unlimited > royalty-free distribution of the report engine for externally facing > server and web deployment. > http://p.sf.net/sfu/businessobjects > _______________________________________________ > Matplotlib-users mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users > > -- View this message in context: http://www.nabble.com/Ticks-tp23253405p23254032.html Sent from the matplotlib - users mailing list archive at Nabble.com. |
From: Sandro T. <mo...@de...> - 2009-04-27 10:32:38
|
On Mon, Apr 27, 2009 at 12:15, D2Hitman <j.m...@wa...> wrote: > I am looking to change the size/style of the tick markers. Not the labels > associated with each tick, the dashes. How do i go about this? There are several options in matplotlib config file (on Debian it's /etc/matplotlibrc, but you can have also a user specific one) you can use to configure the ticks style, for example: #xtick.major.size : 4 # major tick size in points #xtick.minor.size : 2 # minor tick size in points #xtick.major.pad : 4 # distance to major tick label in points #xtick.minor.pad : 4 # distance to the minor tick label in points #xtick.color : k # color of the tick labels #xtick.labelsize : medium # fontsize of the tick labels #xtick.direction : in # direction: in or out You can access them also with rcParam dictionary provided by matplotlib module. Regards, -- Sandro Tosi (aka morph, morpheus, matrixhasu) My website: http://matrixhasu.altervista.org/ Me at Debian: http://wiki.debian.org/SandroTosi |
From: D2Hitman <j.m...@wa...> - 2009-04-27 10:15:27
|
I am looking to change the size/style of the tick markers. Not the labels associated with each tick, the dashes. How do i go about this? Cheers, Jon. -- View this message in context: http://www.nabble.com/Ticks-tp23253405p23253405.html Sent from the matplotlib - users mailing list archive at Nabble.com. |
From: Gökhan S. <gok...@gm...> - 2009-04-26 22:41:22
|
Hello, Thanks for the pointer Bryan. I also seen Gael's tutorial ( http://gael-varoquaux.info/computers/traits_tutorial/index.html) To me, it seems much easier to use Traits, instead of learning WX or QT. They are still confusing to me, and seemingly Traits is there to help me implement what I have had in my mind for a while. Gökhan On Sun, Apr 26, 2009 at 2:52 AM, Bryan Cole <br...@co...> wrote: > > > I know wxPython or PyQt seems way to go on this issue. But (there is > > always this but :) there is Chaco on the Enthought side and with > > nicely and simply integration with Traits and Traits UI. > > > > Are there anybody in the group that design a similar tool for their > > scientific data analysis needs? Could I get some insight into this? > > Any recommendations or pointers? Why's and why not's? > > You can integrate matplotlib plots into a Traits app. I wrote this > recipe: > > http://www.scipy.org/Cookbook/EmbeddingInTraitsGUI > > Both Chaco and Matplotlib are excellent. If you want multiple > interactive elements in your plot (drag-able labels, cursors etc.), > Chaco is probably the best bet. However, for quick data-exploration > apps, I find matplotlib quicker to set up (it's defaults "just work", > whereas Chaco takes a bit more preparation). > > Either way, Traits is indispensable. > > BC > > > > > Thank you > > > > Gökhan > > > ------------------------------------------------------------------------------ > > Crystal Reports - New Free Runtime and 30 Day Trial > > Check out the new simplified licensign option that enables unlimited > > royalty-free distribution of the report engine for externally facing > > server and web deployment. > > http://p.sf.net/sfu/businessobjects > > _______________________________________________ Matplotlib-users mailing > list Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users > > > > > ------------------------------------------------------------------------------ > Crystal Reports - New Free Runtime and 30 Day Trial > Check out the new simplified licensign option that enables unlimited > royalty-free distribution of the report engine for externally facing > server and web deployment. > http://p.sf.net/sfu/businessobjects > _______________________________________________ > Matplotlib-users mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users > |
From: Kasper P. <kas...@ae...> - 2009-04-26 22:11:27
|
> However, my primary focus will be on Cairo and Qt backends. These are > widely used, allow for high quality output in various formats (PDF, > PNG and SVG being the big three) and are well tested. Ok, that sounds reasonable. > The lack of a C++/C library should not be a major issue. Python is > very well established in the fields that the library is likely to be > of most use (web, graphing, visualisation) I mentioned C++/C because I am interested in using it in my computer algebra system (http://www.aei.mpg.de/~peekas/cadabra), and its user interface is currently written in C++ using gtkmm. C++ is fairly widely spread in the scientific community too, in some fields much more than Python. Since the user base for a TeX typesetting library isn't particularly large (compared to other libraries), it's probably good to at least keep in mind that people might want to call this from a non-Python language (even though I will probably be tempted to convert my code to Python). In any case, having a Cairo backend will help. Cheers, Kasper |
From: Bryan C. <br...@co...> - 2009-04-26 07:53:05
|
> I know wxPython or PyQt seems way to go on this issue. But (there is > always this but :) there is Chaco on the Enthought side and with > nicely and simply integration with Traits and Traits UI. > > Are there anybody in the group that design a similar tool for their > scientific data analysis needs? Could I get some insight into this? > Any recommendations or pointers? Why's and why not's? You can integrate matplotlib plots into a Traits app. I wrote this recipe: http://www.scipy.org/Cookbook/EmbeddingInTraitsGUI Both Chaco and Matplotlib are excellent. If you want multiple interactive elements in your plot (drag-able labels, cursors etc.), Chaco is probably the best bet. However, for quick data-exploration apps, I find matplotlib quicker to set up (it's defaults "just work", whereas Chaco takes a bit more preparation). Either way, Traits is indispensable. BC > > Thank you > > Gökhan > ------------------------------------------------------------------------------ > Crystal Reports - New Free Runtime and 30 Day Trial > Check out the new simplified licensign option that enables unlimited > royalty-free distribution of the report engine for externally facing > server and web deployment. > http://p.sf.net/sfu/businessobjects > _______________________________________________ Matplotlib-users mailing list Mat...@li... https://lists.sourceforge.net/lists/listinfo/matplotlib-users |
From: Jouni K. S. <jk...@ik...> - 2009-04-26 06:14:41
|
wfpunch <bil...@gm...> writes: > I'm not clear on how to do the rotation of the font by the 45 degree angle > (as in the date mode) using just xticks. If there is some part to xticks > that would allow it I'd be pleased to hear it. Thanks. Add the rotation keyword argument: xticks(arange(5), ('Tom', 'Dick', 'Harry', 'Sally', 'Sue'), rotation=45) -- Jouni K. Seppänen http://www.iki.fi/jks |
From: wfpunch <bil...@gm...> - 2009-04-25 18:59:35
|
I'm not clear on how to do the rotation of the font by the 45 degree angle (as in the date mode) using just xticks. If there is some part to xticks that would allow it I'd be pleased to hear it. Thanks. Jouni K. Seppänen wrote: > > wfpunch <bil...@gm...> writes: > >> Is it possible to create an axis labe, much like done for dates, using >> arbitrary strings. For example, I'd like to plot word frequency where the >> x-axis labels are the words and the y-axis the frequency. > > Does xticks do what you want? > > -- > Jouni K. Seppänen > http://www.iki.fi/jks > > > ------------------------------------------------------------------------------ > Crystal Reports - New Free Runtime and 30 Day Trial > Check out the new simplified licensign option that enables unlimited > royalty-free distribution of the report engine for externally facing > server and web deployment. > http://p.sf.net/sfu/businessobjects > _______________________________________________ > Matplotlib-users mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users > > -- View this message in context: http://www.nabble.com/label-arbitrary-strings-on-xaxis-as-in-date-mode-tp23225088p23235353.html Sent from the matplotlib - users mailing list archive at Nabble.com. |
From: Jouni K. S. <jk...@ik...> - 2009-04-25 17:44:23
|
wfpunch <bil...@gm...> writes: > Is it possible to create an axis labe, much like done for dates, using > arbitrary strings. For example, I'd like to plot word frequency where the > x-axis labels are the words and the y-axis the frequency. Does xticks do what you want? -- Jouni K. Seppänen http://www.iki.fi/jks |
From: Adam G. <ada...@co...> - 2009-04-25 16:38:09
|
A 10000x10000 array reproduces the error: milkyway /data/glimpseii $ gdb /usr/local/python/bin/python GNU gdb Red Hat Linux (6.3.0.0-1.159.el4rh) Copyright 2004 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type "show copying" to see the conditions. There is absolutely no warranty for GDB. Type "show warranty" for details. This GDB was configured as "x86_64-redhat-linux-gnu"...Using host libthread_db library "/lib64/tls/libthread_db.so.1". (gdb) run Starting program: /usr/local/python/bin/python [Thread debugging using libthread_db enabled] [New Thread 182900715072 (LWP 19947)] Python 2.5 (r25:51908, Dec 22 2006, 16:08:43) [GCC 3.4.6 20060404 (Red Hat 3.4.6-3)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> from pylab import * >>> x=rand(10000,10000) >>> imshow(x) <matplotlib.image.AxesImage object at 0x2a9f532390> >>> show() Program received signal SIGSEGV, Segmentation fault. [Switching to Thread 182900715072 (LWP 19947)] 0x0000002a9eac7ab5 in _image_module::fromarray (this=Variable "this" is not available. ) at src/image.cpp:872 872 src/image.cpp: No such file or directory. in src/image.cpp Current language: auto; currently c++ (gdb) > Could you try and create an image using random data that is the same > dimensions and datatype as the fits data you are using htat replicates the > segfault, so we can try and reproduce the error as well as add it to our > test suite? > > Thanks > JDH > > > |
From: Troels K. J. <tkj...@gm...> - 2009-04-25 15:47:53
|
Hi It could be that you just have to much data for the stack. You can see/set your stack size with ulimit -s (on linux/solaris at least). Try to set it to unlimited: ulimit -s unlimited This has solved similar problems for me in the past. Best Regards Troels Kofoed Jacobsen On Saturday 25 April 2009 16:53:27 Adam Ginsburg wrote: > Yep, I'm running on a 64 bit machine. I've been dealing with larger > than 4GB data files in IDL, but I'd rather use python/numpy/matplotlib > if possible. > > Here's the gdb session. The error didn't happen in imshow, only when > I specified show(); I guess that means I must have had ioff() set > although I don't think that was my default choice last time I used > matplotlib. > > > milkyway /data/glimpseii $ gdb /usr/local/python/bin/python > GNU gdb Red Hat Linux (6.3.0.0-1.159.el4rh) > Copyright 2004 Free Software Foundation, Inc. > GDB is free software, covered by the GNU General Public License, and you > are welcome to change it and/or distribute copies of it under certain > conditions. Type "show copying" to see the conditions. > There is absolutely no warranty for GDB. Type "show warranty" for details. > This GDB was configured as "x86_64-redhat-linux-gnu"...Using host > libthread_db library "/lib64/tls/libthread_db.so.1". > > (gdb) run > Starting program: /usr/local/python/bin/python > [Thread debugging using libthread_db enabled] > [New Thread 182900715072 (LWP 18039)] > Python 2.5 (r25:51908, Dec 22 2006, 16:08:43) > [GCC 3.4.6 20060404 (Red Hat 3.4.6-3)] on linux2 > Type "help", "copyright", "credits" or "license" for more information. > > >>> import matplotlib,scipy,numpy,pyfits > >>> from pylab import * > >>> f = pyfits.open('GLM_00600+0000_mosaic_I3.fits') > >>> imshow(f[0].data) > > <matplotlib.image.AxesImage object at 0x2aa3f45890> > > >>> show() > > Program received signal SIGSEGV, Segmentation fault. > [Switching to Thread 182900715072 (LWP 18039)] > 0x0000002aa3170ab5 in _image_module::fromarray (this=Variable "this" > is not available. > ) at src/image.cpp:872 > 872 src/image.cpp: No such file or directory. > in src/image.cpp > Current language: auto; currently c++ > (gdb) > > > I've never used gdb before, so is there anything else I should be > doing at this point? > > Thanks, > Adam > > On Fri, Apr 24, 2009 at 7:52 AM, Michael Droettboom <md...@st...> wrote: > > On my machine (32-bit Fedora 10 with 2GB RAM), it chugs along swapping > > for a loooong time and then fails with a Python MemoryError exception -- > > which is at least reasonable. > > > > I suspect you're running on a 64-bit machine and we're running into some > > sort of non-64-bit-clean issue. We try to be 64-bit clean, but it > > doesn't get verified on a regular basis, and not all of us (myself > > included) are running 64-bit OSes. > > > > Can you try running python inside of gdb and getting a traceback? That > > might provide some clues. > > > > We can estimate a little bit as to the memory requirements -- though it's > > hard to account for everything. > > > > Input array is (10370, 9320) x 4 = 386MB > > This array is always converted to doubles to convert to colors (this is > > probably a place ripe for opimtization) so you get also 786MB. Then this > > gets converted to an RGBA array for another 386MB > > > > Mike > > > > Adam Ginsburg wrote: > >> Hi, I've been getting a segmentation fault when trying to display > >> large images. A transcript of a sample session is below. I'm using > >> the TkAgg backend, and I am using numpy, but otherwise I have made no > >> modifications to the matplotlib setup. > >> > >> > >> milkyway /data/glimpseii $ alias pylab > >> alias pylab='/usr/local/adm/config/python/bin/ipython -pylab -log' > >> milkyway /data/glimpseii $ pylab > >> Activating auto-logging. Current session state plus future input saved. > >> Filename : ipython_log.py > >> Mode : rotate > >> Output logging : False > >> Raw input log : False > >> Timestamping : False > >> State : active > >> Python 2.5 (r25:51908, Dec 22 2006, 16:08:43) > >> Type "copyright", "credits" or "license" for more information. > >> > >> IPython 0.9.1 -- An enhanced Interactive Python. > >> ? -> Introduction and overview of IPython's features. > >> %quickref -> Quick reference. > >> help -> Python's own help system. > >> object? -> Details about 'object'. ?object also works, ?? prints more. > >> > >> Welcome to pylab, a matplotlib-based Python environment. > >> For more information, type 'help(pylab)'. > >> > >> In [1]: import matplotlib,pyfits,numpy,scipy > >> > >> In [2]: scipy.__version__ > >> Out[2]: '0.7.0' > >> > >> In [3]: numpy.__version__ > >> Out[3]: '1.3.0' > >> > >> In [4]: matplotlib.__version__ > >> Out[4]: '0.98.5.2' > >> > >> In [5]: f = pyfits.open('GLM_00600+0000_mosaic_I3.fits') > >> > >> In [6]: f[0].data.shape > >> Out[6]: (10370, 9320) > >> > >> In [7]: f[0].data.dtype > >> Out[7]: dtype('>f4') > >> > >> In [8]: imshow(f[0].data) > >> Segmentation fault > >> > >> > >> Any ideas? > >> > >> Thanks, > >> Adam > > --------------------------------------------------------------------------- >--- Crystal Reports - New Free Runtime and 30 Day Trial > Check out the new simplified licensign option that enables unlimited > royalty-free distribution of the report engine for externally facing > server and web deployment. > http://p.sf.net/sfu/businessobjects > _______________________________________________ > Matplotlib-users mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users |
From: John H. <jd...@gm...> - 2009-04-25 15:34:30
|
On Sat, Apr 25, 2009 at 9:53 AM, Adam Ginsburg <ada...@co...>wrote: > Yep, I'm running on a 64 bit machine. I've been dealing with larger > than 4GB data files in IDL, but I'd rather use python/numpy/matplotlib > if possible. > > Here's the gdb session. The error didn't happen in imshow, only when > I specified show(); I guess that means I must have had ioff() set > although I don't think that was my default choice last time I used > matplotlib. > > > milkyway /data/glimpseii $ gdb /usr/local/python/bin/python > GNU gdb Red Hat Linux (6.3.0.0-1.159.el4rh) > Copyright 2004 Free Software Foundation, Inc. > GDB is free software, covered by the GNU General Public License, and you > are > welcome to change it and/or distribute copies of it under certain > conditions. > Type "show copying" to see the conditions. > There is absolutely no warranty for GDB. Type "show warranty" for details. > This GDB was configured as "x86_64-redhat-linux-gnu"...Using host > libthread_db library "/lib64/tls/libthread_db.so.1". > > (gdb) run > Starting program: /usr/local/python/bin/python > [Thread debugging using libthread_db enabled] > [New Thread 182900715072 (LWP 18039)] > Python 2.5 (r25:51908, Dec 22 2006, 16:08:43) > [GCC 3.4.6 20060404 (Red Hat 3.4.6-3)] on linux2 > Type "help", "copyright", "credits" or "license" for more information. > >>> import matplotlib,scipy,numpy,pyfits > >>> from pylab import * > >>> f = pyfits.open('GLM_00600+0000_mosaic_I3.fits') > >>> imshow(f[0].data) > <matplotlib.image.AxesImage object at 0x2aa3f45890> > >>> show() > > Program received signal SIGSEGV, Segmentation fault. > [Switching to Thread 182900715072 (LWP 18039)] > 0x0000002aa3170ab5 in _image_module::fromarray (this=Variable "this" > is not available. > ) at src/image.cpp:872 > 872 src/image.cpp: No such file or directory. > in src/image.cpp > Current language: auto; currently c++ > (gdb) > Could you try and create an image using random data that is the same dimensions and datatype as the fits data you are using htat replicates the segfault, so we can try and reproduce the error as well as add it to our test suite? Thanks JDH |
From: Adam G. <ada...@co...> - 2009-04-25 14:53:31
|
Yep, I'm running on a 64 bit machine. I've been dealing with larger than 4GB data files in IDL, but I'd rather use python/numpy/matplotlib if possible. Here's the gdb session. The error didn't happen in imshow, only when I specified show(); I guess that means I must have had ioff() set although I don't think that was my default choice last time I used matplotlib. milkyway /data/glimpseii $ gdb /usr/local/python/bin/python GNU gdb Red Hat Linux (6.3.0.0-1.159.el4rh) Copyright 2004 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type "show copying" to see the conditions. There is absolutely no warranty for GDB. Type "show warranty" for details. This GDB was configured as "x86_64-redhat-linux-gnu"...Using host libthread_db library "/lib64/tls/libthread_db.so.1". (gdb) run Starting program: /usr/local/python/bin/python [Thread debugging using libthread_db enabled] [New Thread 182900715072 (LWP 18039)] Python 2.5 (r25:51908, Dec 22 2006, 16:08:43) [GCC 3.4.6 20060404 (Red Hat 3.4.6-3)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import matplotlib,scipy,numpy,pyfits >>> from pylab import * >>> f = pyfits.open('GLM_00600+0000_mosaic_I3.fits') >>> imshow(f[0].data) <matplotlib.image.AxesImage object at 0x2aa3f45890> >>> show() Program received signal SIGSEGV, Segmentation fault. [Switching to Thread 182900715072 (LWP 18039)] 0x0000002aa3170ab5 in _image_module::fromarray (this=Variable "this" is not available. ) at src/image.cpp:872 872 src/image.cpp: No such file or directory. in src/image.cpp Current language: auto; currently c++ (gdb) I've never used gdb before, so is there anything else I should be doing at this point? Thanks, Adam On Fri, Apr 24, 2009 at 7:52 AM, Michael Droettboom <md...@st...> wrote: > > On my machine (32-bit Fedora 10 with 2GB RAM), it chugs along swapping for a loooong time and then fails with a Python MemoryError exception -- which is at least reasonable. > > I suspect you're running on a 64-bit machine and we're running into some sort of non-64-bit-clean issue. We try to be 64-bit clean, but it doesn't get verified on a regular basis, and not all of us (myself included) are running 64-bit OSes. > > Can you try running python inside of gdb and getting a traceback? That might provide some clues. > > We can estimate a little bit as to the memory requirements -- though it's hard to account for everything. > > Input array is (10370, 9320) x 4 = 386MB > This array is always converted to doubles to convert to colors (this is probably a place ripe for opimtization) so you get also 786MB. > Then this gets converted to an RGBA array for another 386MB > > Mike > > Adam Ginsburg wrote: >> >> Hi, I've been getting a segmentation fault when trying to display >> large images. A transcript of a sample session is below. I'm using >> the TkAgg backend, and I am using numpy, but otherwise I have made no >> modifications to the matplotlib setup. >> >> >> milkyway /data/glimpseii $ alias pylab >> alias pylab='/usr/local/adm/config/python/bin/ipython -pylab -log' >> milkyway /data/glimpseii $ pylab >> Activating auto-logging. Current session state plus future input saved. >> Filename : ipython_log.py >> Mode : rotate >> Output logging : False >> Raw input log : False >> Timestamping : False >> State : active >> Python 2.5 (r25:51908, Dec 22 2006, 16:08:43) >> Type "copyright", "credits" or "license" for more information. >> >> IPython 0.9.1 -- An enhanced Interactive Python. >> ? -> Introduction and overview of IPython's features. >> %quickref -> Quick reference. >> help -> Python's own help system. >> object? -> Details about 'object'. ?object also works, ?? prints more. >> >> Welcome to pylab, a matplotlib-based Python environment. >> For more information, type 'help(pylab)'. >> >> In [1]: import matplotlib,pyfits,numpy,scipy >> >> In [2]: scipy.__version__ >> Out[2]: '0.7.0' >> >> In [3]: numpy.__version__ >> Out[3]: '1.3.0' >> >> In [4]: matplotlib.__version__ >> Out[4]: '0.98.5.2' >> >> In [5]: f = pyfits.open('GLM_00600+0000_mosaic_I3.fits') >> >> In [6]: f[0].data.shape >> Out[6]: (10370, 9320) >> >> In [7]: f[0].data.dtype >> Out[7]: dtype('>f4') >> >> In [8]: imshow(f[0].data) >> Segmentation fault >> >> >> Any ideas? >> >> Thanks, >> Adam >> |
From: Esmail <eb...@ho...> - 2009-04-25 11:40:10
|
Jouni K. Seppänen wrote: > > That's because you are reading the list via Gmane, which is set to > mangle email addresses to avoid spammers (the setting is specific to > each mailing list, so you might not see it on other lists), and > mail-archive URLs happen to contain the email address of the list. > > To follow the URL, replace the part > > matplotlib-users-random-garbage <at> public.gmane.org > > with > > matplotlib-users <at> lists.sourceforge.net > > (where I am writing <at> instead of @ to evade the gmane mangler). > > I wonder if URL-escaping the at sign helps: > > http://www.mail-archive.com/matplotlib-users%40lists.sourceforge.net/msg10873.html Right you are! I hadn't even noticed this in the URL, it's quite evident in the address fields when I use Thunderbird to reply to postings. Thanks a lot for pointing this out. Esmail |
From: Esmail <eb...@ho...> - 2009-04-25 11:35:08
|
Ryan May wrote: > > I was curious, so I cooked up a quick demo using two scripts. Put them > in the same directory and run datasource.py. It's not perfect, and I > think the use of raw_input() is a little odd, but it works. Very cool Ryan, thanks for doing that, I plan on studying your code this weekend. Cheers, Esmail |
From: Esmail <eb...@ho...> - 2009-04-25 11:29:50
|
Robert Cimrman wrote: > >> >> Sounds interesting, but I get a "page not found 404" type error when >> I follow this link. > > Strange, it does work for me. Alternatively, just search > "[Matplotlib-users] plotting in a separate process" in google... Thanks Robert, I'll give that a try. Esmail |
From: Eric F. <ef...@ha...> - 2009-04-24 22:46:58
|
Xavier Gnata wrote: > Hi, > > I'm trying to compile revision 7064 on a fresh kubuntu 9.04 > > I get this error: > > g++ -pthread -shared -Wl,-O1 > -Wl,-Bsymbolic-functionsbuild/temp.linux-x86_64-2.6/src/agg_py_transforms.o > build/temp.linux-x86_64-2.6/src/_gtkagg.obuild/temp.linux-x86_64-2.6/src/mplutils.o > build/temp.linux-x86_64-2.6/CXX/IndirectPythonInterface.o > build/temp.linux-x86_64-2.6/CXX/cxx_extensions.o > build/temp.linux-x86_64-2.6/CXX/cxxsupport.o > build/temp.linux-x86_64-2.6/CXX/cxxextensions.o -L/usr/local/lib > -L/usr/local/lib -L/usr/local/lib -lstdc++ -lm -lfreetype -lz-lstdc++ > -lm -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lpangoft2-1.0 > -lgdk_pixbuf-2.0 -lpangocairo-1.0 -lgio-2.0 -lcairo -lpango-1.0 > -lfontconfig -lgobject-2.0 -lgmodule-2.0 -lglib-2.0 -o > build/lib.linux-x86_64-2.6/matplotlib/backends/_gtkagg.so > /usr/bin/ld: cannot find -lz-lstdc++ > collect2: ld returned 1 exit status > > -lz-lstdc++ ?? Should it be -lz -lstdc++ (with one space...) > Looks like something is broken...but I'm not sure it is a matplotlib or > a kubuntu bug > If someone have a clue...please tell me :) Works for me on Ubuntu 9.04 (32-bit), and I can't imagine how the differences between Kubuntu and Ubuntu could be related to this. Eric > > Xavier > > ------------------------------------------------------------------------------ > Crystal Reports - New Free Runtime and 30 Day Trial > Check out the new simplified licensign option that enables unlimited > royalty-free distribution of the report engine for externally facing > server and web deployment. > http://p.sf.net/sfu/businessobjects > _______________________________________________ > Matplotlib-users mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users |
From: wfpunch <bil...@gm...> - 2009-04-24 21:21:53
|
Is it possible to create an axis labe, much like done for dates, using arbitrary strings. For example, I'd like to plot word frequency where the x-axis labels are the words and the y-axis the frequency. I've looks at the locator and formatString stuff but I can't quite seem to get it. Any help appreciated. >>>bill<<< -- View this message in context: http://www.nabble.com/label-arbitrary-strings-on-xaxis-as-in-date-mode-tp23225088p23225088.html Sent from the matplotlib - users mailing list archive at Nabble.com. |
From: Jouni K. S. <jk...@ik...> - 2009-04-24 20:15:47
|
Ondrej Certik <on...@ce...> writes: > is there a way to have one plot with two functions, one using some > scale, the other one a different scale and show for example one scale > on the left, the other scale on the right? Yes, with twinx: see http://matplotlib.sourceforge.net/api/pyplot_api.html?highlight=twinx#matplotlib.pyplot.twinx -- Jouni K. Seppänen http://www.iki.fi/jks |
From: Ryan M. <rm...@gm...> - 2009-04-24 20:14:37
|
On Fri, Apr 24, 2009 at 3:02 PM, Ondrej Certik <on...@ce...> wrote: > Hi, > > is there a way to have one plot with two functions, one using some > scale, the other one a different scale and show for example one scale > on the left, the other scale on the right? > > I want to plot an atomic potential (one scale) and the corresponding > wave functions (different scale) in the same plot. I tried to look > through all examples and search this list, but didn't find anything. Look at pyplot.twinx() or pyplot.twiny() Ryan -- Ryan May Graduate Research Assistant School of Meteorology University of Oklahoma Sent from Norman, Oklahoma, United States |
From: Sandro T. <mo...@de...> - 2009-04-24 20:10:56
|
Hi Ondrej, nice to see you here :) On Fri, Apr 24, 2009 at 22:02, Ondrej Certik <on...@ce...> wrote: > Hi, > > is there a way to have one plot with two functions, one using some > scale, the other one a different scale and show for example one scale > on the left, the other scale on the right? sure, twinx() is what you're looking for; here is a simple example: import matplotlib.pyplot as plt import numpy as np x = np.arange(0., np.e, 0.01) y1 = np.exp(-x) y2 = np.log(x) fig = plt.figure() ax1 = fig.add_subplot(111) ax1.plot(x, y1) ax1.set_ylabel('Y values for exp(-x)') ax2 = ax1.twinx() ax2.plot(x, y2, 'r') ax2.set_xlim([0,np.e]) ax2.set_ylabel('Y values for ln(x)') ax2.set_xlabel('Same X for both exp(-x) and ln(x)') The values on X has to be of the same scale, tough, else the graph would look really weird. Cheers, -- Sandro Tosi (aka morph, morpheus, matrixhasu) My website: http://matrixhasu.altervista.org/ Me at Debian: http://wiki.debian.org/SandroTosi |