Re: [Matplotlib-users] No color scaling when using plot_surface. Please help

2010-07-12 Thread Benjamin Root
Ah, I misread your original post and thought you were talking about pcolor. I will take a look at plot_surface and see if there is a possible reason for your issue. I have an idea of what is happening, but I have to see the code when I get back to my office tomorrow. Ben Root On Sun, Jul 11,

Re: [Matplotlib-users] No color scaling when using plot_surface. Please help

2010-07-11 Thread Jeremy Conlin
On Friday, July 9, 2010, Benjamin Root ben.r...@ou.edu wrote: Jeremy, I believe that 0.99.1 is fairly old.  I don't know when Axes3D came along, but I am sure you can find it in 0.99.3.  It is most definitely in 1.0, but you might not need to go that far if your distro does not provide it.

Re: [Matplotlib-users] No color scaling when using plot_surface. Please help

2010-07-09 Thread Jeremy Conlin
On Thu, Jul 8, 2010 at 8:41 AM, Jeremy Conlin jlcon...@gmail.com wrote: On Sun, Jul 4, 2010 at 8:38 PM, Benjamin Root ben.r...@ou.edu wrote: Jeremy, The pcolor function can take a vmin and a vmax parameter if you wish to control the colorscaling.  In addition, you can use a special array

Re: [Matplotlib-users] No color scaling when using plot_surface. Please help

2010-07-09 Thread Benjamin Root
Jeremy, I believe that 0.99.1 is fairly old. I don't know when Axes3D came along, but I am sure you can find it in 0.99.3. It is most definitely in 1.0, but you might not need to go that far if your distro does not provide it. Ben Root On Fri, Jul 9, 2010 at 4:50 PM, Jeremy Conlin

Re: [Matplotlib-users] No color scaling when using plot_surface. Please help

2010-07-08 Thread Jeremy Conlin
On Sun, Jul 4, 2010 at 8:38 PM, Benjamin Root ben.r...@ou.edu wrote: Jeremy, The pcolor function can take a vmin and a vmax parameter if you wish to control the colorscaling.  In addition, you can use a special array structure called a masked array to have pcolor ignore special values.

Re: [Matplotlib-users] No color scaling when using plot_surface. Please help

2010-07-05 Thread Jae-Joon Lee
On Wed, Jun 30, 2010 at 10:39 AM, Jeremy Conlin jlcon...@gmail.com wrote: Essentially my question is: how can I get a nice color distribution while at the same time avoid the extreme scaling issues associated with some data being zero (while all the other data is ~16)? It seems that

Re: [Matplotlib-users] No color scaling when using plot_surface. Please help

2010-07-04 Thread Benjamin Root
Jeremy, The pcolor function can take a vmin and a vmax parameter if you wish to control the colorscaling. In addition, you can use a special array structure called a masked array to have pcolor ignore special values. Assuming your data is 'vals': vals_masked = numpy.ma.masked_array(vals, vals

[Matplotlib-users] No color scaling when using plot_surface. Please help

2010-06-30 Thread Jeremy Conlin
I am trying to plot some data over a mesh using the plot_surface method. However when I plot my data, everything is the same color when I expected to get a nice rainbow of colors as in the example: http://matplotlib.sourceforge.net/examples/mplot3d/surface3d_demo.html I have attached a simple