SourceForge logo
SourceForge logo
Menu

matplotlib-users — Discussion related to using matplotlib

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)




Showing results of 394

<< < 1 .. 4 5 6 7 8 .. 16 > >> (Page 6 of 16)
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
From: Pau <vim...@go...> - 2009年03月22日 18:21:32
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
From: Xavier G. <xav...@gm...> - 2009年03月22日 18:09:34
Attachments: test2PyQt.py
Hi,
I'm trying to write a pyqt4 application including pylab plotting
capabilities.
Up to now, it looks like this (see in attachment).
The picker works fine (I get the msg) *but* I also would like to get the
(x,y) coordinates and the the corresponding value A[x,y].
Could someone tell me what I should do in on_pick with this "event" to
get these data??
Xavier
From: Alan G I. <ala...@gm...> - 2009年03月22日 13:13:47
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)
From: Deltarodigy <Del...@gm...> - 2009年03月22日 04:28:33
For the past few days I have been trying to get contour graphs working in my
pyqt files. I am lost at trying to implement the actual plot. How is it that
I can do this, so far I can only get axes to show in the window.
http://code.google.com/p/scc08/source/browse/#svn/branch/realistic2d is
where my project is, NOTE: most of the files are for generating data for the
graphs.
-- 
View this message in context: http://www.nabble.com/Matplotlib-and-contour-graphs-and-pyqt-tp22643299p22643299.html
Sent from the matplotlib - users mailing list archive at Nabble.com.
From: Gary R. <gr...@bi...> - 2009年03月22日 03:33:58
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. Just to bolster my case, according to the 
gestalt theory "Law of Proximity" 
<http://en.wikipedia.org/wiki/Gestalt_psychology>, the labels, which are 
currently closer to each other at the axis intersection than to the axes 
themselves become separated enough from one another so that they become 
visually associated with the axes in this region.
As an aside, I went looking for Matlab plotting examples and some appear 
to match the pad=4 padding whereas others are more like pad=6.
Of course I shall change this in my matplotlibrc file. I just thought 
I'd see if I could provoke a revolution,
Gary R.
From: Eric F. <ef...@ha...> - 2009年03月22日 00:10:01
Mike Bauer wrote:
> Eric,
> 
> Here's an example of a working hexbin (attached). What I want to do is 
> compare this with another dataset with many fewer points. What I'd 
> really like is for the color bar to reflect the cumulative percent of 
> the total count each cell holds, but I'd settle for what I thought 
> normalized gives which is scaling the colors from 0 - 1 instead of 
> showing the number count. I don't care about comparing numbers I care 
> about the relative frequency of each cell.
I don't have a solution for you, but it looks to me like you can do the 
sort of thing you are looking for via suitable choice of the C and 
reduce_C_function kwargs to hexbin. This is not a job for the norm kwarg.
Actually, here is a stab at what I think you are describing:
x = np.random.normal(size=(10000,))
y = np.random.normal(size=(10000,))
imask = (x > -1) & (x < 1) & (y > -1) & (y < 1)
x = x[imask]
y = y[imask]
c = np.ones_like(x) * 100 / len(x)
hexbin(x, y, C=c, reduce_C_function=np.sum, gridsize=20)
colorbar()
I think this is giving percentage of hits in each bin. The numbers are 
very small because there are many bins.
Eric
> 
> Thanks for the pointer to colors.LogNorm(). I'll look into that.
> 
> Mike
> 
> Here's my script (sorry, you'll see it's a temporary hack).
> 
> 
> 
> 
> 
> On Mar 20, 2009, at 7:10 PM, Eric Firing wrote:
> 
>> Mike Bauer wrote:
>>> Eric,
>>> Thanks for the reply. I'm trying to show the relative 2d distribuion 
>>> between 2 sets of data. I thought the normalization would ease the 
>>> comparison. Fixing the ' doesn't help.
>>> So are you saying I need an instance of something.normalize rather 
>>> than just passing norm='normalize'?
>>
>> It sounds like you are misunderstanding the norm kwarg; it is for 
>> controlling the mapping of an arbitrary range of numbers to the 0-1 
>> range that is used in color mapping. The default is a linear mapping; 
>> one can use a log mapping instead ("norm=colors.LogNorm()"), or make 
>> your own mapping function, etc. The norm kwarg takes an instance of a 
>> Normalize class or subclass. See colors.py to find out what Normalize 
>> subclasses are available. But, you may not need to specify one at 
>> all, depending on what it is you are trying to do.
>>
>> I still don't understand what it is that you wanted to "normalize". 
>> What was the undesirable characteristic of the plot you had before you 
>> put in the norm kwarg?
>>
>> Eric
>>
>>> Mike
>>> Sent from my iPhone
>>> On Mar 20, 2009, at 5:15 PM, Eric Firing <ef...@ha...> wrote:
>>>> Mike Bauer wrote:
>>>>> Hello,
>>>>> Quick note. I'm making plots with hexbin and everything works 
>>>>> correctly until I try to use the norm='Normalize' option at which 
>>>>> point I get:
>>>>> Traceback (most recent call last):
>>>>> File "diff_engine_v2tmp.py", line 731, in <module>
>>>>> kept_and_discards)
>>>>> File "diff_engine_v2tmp.py", line 605, in main
>>>>> plt.hexbin(xdat,ydat,cmap=cm.jet,gridsize=25,norm=Normalize' )
>>>>
>>>> What is that single quote mark doing after Normalize? If we ignore 
>>>> it, then it looks like you are passing a class, not a class instance 
>>>> as the kwarg needs.
>>>>
>>>>> File "/opt/local/Library/Frameworks/Python.framework/Versions/2.5/ 
>>>>> lib/python2.5/site-packages/matplotlib/pyplot.py", line 1920, in 
>>>>> hexbin
>>>>> ret = gca().hexbin(*args, **kwargs)
>>>>> File "/opt/local/Library/Frameworks/Python.framework/Versions/2.5/ 
>>>>> lib/python2.5/site-packages/matplotlib/axes.py", line 5452, in hexbin
>>>>> collection.autoscale_None()
>>>>> File "/opt/local/Library/Frameworks/Python.framework/Versions/2.5/ 
>>>>> lib/python2.5/site-packages/matplotlib/cm.py", line 148, in 
>>>>> autoscale_None
>>>>> self.norm.autoscale_None(self._A)
>>>>> AttributeError: 'int' object has no attribute 'autoscale_None'
>>>>
>>>> This part of the traceback is also a little puzzling; I'm not sure 
>>>> why self.norm is an int at this point.
>>>>
>>>>> I assume this a bug of some sort.
>>>>
>>>> No, I think the problem is that you are passing a class instead of 
>>>> an instance of a class as the norm kwarg to hexbin. (It is not 
>>>> completely clear to me from the traceback, however--there is that 
>>>> strange single quote mark.) What kind of normalization are you 
>>>> trying to to? In other words, what are you trying to accomplish by 
>>>> specifying the norm kwarg?
>>>>
>>>> Eric
>>>>
>>>>
>>>>> Thanks for any ideas.
>>>>> Mike
>>>>> Using:
>>>>> os-x 10.5.6
>>>>> python 2.5.4 from macports
>>>>> matplotlib 0.98.5.2 from macports
>>>>> ------------------------------------------------------------------------------ 
>>>>>
>>>>> 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: Kaushik G. <Kau...@hm...> - 2009年03月21日 19:19:30
for one instance of the depth of thought that has gone into Matplotlib
http://assorted-experience.blogspot.com/2009/03/why-i-love-matplotlib-python.html
From: Eric F. <ef...@ha...> - 2009年03月21日 17:00:55
Vito De Tullio wrote:
> Hi!
> I'm a newbie of matplotlib, and I'm trying to plot a set of data... but I
> got blocked...
> 
> $ cat matplotliberr.py
> #!/usr/bin/env python
> 
> # dummy data to plot
> from datetime import date, timedelta
> from random import randint
> x = [ date.today() + timedelta(i) for i in range(10) ]
> y = [ randint(0, i) for i in range(10) ]
> 
> from matplotlib import pyplot
> pyplot.fill(x, y) # no problem using pyplot.plot(x, y)
Try fill_between instead of fill. Fill does not support units 
(arguments that are not simple number sequences), but fill_between does; 
in addition, I think fill_between is what you really want here.
Eric
> pyplot.show()
> $ ./matplotliberr.py
> /usr/lib/python2.6/site-packages/pytz/tzinfo.py:5: DeprecationWarning: the
> sets module is deprecated
> from sets import Set
> Traceback (most recent call last):
> File "./matplotliberr.py", line 10, in <module>
> pyplot.fill(x, y)
> File "/usr/lib/python2.6/site-packages/matplotlib/pyplot.py", line 1876,
> in fill
> ret = gca().fill(*args, **kwargs)
> File "/usr/lib/python2.6/site-packages/matplotlib/axes.py", line 5558, in
> fill
> for poly in self._get_patches_for_fill(*args, **kwargs):
> File "/usr/lib/python2.6/site-packages/matplotlib/axes.py", line 394, in
> _grab_next_args
> for seg in self._plot_2_args(remaining, **kwargs):
> File "/usr/lib/python2.6/site-packages/matplotlib/axes.py", line 331, in
> _plot_2_args
> func(x, y)
> File "/usr/lib/python2.6/site-packages/matplotlib/axes.py", line 314, in
> makefill
> (x[:,np.newaxis],y[:,np.newaxis])),
> TypeError: list indices must be integers, not tuple
> $ rpm -q python-matplotlib
> python-matplotlib-0.98.5.2-1.3
> 
From: eliben <el...@gm...> - 2009年03月21日 09:37:26
Adam Mercer wrote:
> 
> On Sun, Feb 22, 2009 at 16:59, Wai Yip Tung <tun...@ya...> wrote:
> 
>> I find that Matplotlib only have Python 2.5 build for Windows. Is there
>> any plan to release a 2.6 build soon? I am trying to build it from source
>> but I run into numerous problem. I am still struggling to find all
>> dependent packages. It will help a lot if the 2.6 installer is available.
> 
> AFAIK matplolib doesn't support python-2.6 yet, as NumPy doesn't.
> NumPy is expected to get python-2.6 support in the 1.3 release, so I
> imagine matplotlib will support python-2.6 in a release following the
> NumPy-1.3 release.
> 
> Cheers
> 
> Adam
> 
NumPy 1.3 has been released, with pre-built win32 binaries for Python 2.6
(http://sourceforge.net/project/showfiles.php?group_id=1369&package_id=175103).
Does this affect the plans to build matplotlib for py2.6 on win32 as well?
Is there a roadmap?
Thanks in advance
-- 
View this message in context: http://www.nabble.com/Python-2.6-installer-for-Windows--tp22152905p22634218.html
Sent from the matplotlib - users mailing list archive at Nabble.com.
From: Eric F. <ef...@ha...> - 2009年03月20日 23:11:13
Mike Bauer wrote:
> Eric,
> 
> Thanks for the reply. I'm trying to show the relative 2d distribuion 
> between 2 sets of data. I thought the normalization would ease the 
> comparison. Fixing the ' doesn't help.
> 
> So are you saying I need an instance of something.normalize rather than 
> just passing norm='normalize'?
It sounds like you are misunderstanding the norm kwarg; it is for 
controlling the mapping of an arbitrary range of numbers to the 0-1 
range that is used in color mapping. The default is a linear mapping; 
one can use a log mapping instead ("norm=colors.LogNorm()"), or make 
your own mapping function, etc. The norm kwarg takes an instance of a 
Normalize class or subclass. See colors.py to find out what Normalize 
subclasses are available. But, you may not need to specify one at all, 
depending on what it is you are trying to do.
I still don't understand what it is that you wanted to "normalize". 
What was the undesirable characteristic of the plot you had before you 
put in the norm kwarg?
Eric
> 
> Mike
> 
> Sent from my iPhone
> 
> On Mar 20, 2009, at 5:15 PM, Eric Firing <ef...@ha...> wrote:
> 
>> Mike Bauer wrote:
>>> Hello,
>>> Quick note. I'm making plots with hexbin and everything works 
>>> correctly until I try to use the norm='Normalize' option at which 
>>> point I get:
>>> Traceback (most recent call last):
>>> File "diff_engine_v2tmp.py", line 731, in <module>
>>> kept_and_discards)
>>> File "diff_engine_v2tmp.py", line 605, in main
>>> plt.hexbin(xdat,ydat,cmap=cm.jet,gridsize=25,norm=Normalize' )
>>
>> What is that single quote mark doing after Normalize? If we ignore 
>> it, then it looks like you are passing a class, not a class instance 
>> as the kwarg needs.
>>
>>> File "/opt/local/Library/Frameworks/Python.framework/Versions/2.5/ 
>>> lib/python2.5/site-packages/matplotlib/pyplot.py", line 1920, in hexbin
>>> ret = gca().hexbin(*args, **kwargs)
>>> File "/opt/local/Library/Frameworks/Python.framework/Versions/2.5/ 
>>> lib/python2.5/site-packages/matplotlib/axes.py", line 5452, in hexbin
>>> collection.autoscale_None()
>>> File "/opt/local/Library/Frameworks/Python.framework/Versions/2.5/ 
>>> lib/python2.5/site-packages/matplotlib/cm.py", line 148, in 
>>> autoscale_None
>>> self.norm.autoscale_None(self._A)
>>> AttributeError: 'int' object has no attribute 'autoscale_None'
>>
>> This part of the traceback is also a little puzzling; I'm not sure why 
>> self.norm is an int at this point.
>>
>>> I assume this a bug of some sort.
>>
>> No, I think the problem is that you are passing a class instead of an 
>> instance of a class as the norm kwarg to hexbin. (It is not 
>> completely clear to me from the traceback, however--there is that 
>> strange single quote mark.) What kind of normalization are you trying 
>> to to? In other words, what are you trying to accomplish by 
>> specifying the norm kwarg?
>>
>> Eric
>>
>>
>>> Thanks for any ideas.
>>> Mike
>>> Using:
>>> os-x 10.5.6
>>> python 2.5.4 from macports
>>> matplotlib 0.98.5.2 from macports
>>> ------------------------------------------------------------------------------ 
>>>
>>> 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: Eric F. <ef...@ha...> - 2009年03月20日 21:15:43
Mike Bauer wrote:
> Hello,
> 
> Quick note. I'm making plots with hexbin and everything works 
> correctly until I try to use the norm='Normalize' option at which 
> point I get:
> 
> Traceback (most recent call last):
> File "diff_engine_v2tmp.py", line 731, in <module>
> kept_and_discards)
> File "diff_engine_v2tmp.py", line 605, in main
> plt.hexbin(xdat,ydat,cmap=cm.jet,gridsize=25,norm=Normalize' )
What is that single quote mark doing after Normalize? If we ignore it, 
then it looks like you are passing a class, not a class instance as the 
kwarg needs.
> File "/opt/local/Library/Frameworks/Python.framework/Versions/2.5/ 
> lib/python2.5/site-packages/matplotlib/pyplot.py", line 1920, in hexbin
> ret = gca().hexbin(*args, **kwargs)
> File "/opt/local/Library/Frameworks/Python.framework/Versions/2.5/ 
> lib/python2.5/site-packages/matplotlib/axes.py", line 5452, in hexbin
> collection.autoscale_None()
> File "/opt/local/Library/Frameworks/Python.framework/Versions/2.5/ 
> lib/python2.5/site-packages/matplotlib/cm.py", line 148, in 
> autoscale_None
> self.norm.autoscale_None(self._A)
> AttributeError: 'int' object has no attribute 'autoscale_None'
This part of the traceback is also a little puzzling; I'm not sure why 
self.norm is an int at this point.
> 
> I assume this a bug of some sort.
No, I think the problem is that you are passing a class instead of an 
instance of a class as the norm kwarg to hexbin. (It is not completely 
clear to me from the traceback, however--there is that strange single 
quote mark.) What kind of normalization are you trying to to? In other 
words, what are you trying to accomplish by specifying the norm kwarg?
Eric
> 
> Thanks for any ideas.
> 
> Mike
> 
> Using:
> 	os-x 10.5.6
> 	python 2.5.4 from macports
> 	matplotlib 0.98.5.2 from macports
> 
> 
> 
> ------------------------------------------------------------------------------
> 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
15 messages has been excluded from this view by a project administrator.

Showing results of 394

<< < 1 .. 4 5 6 7 8 .. 16 > >> (Page 6 of 16)
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.
Thanks for helping keep SourceForge clean.
X





Briefly describe the problem (required):
Upload screenshot of ad (required):
Select a file, or drag & drop file here.
Screenshot instructions:

Click URL instructions:
Right-click on the ad, choose "Copy Link", then paste here →
(This may not be possible with some types of ads)

More information about our ad policies

Ad destination/click URL:

AltStyle によって変換されたページ (->オリジナル) /