Re: [matplotlib-devel] 3D Axes scatter : no possibility to vary color/size of markers

2009-11-19 Thread Ensitof

I got the same problem and posted my question in this forum 
http://www.developpez.net/forums/d836964/autres-langages/python-zope/calcul-scientifique/matplotlib-scatter3d-colorisation-fonction-z/
(here)  a few days ago... My question receives a lot of visits but no
reaction however I think it may be an important information for people
wanting to use matplotlib efficiently. Please let me know if you can find
anything about it :confused: Even if everything works perfect with 2D
scatter I can't solve this issue with scatter3D. Knowing that's it's a bug
should already be a nice answer...

Luc Estebanez wrote:
> 
> Dear All,
> 
> I am trying to use the new 3D facilities offered by Matplotlib.
> I know the mlab module of Mayavi, but I am interested in the vector 
> export facilities offered by matplotlib.
> 
> Here is my issue : I can't manage to vary the color and/or size of the 
> markers when doing 3D scatter plots :
> 
> fig = plt.figure()
> ax = Axes3D(fig)
> ax.scatter([1,2,3],[3,1,2],[1,2,0],c='r',s=[4,10,20])
> 
> The code above doesn't show size changes for each marker, just like :
> 
> ax.scatter([1,2,3],[3,1,2],[1,2,0])
> 
> Does anyone have an idea of what is going on ?
> 
> Thanks a lot,
> luc
> 
> (I already posted this issue on the user list, but it seems to be a bug, 
> and no one their seemed very interested in this  issue either...)
> 
> 
> 
> ---
> luc Estebanez
> Graduate Student,
> ENS, Paris
> 
> --
> Let Crystal Reports handle the reporting - Free Crystal Reports 2008
> 30-Day 
> trial. Simplify your report design, integration and deployment - and focus
> on 
> what you do best, core application coding. Discover what's new with
> Crystal Reports now.  http://p.sf.net/sfu/bobj-july
> ___
> Matplotlib-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/matplotlib-devel
> 
> 

-- 
View this message in context: 
http://old.nabble.com/3D-Axes-scatter-%3A-no-possibility-to-vary-color-size-of-markers-tp26335289p26421301.html
Sent from the matplotlib - devel mailing list archive at Nabble.com.


--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
___
Matplotlib-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/matplotlib-devel


Re: [matplotlib-devel] 3D Axes scatter : no possibility to vary color/size of markers

2009-11-19 Thread John Hunter
On Thu, Nov 19, 2009 at 6:02 AM, Ensitof  wrote:
>
> I got the same problem and posted my question in this forum
> http://www.developpez.net/forums/d836964/autres-langages/python-zope/calcul-scientifique/matplotlib-scatter3d-colorisation-fonction-z/
> (here)  a few days ago... My question receives a lot of visits but no
> reaction however I think it may be an important information for people
> wanting to use matplotlib efficiently. Please let me know if you can find
> anything about it :confused: Even if everything works perfect with 2D
> scatter I can't solve this issue with scatter3D. Knowing that's it's a bug
> should already be a nice answer...
>

Please file a bug on the tracker and I will assign it to Reinier

http://sourceforge.net/tracker/?atid=560720&group_id=80706&func=browse

Thanks,
JDH

--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
___
Matplotlib-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/matplotlib-devel


[matplotlib-devel] matplotlib is breaking numpy

2009-11-19 Thread Mathew Yeates
There is definitely something wrong with matplotlib/numpy. Consider the
following
>from numpy import *
>mydata=memmap('map.dat',dtype=float64,mode='w+',shape=56566500)
> del mydata

I can now remove the file map.dat with (from the command line) $rm map.dat

However
If I plot  mydata before the line
> del mydata


I can't get rid of the file until I exit python!!
Does matplotlib keep a reference to the data? How can I remove this
reference?

Mathew
--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july___
Matplotlib-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/matplotlib-devel


Re: [matplotlib-devel] matplotlib is breaking numpy

2009-11-19 Thread Michael Droettboom
Yes, for efficiency reasons matplotlib will use a reference to original 
data whenever possible, rather than copying it.  Also, when using the 
pylab/pyplot API, matplotlib figures also stay around until they are 
explicitly deleted.  You may need an explicit call to "clf('all')" to 
remove the figures, and thus references to the memmap'd file.

However, my advice would be to just not use memmap.  I can't imagine 
matplotlib performs very well if the data can't all fit in memory, so 
you might as well just load it all into memory anyway.

Mike

Mathew Yeates wrote:
> There is definitely something wrong with matplotlib/numpy. Consider 
> the following
> >from numpy import *
> >mydata=memmap('map.dat',dtype=float64,mode='w+',shape=56566500)
> > del mydata
>
> I can now remove the file map.dat with (from the command line) $rm map.dat
>
> However
> If I plot  mydata before the line
> > del mydata
>
>
> I can't get rid of the file until I exit python!!
> Does matplotlib keep a reference to the data? How can I remove this 
> reference?
>
> Mathew
> 
>
> --
> Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
> trial. Simplify your report design, integration and deployment - and focus on 
> what you do best, core application coding. Discover what's new with
> Crystal Reports now.  http://p.sf.net/sfu/bobj-july
> 
>
> ___
> Matplotlib-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/matplotlib-devel
>   

-- 
Michael Droettboom
Science Software Branch
Operations and Engineering Division
Space Telescope Science Institute
Operated by AURA for NASA


--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
___
Matplotlib-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/matplotlib-devel


Re: [matplotlib-devel] [Numpy-discussion] Beginner Needing Help with Installation

2009-11-19 Thread David Warde-Farley
On 19-Nov-09, at 5:36 PM, Scot Denhalter wrote:

> On Thu, Nov 19, 2009 at 2:46 PM, Eric Firing   
> wrote:
>>
>> You don't need a fortran compiler for numpy, even if you are building
>> from source; and you probably don't need to build from source.  Did  
>> you
>> try the suggested binary packages for the Mac as listed on the nltk  
>> site?
>>
>> http://www.nltk.org/download

> Yes, I downloaded the files recommended on that webpage.  The tar.gz  
> files
> unpack, but they do not install, and I am too much of a newbie to  
> figure out
> how to install the files in the unpacked folder.  No matter where I  
> placed
> the numpy folder, I couldn't get Python 2.6 to find and install numpy.
>
> Nevertheless, I did finally find .dmg downloads for numpy and  
> matplotlib and
> they installed without my having to get involved.
>
> But when I run a dispersion_plot function, I get an error message from
> Python, which I don't understand:
>
> Warning (from warnings module):
>  File
> "/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/ 
> site-packages/matplotlib/dates.py",
> line 91
>import pytz.zoneinfo
> ImportWarning: Not importing directory
> '/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/ 
> site-packages/pytz/zoneinfo':
> missing __init__.py
>
> Python launches the dispersion plot in another window as it apparently
> should, so why am I getting an error message?  Perhaps, those of you  
> who
> program in Python can explain this  to me.

I don't know why it would be trying to import zoneinfo since it  
doesn't seem to be a code directory, it just contains various data for  
timezone stuff. I'm CC'ing matplotlib-devel since that's really a  
matplotlib problem and not a Python or NumPy one.

David

P.S. please don't top-post replies, it makes things hard to follow.




--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
___
Matplotlib-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/matplotlib-devel