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
(8) |
2
(14) |
3
(22) |
4
(13) |
5
(11) |
6
(12) |
7
(4) |
8
(6) |
9
(19) |
10
(14) |
11
(16) |
12
(6) |
13
(15) |
14
(6) |
15
(8) |
16
(22) |
17
(17) |
18
(8) |
19
(16) |
20
(19) |
21
(3) |
22
(6) |
23
(18) |
24
(26) |
25
(17) |
26
(13) |
27
(18) |
28
(8) |
29
|
30
(14) |
31
(30) |
|
|
|
|
From: kmilner <km...@us...> - 2009-03-23 21:10:15
|
Hi All, I'm trying to plot evenly grided data to tiles for google maps overlays. Each tile needs to be a 256x256 pixel PNG image, without any borders. The problem that I'm having is that the leftmost column of the resultant PNG image (saved using FigureCanvasAgg.print_figure) is transparent. My real code uses basemap because the output has to be in the mercator projection, but the sample code below is simplified to exclude it. You can view the sample image that is produced at this address: http://earth.usc.edu/ftp/kmilner/trans_test.png Any ideas? Thanks! Kevin #!/usr/bin/env python from matplotlib.backends.backend_agg import FigureCanvasAgg as FigureCanvas from matplotlib.figure import Figure import numpy dpi = 64 pixels = 256 fig = Figure(linewidth=0, frameon=False) canvas = FigureCanvas(fig) fig.figurePatch.set_alpha(0.0) ax_bounds = [0, 0, 1, 1] ax = fig.add_axes(ax_bounds, axisbg=(1.0,1.0,0.0,0.0), frameon=False ) inches = pixels / dpi fig.set_size_inches(256 / dpi, 256 / dpi) num = 31 z = numpy.empty( (num, num) ) for x in xrange(num): for y in xrange(num): z[x, y] = x * y x, y = numpy.meshgrid( range(num), range(num) ) image = ax.pcolor(x, y, z) image = ax.contourf(x, y, z) canvas.print_figure("/tmp/trans_test.png", dpi=dpi) -- View this message in context: http://www.nabble.com/Leftmost-column-of-PNG-output-is-transparent-tp22669232p22669232.html Sent from the matplotlib - users mailing list archive at Nabble.com. |
From: Lou P. <lou...@ya...> - 2009-03-23 20:58:49
|
I have a question about gnuplot. This may not be the place to ask this, but I don't know where else (yes, I googled for a Python forum on gnuplot, but didn't see any -- could have missed it) Several people have recommended gnuplot (and gnuplot.py) in this email list for 3D plotting (now missing in matplotlib). So I tried it and I get the following errors when I run the demo.py: [myterm] : python demo.py gnuplot> set terminal aqua gnuplot> set title "A simple example" gnuplot> set data style linespoints gnuplot> set terminal aqua ^ line 0: unknown or ambiguous terminal type; type just 'set terminal' for a list I installed AquaTerm after getting this message (and doing some googling) and reinstalled gnuplot.py, but I still get the message. Any clues are welcome. Thank you. -- Lou Pecora, my views are my own. |
From: Cohen-Tanugi J. <co...@lp...> - 2009-03-23 19:19:25
|
http://gael-varoquaux.info/physics/slides_Scipy2007.pdf for a good intro to the high level mayavi API. Johann Etienne Gaudrain wrote: > Ok, I'll go for Mayavi. I am reasonably impressed by the demos. I > haven't been to far into the documentation and I hop I won't regret my > choice. But it looks great so far. > > Thanks for your help !! > > -Etienne > > > > Etienne Gaudrain wrote: > >> Hello list ! >> >> This is probably a recurrent topic, or even more probably HAVE been a >> recurrent topic... So sorry, sorry, sorry... I wanted to search the >> archives but Sourceforge is very slow today (...). >> >> Anyway, here is my question: >> >> Is it right that Matplotlib can no longer plot 3D graphes? >> The scipy Cookbook / Matplotlib / mplot3D says: >> >> >>> The examples below show simple 3D plots using matplotlib. matplotlib's >>> 3D capabilities were added by incorporating John Porter's mplot3d >>> module, thus no additional download is required any more, the >>> following examples will run with an up to date matplotlib >>> installation. Note, this code is not supported in matplotlib-0.98 and >>> later, so please use the 0.91 maintenance release of matplotlib if you >>> need this functionality. >>> >>> >> Which seems a bit like saying one thing and the opposite in the next >> sentence... >> >> So if I understand correctly, for some obscure reason, Matplotlib has >> been stripped from its 3D plot capabilities... and this same website >> suggest the use of another package instead... >> >> Does it mean that all my efforts to understand and learn Matplotlib are >> just a big waste of time since I need another package now that I need 3D >> plot? So I ask you for advice: should I forget completely Matplotlib and >> move to MayaVI2? Or is there any plan to bring 3D back into Matplotlib, >> I mean to make a proper and complete alternative to Matlab? >> >> Or am I just upset because I am missing something. I only plot data >> every 4 or 6 months, and I really don't expect to see major >> functionalities to have disappeared when I come back to plotting data... >> is it a wrong expectation? >> >> Thanks !! >> -Etienne >> >> >> > > > |
From: Christopher B. <c-...@as...> - 2009-03-23 18:17:53
|
Hi Xavier, XG> I'm trying to write a pyqt4 application including pylab plotting XG> capabilities. XG> Up to now, it looks like this (see in attachment). XG> XG> The picker works fine (I get the msg) *but* I also would like to get XG> the (x,y) coordinates and the the corresponding value A[x,y]. XG> Could someone tell me what I should do in on_pick with this "event" XG> to get these data?? XG> XG> Xavier This works for me: def on_pick(self, event): tt = event.artist.get_axes() mouseevent = event.mouseevent msg = "X is: " + str(mouseevent.xdata) + "\nY is: " + str(mouseevent.ydata) QMessageBox.information(self, "Click!", msg) I got some good tips on how to do this from examples/event_handling/pick_event_demo.py -- Christopher Brown, Ph.D. Department of Speech and Hearing Science Arizona State University |
From: Etienne G. <et....@fr...> - 2009-03-23 17:31:20
|
Ok, I'll go for Mayavi. I am reasonably impressed by the demos. I haven't been to far into the documentation and I hop I won't regret my choice. But it looks great so far. Thanks for your help !! -Etienne Etienne Gaudrain wrote: > Hello list ! > > This is probably a recurrent topic, or even more probably HAVE been a > recurrent topic... So sorry, sorry, sorry... I wanted to search the > archives but Sourceforge is very slow today (...). > > Anyway, here is my question: > > Is it right that Matplotlib can no longer plot 3D graphes? > The scipy Cookbook / Matplotlib / mplot3D says: > >> The examples below show simple 3D plots using matplotlib. matplotlib's >> 3D capabilities were added by incorporating John Porter's mplot3d >> module, thus no additional download is required any more, the >> following examples will run with an up to date matplotlib >> installation. Note, this code is not supported in matplotlib-0.98 and >> later, so please use the 0.91 maintenance release of matplotlib if you >> need this functionality. >> > Which seems a bit like saying one thing and the opposite in the next > sentence... > > So if I understand correctly, for some obscure reason, Matplotlib has > been stripped from its 3D plot capabilities... and this same website > suggest the use of another package instead... > > Does it mean that all my efforts to understand and learn Matplotlib are > just a big waste of time since I need another package now that I need 3D > plot? So I ask you for advice: should I forget completely Matplotlib and > move to MayaVI2? Or is there any plan to bring 3D back into Matplotlib, > I mean to make a proper and complete alternative to Matlab? > > Or am I just upset because I am missing something. I only plot data > every 4 or 6 months, and I really don't expect to see major > functionalities to have disappeared when I come back to plotting data... > is it a wrong expectation? > > Thanks !! > -Etienne > > -- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Etienne Gaudrain Centre for the Neural Basis of Hearing Department of Physiology, Development and Neuroscience University of Cambridge Downing Street Cambridge CB2 3EG UK Phone: +44 (1223) 333 859 office Fax: +44 (1223) 333 840 department ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
From: Etienne G. <et....@fr...> - 2009-03-23 16:57:27
|
Waouuuh ! These screenshots look awsome ! A shame this package is not in my Ubuntu repository. I'm a bit lazy, and I want a long-term solution, which supposes auto-update... -Etienne Andy Buckley wrote: > > You might also be interested in Nicholas Rougier's SciGL project, which > (IIRC) was started because of the removal of mpl's 3D plotting > functionality, but which looks really nice: > > http://www.loria.fr/~rougier/scigl/ > > Reminds me that I need to find something to plot in 3D so I can use it ;) > > Andy > > -- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Etienne Gaudrain Centre for the Neural Basis of Hearing Department of Physiology, Development and Neuroscience University of Cambridge Downing Street Cambridge CB2 3EG UK Phone: +44 (1223) 333 859 office Fax: +44 (1223) 333 840 department ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
From: Etienne G. <et....@fr...> - 2009-03-23 16:49:37
|
Thanks Barry. I still don't know whether I want to use Gnuplot.py or Mayavi. Gnuplot is built on a very stable base, so I would be sure to have few surprises with future developments. But maybe it is too old and will not pass the Python3k step... I gave a look to Mayavi, and the start is pretty bad given that the online doc does not match the version of my Ubuntu. The consequence is that the mlab.show() method seems to be missing, while the doc present it as the solution for external scripting... but I'll dig a bit further. -Etienne Barry Wark wrote: > On Mon, Mar 23, 2009 at 6:11 AM, Etienne Gaudrain <et....@fr...> wrote: > >> Thanks a lot for the link, and for the suggestions! >> I will probably give a go to Mayavi2, but given how heavy it seems to be >> (compared to matplotlib) it probably requires some custom wrapping... >> which means again a lot time investment... thanks for the tips anyway! >> > > Etienne, > > I believe that Mayavi2 has a matlab-like interface (called mlab, I > think) which offers a much higher-level (and more command-line > friendly) API. I'm not a Mayavi expert by any streach, but you may be > able to find many helpful folks on the enthought-dev list > (https://mail.enthought.com/mailman/listinfo/enthought-dev) > > cheers, > Barry > > >> Cheers, >> -Etienne >> >> >> >> Gary Ruben wrote: >> >>> Hi Etienne, >>> >>> Sorry to hear about your disappointment. You can read about the >>> attempt to resurrect the 3D plotting capabilities here: >>> <http://www.nabble.com/Updating-MPlot3D-to-a-more-recent-matplotlib.-td22302256.html> >>> >>> >>> Unfortunately, this doesn't help you right now. >>> Depending on the type of 3D plotting you want to do, some suggestions >>> for other packages that support 3D plotting from Python and work now are: >>> Mayavi2's mlab interface >>> <http://code.enthought.com/projects/mayavi/docs/development/html/mayavi/mlab_3d_plotting_functions.html> >>> >>> gnuplot.py <http://gnuplot-py.sourceforge.net/> >>> DISLIN <http://www.mps.mpg.de/dislin> >>> R via RPy <http://rpy.sourceforge.net/> >>> >>> and I'm pretty sure there are more too. >>> >>> Right now, if mayavi2 looks like it'll do what you want, I'd recommend >>> it as your next stop. And in my opinion, I wouldn't say that your time >>> spent learning matplotlib was wasted - 2D plotting is usually useful >>> and matplotlib may soon again have limited 3D capability. >>> >>> Gary R. >>> >>> Etienne Gaudrain wrote: >>> >>>> Hello list ! >>>> >>>> This is probably a recurrent topic, or even more probably HAVE been a >>>> recurrent topic... So sorry, sorry, sorry... I wanted to search the >>>> archives but Sourceforge is very slow today (...). >>>> >>>> Anyway, here is my question: >>>> >>>> Is it right that Matplotlib can no longer plot 3D graphes? >>>> >>> <snip> >>> >>>> Does it mean that all my efforts to understand and learn Matplotlib >>>> are just a big waste of time since I need another package now that I >>>> need 3D plot? So I ask you for advice: should I forget completely >>>> Matplotlib and move to MayaVI2? Or is there any plan to bring 3D back >>>> into Matplotlib, I mean to make a proper and complete alternative to >>>> Matlab? >>>> >>>> Or am I just upset because I am missing something. I only plot data >>>> every 4 or 6 months, and I really don't expect to see major >>>> functionalities to have disappeared when I come back to plotting >>>> data... is it a wrong expectation? >>>> >>>> Thanks !! >>>> -Etienne >>>> >>> >> -- >> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ >> Etienne Gaudrain >> Centre for the Neural Basis of Hearing >> Department of Physiology, Development and Neuroscience >> University of Cambridge >> Downing Street >> Cambridge CB2 3EG >> UK >> Phone: +44 (1223) 333 859 office >> Fax: +44 (1223) 333 840 department >> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ >> >> >> ------------------------------------------------------------------------------ >> Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are >> powering Web 2.0 with engaging, cross-platform capabilities. Quickly and >> easily build your RIAs with Flex Builder, the Eclipse(TM)based development >> software that enables intelligent coding and step-through debugging. >> Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com >> _______________________________________________ >> Matplotlib-users mailing list >> Mat...@li... >> https://lists.sourceforge.net/lists/listinfo/matplotlib-users >> >> > > -- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Etienne Gaudrain Centre for the Neural Basis of Hearing Department of Physiology, Development and Neuroscience University of Cambridge Downing Street Cambridge CB2 3EG UK Phone: +44 (1223) 333 859 office Fax: +44 (1223) 333 840 department ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
From: Andy B. <an...@in...> - 2009-03-23 16:40:31
|
Barry Wark wrote: > On Mon, Mar 23, 2009 at 6:11 AM, Etienne Gaudrain <et....@fr...> wrote: >> Thanks a lot for the link, and for the suggestions! >> I will probably give a go to Mayavi2, but given how heavy it seems to be >> (compared to matplotlib) it probably requires some custom wrapping... >> which means again a lot time investment... thanks for the tips anyway! > > Etienne, > > I believe that Mayavi2 has a matlab-like interface (called mlab, I > think) which offers a much higher-level (and more command-line > friendly) API. I'm not a Mayavi expert by any streach, but you may be > able to find many helpful folks on the enthought-dev list > (https://mail.enthought.com/mailman/listinfo/enthought-dev) You might also be interested in Nicholas Rougier's SciGL project, which (IIRC) was started because of the removal of mpl's 3D plotting functionality, but which looks really nice: http://www.loria.fr/~rougier/scigl/ Reminds me that I need to find something to plot in 3D so I can use it ;) Andy |
From: Barry W. <bar...@gm...> - 2009-03-23 16:34:04
|
On Mon, Mar 23, 2009 at 6:11 AM, Etienne Gaudrain <et....@fr...> wrote: > Thanks a lot for the link, and for the suggestions! > I will probably give a go to Mayavi2, but given how heavy it seems to be > (compared to matplotlib) it probably requires some custom wrapping... > which means again a lot time investment... thanks for the tips anyway! Etienne, I believe that Mayavi2 has a matlab-like interface (called mlab, I think) which offers a much higher-level (and more command-line friendly) API. I'm not a Mayavi expert by any streach, but you may be able to find many helpful folks on the enthought-dev list (https://mail.enthought.com/mailman/listinfo/enthought-dev) cheers, Barry > > Cheers, > -Etienne > > > > Gary Ruben wrote: >> Hi Etienne, >> >> Sorry to hear about your disappointment. You can read about the >> attempt to resurrect the 3D plotting capabilities here: >> <http://www.nabble.com/Updating-MPlot3D-to-a-more-recent-matplotlib.-td22302256.html> >> >> >> Unfortunately, this doesn't help you right now. >> Depending on the type of 3D plotting you want to do, some suggestions >> for other packages that support 3D plotting from Python and work now are: >> Mayavi2's mlab interface >> <http://code.enthought.com/projects/mayavi/docs/development/html/mayavi/mlab_3d_plotting_functions.html> >> >> gnuplot.py <http://gnuplot-py.sourceforge.net/> >> DISLIN <http://www.mps.mpg.de/dislin> >> R via RPy <http://rpy.sourceforge.net/> >> >> and I'm pretty sure there are more too. >> >> Right now, if mayavi2 looks like it'll do what you want, I'd recommend >> it as your next stop. And in my opinion, I wouldn't say that your time >> spent learning matplotlib was wasted - 2D plotting is usually useful >> and matplotlib may soon again have limited 3D capability. >> >> Gary R. >> >> Etienne Gaudrain wrote: >>> Hello list ! >>> >>> This is probably a recurrent topic, or even more probably HAVE been a >>> recurrent topic... So sorry, sorry, sorry... I wanted to search the >>> archives but Sourceforge is very slow today (...). >>> >>> Anyway, here is my question: >>> >>> Is it right that Matplotlib can no longer plot 3D graphes? >> <snip> >>> Does it mean that all my efforts to understand and learn Matplotlib >>> are just a big waste of time since I need another package now that I >>> need 3D plot? So I ask you for advice: should I forget completely >>> Matplotlib and move to MayaVI2? Or is there any plan to bring 3D back >>> into Matplotlib, I mean to make a proper and complete alternative to >>> Matlab? >>> >>> Or am I just upset because I am missing something. I only plot data >>> every 4 or 6 months, and I really don't expect to see major >>> functionalities to have disappeared when I come back to plotting >>> data... is it a wrong expectation? >>> >>> Thanks !! >>> -Etienne >> >> > > > -- > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > Etienne Gaudrain > Centre for the Neural Basis of Hearing > Department of Physiology, Development and Neuroscience > University of Cambridge > Downing Street > Cambridge CB2 3EG > UK > Phone: +44 (1223) 333 859 office > Fax: +44 (1223) 333 840 department > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > > > ------------------------------------------------------------------------------ > Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are > powering Web 2.0 with engaging, cross-platform capabilities. Quickly and > easily build your RIAs with Flex Builder, the Eclipse(TM)based development > software that enables intelligent coding and step-through debugging. > Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com > _______________________________________________ > Matplotlib-users mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users > |
From: Lion K. <kur...@ya...> - 2009-03-23 14:04:10
|
Hi, I have a newbie question regarding matplotlib. I want to plot a graph without the white border around it. I googled a lot but didn't find anything useful. The following code produces a graph without any ticks and it also makes the white border around the graph transparent. ########## import matplotlib matplotlib.use('AGG') import matplotlib.pyplot as plt fig = plt.figure(num = None, figsize = (float(size[0])/dpi, float(size[1])/dpi)) plt.axes(axisbg=white, frameon = True) fig.set_frameon(False) #Set axes and disable ticks plt.ylim(miny, maxy) plt.xlim(0,length) plt.yticks([]) plt.xticks([]) ... plt.savefig(outfile, dpi = dpi, transparent = transparent) ########## I would like to know how to make the frame around the graph disappear completely so that the resulting image contains the graph in full size. Hmm...i am also curious if it is possible to display the tick markers inside the graph. Best regards and thanks for your help, Lion |
From: Etienne G. <et....@fr...> - 2009-03-23 13:27:51
|
Thanks for all these pointers! I am well aware and respectful of the open source philosophy, and please do not see a criticism toward the work of the developers in my e-mail... just a lost user seeking advice, wanting to understand what happened to catch the train I apparently missed during the last 6 months... I will sure have look to the current project and see if I can help. Thanks for this particular hint! Cheers, -Etienne Jouni K. Seppänen wrote: > Etienne Gaudrain <et....@fr...> writes: > > >> This is probably a recurrent topic, or even more probably HAVE been a >> recurrent topic... So sorry, sorry, sorry... I wanted to search the >> archives but Sourceforge is very slow today (...). >> > > I don't think the Sourceforge search has ever been very useful. Try > Gmane, Nabble, or The Mail Archive instead: > > http://search.gmane.org/form.php?group=gmane.comp.python.matplotlib.general > http://search.gmane.org/form.php?group=gmane.comp.python.matplotlib.devel > http://www.nabble.com/matplotlib-f2903.html > http://www.mail-archive.com/mat...@li.../ > http://www.mail-archive.com/mat...@li.../ > > >> Is it right that Matplotlib can no longer plot 3D graphes? >> > > It is correct: the 3D capabilities have been removed from the latest > versions. > > >> So if I understand correctly, for some obscure reason, Matplotlib has >> been stripped from its 3D plot capabilities... and this same website >> suggest the use of another package instead... >> > > The reason is that extensive changes were made to the way Matplotlib > works internally, and no-one has been sufficiently interested in the 3D > plotting code to keep it up to date. > > >> Does it mean that all my efforts to understand and learn Matplotlib are >> just a big waste of time since I need another package now that I need 3D >> plot? >> > > Of course the old version of Matplotlib still works, it just doesn't > have all the latest features. Also, very recently some people have > started to work on the 3D code: > > http://thread.gmane.org/gmane.comp.python.matplotlib.devel/6672/focus=6691 > > If you want to be able to make 3D plots with Matplotlib, perhaps you > could find a way to help with this effort. > > -- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Etienne Gaudrain Centre for the Neural Basis of Hearing Department of Physiology, Development and Neuroscience University of Cambridge Downing Street Cambridge CB2 3EG UK Phone: +44 (1223) 333 859 office Fax: +44 (1223) 333 840 department ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
From: Etienne G. <et....@fr...> - 2009-03-23 13:11:51
|
Thanks a lot for the link, and for the suggestions! I will probably give a go to Mayavi2, but given how heavy it seems to be (compared to matplotlib) it probably requires some custom wrapping... which means again a lot time investment... thanks for the tips anyway! Cheers, -Etienne Gary Ruben wrote: > Hi Etienne, > > Sorry to hear about your disappointment. You can read about the > attempt to resurrect the 3D plotting capabilities here: > <http://www.nabble.com/Updating-MPlot3D-to-a-more-recent-matplotlib.-td22302256.html> > > > Unfortunately, this doesn't help you right now. > Depending on the type of 3D plotting you want to do, some suggestions > for other packages that support 3D plotting from Python and work now are: > Mayavi2's mlab interface > <http://code.enthought.com/projects/mayavi/docs/development/html/mayavi/mlab_3d_plotting_functions.html> > > gnuplot.py <http://gnuplot-py.sourceforge.net/> > DISLIN <http://www.mps.mpg.de/dislin> > R via RPy <http://rpy.sourceforge.net/> > > and I'm pretty sure there are more too. > > Right now, if mayavi2 looks like it'll do what you want, I'd recommend > it as your next stop. And in my opinion, I wouldn't say that your time > spent learning matplotlib was wasted - 2D plotting is usually useful > and matplotlib may soon again have limited 3D capability. > > Gary R. > > Etienne Gaudrain wrote: >> Hello list ! >> >> This is probably a recurrent topic, or even more probably HAVE been a >> recurrent topic... So sorry, sorry, sorry... I wanted to search the >> archives but Sourceforge is very slow today (...). >> >> Anyway, here is my question: >> >> Is it right that Matplotlib can no longer plot 3D graphes? > <snip> >> Does it mean that all my efforts to understand and learn Matplotlib >> are just a big waste of time since I need another package now that I >> need 3D plot? So I ask you for advice: should I forget completely >> Matplotlib and move to MayaVI2? Or is there any plan to bring 3D back >> into Matplotlib, I mean to make a proper and complete alternative to >> Matlab? >> >> Or am I just upset because I am missing something. I only plot data >> every 4 or 6 months, and I really don't expect to see major >> functionalities to have disappeared when I come back to plotting >> data... is it a wrong expectation? >> >> Thanks !! >> -Etienne > > -- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Etienne Gaudrain Centre for the Neural Basis of Hearing Department of Physiology, Development and Neuroscience University of Cambridge Downing Street Cambridge CB2 3EG UK Phone: +44 (1223) 333 859 office Fax: +44 (1223) 333 840 department ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
From: Gary R. <gr...@bi...> - 2009-03-23 13:01:47
|
Hi Etienne, Sorry to hear about your disappointment. You can read about the attempt to resurrect the 3D plotting capabilities here: <http://www.nabble.com/Updating-MPlot3D-to-a-more-recent-matplotlib.-td22302256.html> Unfortunately, this doesn't help you right now. Depending on the type of 3D plotting you want to do, some suggestions for other packages that support 3D plotting from Python and work now are: Mayavi2's mlab interface <http://code.enthought.com/projects/mayavi/docs/development/html/mayavi/mlab_3d_plotting_functions.html> gnuplot.py <http://gnuplot-py.sourceforge.net/> DISLIN <http://www.mps.mpg.de/dislin> R via RPy <http://rpy.sourceforge.net/> and I'm pretty sure there are more too. Right now, if mayavi2 looks like it'll do what you want, I'd recommend it as your next stop. And in my opinion, I wouldn't say that your time spent learning matplotlib was wasted - 2D plotting is usually useful and matplotlib may soon again have limited 3D capability. Gary R. Etienne Gaudrain wrote: > Hello list ! > > This is probably a recurrent topic, or even more probably HAVE been a > recurrent topic... So sorry, sorry, sorry... I wanted to search the > archives but Sourceforge is very slow today (...). > > Anyway, here is my question: > > Is it right that Matplotlib can no longer plot 3D graphes? <snip> > Does it mean that all my efforts to understand and learn Matplotlib are > just a big waste of time since I need another package now that I need 3D > plot? So I ask you for advice: should I forget completely Matplotlib and > move to MayaVI2? Or is there any plan to bring 3D back into Matplotlib, > I mean to make a proper and complete alternative to Matlab? > > Or am I just upset because I am missing something. I only plot data > every 4 or 6 months, and I really don't expect to see major > functionalities to have disappeared when I come back to plotting data... > is it a wrong expectation? > > Thanks !! > -Etienne |
From: Jouni K. S. <jk...@ik...> - 2009-03-23 13:00:27
|
Etienne Gaudrain <et....@fr...> writes: > This is probably a recurrent topic, or even more probably HAVE been a > recurrent topic... So sorry, sorry, sorry... I wanted to search the > archives but Sourceforge is very slow today (...). I don't think the Sourceforge search has ever been very useful. Try Gmane, Nabble, or The Mail Archive instead: http://search.gmane.org/form.php?group=gmane.comp.python.matplotlib.general http://search.gmane.org/form.php?group=gmane.comp.python.matplotlib.devel http://www.nabble.com/matplotlib-f2903.html http://www.mail-archive.com/mat...@li.../ http://www.mail-archive.com/mat...@li.../ > Is it right that Matplotlib can no longer plot 3D graphes? It is correct: the 3D capabilities have been removed from the latest versions. > So if I understand correctly, for some obscure reason, Matplotlib has > been stripped from its 3D plot capabilities... and this same website > suggest the use of another package instead... The reason is that extensive changes were made to the way Matplotlib works internally, and no-one has been sufficiently interested in the 3D plotting code to keep it up to date. > Does it mean that all my efforts to understand and learn Matplotlib are > just a big waste of time since I need another package now that I need 3D > plot? Of course the old version of Matplotlib still works, it just doesn't have all the latest features. Also, very recently some people have started to work on the 3D code: http://thread.gmane.org/gmane.comp.python.matplotlib.devel/6672/focus=6691 If you want to be able to make 3D plots with Matplotlib, perhaps you could find a way to help with this effort. -- Jouni K. Seppänen http://www.iki.fi/jks |
From: Michael D. <md...@st...> - 2009-03-23 12:08:59
|
Try switching to the Ps backend by putting: import matplotlib matplotlib.use("ps") at the top of your script. That will take gtk and its popup windows out of the equation. After doing that, you should get a traceback at the terminal that should help narrow this down. At this point we can only guess, without a line number. Can you also provide a minimal script that causes this error? I'm particularly puzzled by the difference in output between PDF and PS. Cheers, Mike Pau wrote: > Hello, > > using 0.98.5.2 under OpenBSD -current > > I have made a plot and, when I try to save it as eps/ps, I get the > error "float argument required" in a pop-up window, whilst the > terminal shows this error message: > > /usr/local/lib/python2.5/site-packages/matplotlib/backends/backend_gtk.py:1054: > GtkWarning: Unable to find default local directory monitor type > if self.run() != int(gtk.RESPONSE_OK): > > I can save it as pdf, but the quality is not what I want. The curves > do not have the thickness I gave them. > > I reproduced the same running it under Fedora 10. > > I have googled and yahooed. Found nothing. > > It looks as if the some function was expecting a decimal-point number > but got something else. > > I can send the .py and data, if you wish. > > Thanks, > > Pau > > ------------------------------------------------------------------------------ > Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are > powering Web 2.0 with engaging, cross-platform capabilities. Quickly and > easily build your RIAs with Flex Builder, the Eclipse(TM)based development > software that enables intelligent coding and step-through debugging. > Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com > _______________________________________________ > 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 |
From: Michael D. <md...@st...> - 2009-03-23 12:04:58
|
I tend to agree -- but worry that such a global change may have unintended consequences. I'm pretty tight on time at the moment, but one way to test this theory would be to run examples/test/backend_driver.py with the new settings. This will generate output for most of the examples. Then using an image viewing tool like gthumb or something, go through all the examples and make sure things get better in all cases, and never worse. Let us know about the worse ones to see if they have easy workarounds. If they mostly look good, I think we should consider changing the default for new non-maintenance versions going forward. Cheers, Mike Alan G Isaac wrote: > On 3/21/2009 11:33 PM Gary Ruben apparently wrote: > >> Whilst agreeing with Kaushik's sentiments on the greatness of >> matplotlib, I thought his example plot nicely illustrates a layout wart >> that I think is easily fixed by changing the default xtick.major.pad, >> xtick.minor.pad, ytick.major.pad and ytick.minor.pad values from 4 to 6. >> As well as preventing the x- and y-axis labels running into each other >> in Kaushik's example, the most common case of a 2D plot with 0 lower >> bound on both the x- and y-axes [e.g. plot(rand(10))] looks better with >> the default font when pad=6. >> > > Yes indeed. > I would like to see examples justifying the current default. > Alan Isaac > (another user) > > ------------------------------------------------------------------------------ > Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are > powering Web 2.0 with engaging, cross-platform capabilities. Quickly and > easily build your RIAs with Flex Builder, the Eclipse(TM)based development > software that enables intelligent coding and step-through debugging. > Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com > _______________________________________________ > 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 |
From: Etienne G. <et....@fr...> - 2009-03-23 11:48:31
|
Hello list ! This is probably a recurrent topic, or even more probably HAVE been a recurrent topic... So sorry, sorry, sorry... I wanted to search the archives but Sourceforge is very slow today (...). Anyway, here is my question: Is it right that Matplotlib can no longer plot 3D graphes? The scipy Cookbook / Matplotlib / mplot3D says: > The examples below show simple 3D plots using matplotlib. matplotlib's > 3D capabilities were added by incorporating John Porter's mplot3d > module, thus no additional download is required any more, the > following examples will run with an up to date matplotlib > installation. Note, this code is not supported in matplotlib-0.98 and > later, so please use the 0.91 maintenance release of matplotlib if you > need this functionality. Which seems a bit like saying one thing and the opposite in the next sentence... So if I understand correctly, for some obscure reason, Matplotlib has been stripped from its 3D plot capabilities... and this same website suggest the use of another package instead... Does it mean that all my efforts to understand and learn Matplotlib are just a big waste of time since I need another package now that I need 3D plot? So I ask you for advice: should I forget completely Matplotlib and move to MayaVI2? Or is there any plan to bring 3D back into Matplotlib, I mean to make a proper and complete alternative to Matlab? Or am I just upset because I am missing something. I only plot data every 4 or 6 months, and I really don't expect to see major functionalities to have disappeared when I come back to plotting data... is it a wrong expectation? Thanks !! -Etienne -- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Etienne Gaudrain Centre for the Neural Basis of Hearing Department of Physiology, Development and Neuroscience University of Cambridge Downing Street Cambridge CB2 3EG UK Phone: +44 (1223) 333 859 office Fax: +44 (1223) 333 840 department ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
From: Jouni K. S. <jk...@ik...> - 2009-03-23 09:11:47
|
Pau <vim...@go...> writes: > I have made a plot and, when I try to save it as eps/ps, I get the > error "float argument required" in a pop-up window, whilst the > terminal shows this error message: > > /usr/local/lib/python2.5/site-packages/matplotlib/backends/backend_gtk.py:1054: > GtkWarning: Unable to find default local directory monitor type > if self.run() != int(gtk.RESPONSE_OK): It seems that you are using the GTK backend. Have you tried this with other backends, e.g. GTKAgg? If saving works with other backends, this is likely a bug in the non-Agg GTK backend. > I can save it as pdf, but the quality is not what I want. The curves > do not have the thickness I gave them. This could be a difference between the non-Agg GTK rendering and the rest of the backends, or it could be a bug in the PDF backend. I would be interested in seeing your script, especially if there is a difference between PDF and Agg-based backends. -- Jouni K. Seppänen http://www.iki.fi/jks |