Would it be workable for the default to be proportional to the size of the 
array passed in? (suggested only because I do that myself, when deciding how 
coarse an investigative plot I can get away with.) 

&C


On Dec 11, 2012, at 9:28 AM, Benjamin Root wrote:

> 
> 
> On Tue, Dec 11, 2012 at 12:17 PM, Ethan Gutmann <ethan.gutm...@gmail.com> 
> wrote:
> > 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).
> 
> 
> I actually don't know the reason for the defaults (I didn't create mplot3d), 
> but that has always been my suspicion.  There is an existing PR to change the 
> default behavior to be somewhat "automatic".  At the time, I wasn't really in 
> favor of it, but when looked in this light, it does make some more sense.
> 
> I'll have to think about this a bit more.
> Ben Root
> 
> ------------------------------------------------------------------------------
> 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

------------------------------------------------------------------------------
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