Re: [Matplotlib-users] Beginning Python Visualization??

2009-06-08 Thread Sebastian Busch
Esmail wrote:
 ...
 By the way, any idea how different the MayaVi interface is? I understand that
 matplotlib doesn't do 3D plots and I may want to plot some.
 ...

Hey Esmail,

there was the possibility for 3D plots in matplotlib:
http://www.scipy.org/Cookbook/Matplotlib/mplot3D

however, the mayavi mlab interface was designed explicitly to be as
simple as pylab.
http://code.enthought.com/projects/mayavi/docs/development/html/mayavi/mlab.html

have fun 3D plotting,
sebastian.



signature.asc
Description: OpenPGP digital signature
--
OpenSolaris 2009.06 is a cutting edge operating system for enterprises 
looking to deploy the next generation of Solaris that includes the latest 
innovations from Sun and the OpenSource community. Download a copy and 
enjoy capabilities such as Networking, Storage and Virtualization. 
Go to: http://p.sf.net/sfu/opensolaris-get___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] change the subplots

2009-06-08 Thread Matthias Michler
Hi Markus,

I'm not sure I understand correctly, but if you delete all the axes / subplots 
of your figure you cannot expect a graph showing up.

Maybe what you want to do is just changing the geometry of an existing axes 
with something like:

self.subplot1.change_geometry(2, 2, 3)

and delete only those subplots, that aren't needed for further plotting.

best regards
Matthias

On Thursday 04 June 2009 19:33:25 Markus Feldmann wrote:
 Hi All,

 i want to change my subplots sometimes, but how to do this ?

 I am adding subplots with this command:
 self.subplot1 = self.figure.add_subplot(211)

 Deleting axes with(as i read in this mailing list):
 [self.figure.delaxes(a) for a in self.figure.get_axes()]

 but then i can not show up my graph.

 What do i have to do ?

 regards Markus


--
OpenSolaris 2009.06 is a cutting edge operating system for enterprises 
looking to deploy the next generation of Solaris that includes the latest 
innovations from Sun and the OpenSource community. Download a copy and 
enjoy capabilities such as Networking, Storage and Virtualization. 
Go to: http://p.sf.net/sfu/opensolaris-get
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] Griddata

2009-06-08 Thread green63

I ve a problem with the use of griddata.
I have a grid of x,y with value z. the grid have 4500 points
I would like to have a rigular grid of 1500 points.
I try the function zi = griddata(x,y,z,xi,yi)
but I have an error too many indices. I don't understant why!!!
x,y,z,xi and yi are numpy array with 1 column.
Sorry for my bad english!!

Thanks

Josh Lawrence-2 wrote:
 
 Greetings all,
 
 In using the function griddata in mlab.py, I think I have found a bug.  
 The following line in mlab.py errors for me.
 I supply it an xi and yi that have shape (N,1). I have surface data,  
 but I only care about the variation in one direction. In mlab, when it  
 gets to this line (2956 in svn revision 7040):
 
   if min(xo[1:]-xo[0:-1])  0 or min(yo[1:]-yo[0:-1])  0:
   raise ValueError, 'output grid defined by xi,yi must be  
 monotone increasing'
 
 the result is an error. That is, I get the following:
 
   ValueError: min() arg is an empty sequence
 
 A couple of things. First, if I make my variation in x to be 2 points  
 (x = 0 for the case I'm interested in--so I just have both values of x  
 be zero), I do not get this error and I believe the result works. So,  
 it seems that there should be some handling of the case that there are  
 only 1 point in either x or y direction.
 
 Second, is it better to use the builtin python function min, or should  
 numpy.min be used instead?
 
 Cheers,
 
 Josh Lawrence
 Ph.D. Student
 Clemson University
 
 
 --
 Stay on top of everything new and different, both inside and 
 around Java (TM) technology - register by April 22, and save
 $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco.
 300 plus technical and hands-on sessions. Register today. 
 Use priority code J9JMT32. http://p.sf.net/sfu/p
 ___
 Matplotlib-users mailing list
 Matplotlib-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/matplotlib-users
 
 

-- 
View this message in context: 
http://www.nabble.com/Griddata-tp23083610p23929245.html
Sent from the matplotlib - users mailing list archive at Nabble.com.


--
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables unlimited
royalty-free distribution of the report engine for externally facing 
server and web deployment.
http://p.sf.net/sfu/businessobjects
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


[Matplotlib-users] imshow axis labels

2009-06-08 Thread Jeremy Lewi
Hi,
I'm using imshow to make an image of a 2-d matrix. I use 
set_xticklabels to adjust the x-axis labels. The problem is that when I 
then zoom in on the plot, the axis labels are not adjusted 
appropriately. Does anyone suggestions on how I can fix this?

Thanks
Jeremy

--
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables unlimited
royalty-free distribution of the report engine for externally facing 
server and web deployment.
http://p.sf.net/sfu/businessobjects
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


[Matplotlib-users] The easiest way to check-out matplotlib source

2009-06-08 Thread Gökhan SEVER
Hello,

How do you add you automatically check-out new added files from matplotlib
trunk? Is there a specific svn command for this?

Another question: For example IPython has uses bzr and when I issue bzr
branch lp:ipython command I grab the latest development branch. I do a
development installation quoting from IPython documentation:

Some users want to be able to follow the development branch as it changes.
If you have setuptools installed, this is easy. Simply replace the last step
by:

$ python setupegg.py develop


and one more step:

This creates links in the right places and installs the command line script
to the appropriate places. Then, if you want to update your IPython at any
time, just do:

$ bzr pull


No duplicated folders and bzr pulls the changes for me.

Could this be possible with matplotlib's VCS system?

Thank you

Gökhan
--
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables unlimited
royalty-free distribution of the report engine for externally facing 
server and web deployment.
http://p.sf.net/sfu/businessobjects___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] [matplotlib-devel] The easiest way to check-out matplotlib source

2009-06-08 Thread Gökhan SEVER
On Mon, Jun 8, 2009 at 2:16 PM, John Hunter jdh2...@gmail.com wrote:

 On Mon, Jun 8, 2009 at 2:14 PM, Gökhan SEVERgokhanse...@gmail.com wrote:
  Hello,
 
  How do you add you automatically check-out new added files from
 matplotlib
  trunk? Is there a specific svn command for this?


 Check out svn as indicated here::


 http://matplotlib.sourceforge.net/faq/installing_faq.html#install-from-svn

 Once you have a checkout, you can get updates with ::

   svn up

 JDH



I need to issue a python setup.py install after each svn up, right?
--
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables unlimited
royalty-free distribution of the report engine for externally facing 
server and web deployment.
http://p.sf.net/sfu/businessobjects___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] imshow axis labels

2009-06-08 Thread Michael Droettboom
What are you setting the x ticklabels to?  If you want to control how 
the numbers are displayed, you can create a custom formatter (which is 
basically a function to convert a floating-point number to a string).  
If you want to control the number of ticks across the axis, you can make 
a custom ticker.

If you can describe what your end goal is, I'm happy to describe the 
above options in more detail.

Cheers,
Mike

Jeremy Lewi wrote:
 Hi,
 I'm using imshow to make an image of a 2-d matrix. I use 
 set_xticklabels to adjust the x-axis labels. The problem is that when I 
 then zoom in on the plot, the axis labels are not adjusted 
 appropriately. Does anyone suggestions on how I can fix this?

 Thanks
 Jeremy

 --
 Crystal Reports - New Free Runtime and 30 Day Trial
 Check out the new simplified licensing option that enables unlimited
 royalty-free distribution of the report engine for externally facing 
 server and web deployment.
 http://p.sf.net/sfu/businessobjects
 ___
 Matplotlib-users mailing list
 Matplotlib-users@lists.sourceforge.net
 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


--
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables unlimited
royalty-free distribution of the report engine for externally facing 
server and web deployment.
http://p.sf.net/sfu/businessobjects
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] [matplotlib-devel] The easiest way to check-out matplotlib source

2009-06-08 Thread John Hunter
On Mon, Jun 8, 2009 at 2:14 PM, Gökhan SEVERgokhanse...@gmail.com wrote:
 Hello,

 How do you add you automatically check-out new added files from matplotlib
 trunk? Is there a specific svn command for this?


Check out svn as indicated here::

  http://matplotlib.sourceforge.net/faq/installing_faq.html#install-from-svn

Once you have a checkout, you can get updates with ::

   svn up

JDH

--
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables unlimited
royalty-free distribution of the report engine for externally facing 
server and web deployment.
http://p.sf.net/sfu/businessobjects
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] imshow axis labels

2009-06-08 Thread Jeremy Lewi
I want to let matplotlib control where the tick marks go, but I want to 
scale the value of the tick labels. For example,
if my matrix has a 100 columns the tick marks might be [0,25,50,100].  I 
want to scale these tick labels by some value say .01 so that the 
corresponding tick labels would be [0,.25,.5,1].

Now say I zoom in on the image so that the xaxis limits are (0,50). Lets 
suppose the tick marks are now [0,10,20,30,40,50]
Then in this case the tick labels should be
[0,.1,.2,.3,.4,.5]

So how do I go about creating a custom formatter?

Thanks
Jeremy

Michael Droettboom wrote:
 What are you setting the x ticklabels to?  If you want to control how 
 the numbers are displayed, you can create a custom formatter (which is 
 basically a function to convert a floating-point number to a string).  
 If you want to control the number of ticks across the axis, you can make 
 a custom ticker.

 If you can describe what your end goal is, I'm happy to describe the 
 above options in more detail.

 Cheers,
 Mike

 Jeremy Lewi wrote:
   
 Hi,
 I'm using imshow to make an image of a 2-d matrix. I use 
 set_xticklabels to adjust the x-axis labels. The problem is that when I 
 then zoom in on the plot, the axis labels are not adjusted 
 appropriately. Does anyone suggestions on how I can fix this?

 Thanks
 Jeremy

 --
 Crystal Reports - New Free Runtime and 30 Day Trial
 Check out the new simplified licensing option that enables unlimited
 royalty-free distribution of the report engine for externally facing 
 server and web deployment.
 http://p.sf.net/sfu/businessobjects
 ___
 Matplotlib-users mailing list
 Matplotlib-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/matplotlib-users
   
 

   


--
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables unlimited
royalty-free distribution of the report engine for externally facing 
server and web deployment.
http://p.sf.net/sfu/businessobjects
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users