> This is because the default rstride and cstride arguments is 10, IIRC.  Since 
> your array is only 12x12, the surface plotting is barely plotting anything.  
> Try calling:
> 
> ax.plot_surface(x, y, a, rstride=1, cstride=1)


You know, this has tripped me up a few times too.  I don't use plot_surface 
often enough to always remember this, and it is not the first parameter I think 
to check when debugging a program.  Is there a reason the default rstride and 
cstride aren't 1 other than possible memory constraints for large arrays?  

I suppose changing the defaults might break programs that rely on this 
behavior, but if this API ever gets revamped, consider this a request to make 1 
be the default instead.  I would think that the default should be that the 
obvious command "just works" while plots that may require too much memory can 
be tweaked to work faster (I'm assuming that is the reason for the default of 
10). 

thanks
Ethan
------------------------------------------------------------------------------
LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial
Remotely access PCs and mobile devices and provide instant support
Improve your efficiency, and focus on delivering more value-add services
Discover what IT Professionals Know. Rescue delivers
http://p.sf.net/sfu/logmein_12329d2d
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to