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 <jlcon...@gmail.com> wrote:

> 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
> >> structure called a "masked array" to have pcolor ignore "special"
> values.
> >> Assuming your data is 'vals':
> >>
> >> vals_masked = numpy.ma.masked_array(vals, vals == 0.0)
> >>
> >> Note that depending on your situation, doing an equality with with a
> >> floating point  value probably isn't very reliable, so be sure to test
> and
> >> modify to suit your needs.  'vals_masked' can then be passed to pcolor
> >> instead of vals.
> >
> > Yes, I think this is exactly what I need.  Thanks!
> >
>
> To follow up with my response, I tried the above and it works nicely
> with pyplot.pcolor.  I would like to get a 3D version of this, like I
> get using Axes3D.plot_surface.  Is this just not implemented yet?  I
> am using 0.99.1.1.  Has this been implemented in matplotlib 1.0?
>
> Thanks,
> Jeremy
>
------------------------------------------------------------------------------
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to