Re: [Matplotlib-users] plot_surface does not work

2013-09-25 Thread vwf
On Tue, Sep 24, 2013 at 03:46:52PM -0700, Jody Klymak wrote: [...] > > 2) Can I suggest this example be added to the tutorial? > http://stackoverflow.com/questions/6539944/color-matplotlib-plot-surface-command-with-surface-gradient > None of the other examples explain how to colour your surface wi

Re: [Matplotlib-users] plot_surface does not work

2013-09-24 Thread Jody Klymak
Hi All, On Dec 11, 2012, at 16:59 PM, Damon McDougall wrote: > On Tue, Dec 11, 2012 at 1:16 PM, Benjamin Root wrote: >> >> >> On Tue, Dec 11, 2012 at 2:08 PM, Chloe Lewis wrote: >>> >>> Would it be workable for the default to be proportional to the size of the >>> array passed in? (sugge

Re: [Matplotlib-users] plot_surface does not work

2012-12-11 Thread Damon McDougall
On Tue, Dec 11, 2012 at 1:16 PM, Benjamin Root wrote: > > > On Tue, Dec 11, 2012 at 2:08 PM, Chloe Lewis wrote: >> >> 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 investigati

Re: [Matplotlib-users] plot_surface does not work

2012-12-11 Thread Chloe Lewis
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:1

Re: [Matplotlib-users] plot_surface does not work

2012-12-11 Thread Benjamin Root
On Tue, Dec 11, 2012 at 2:08 PM, Chloe Lewis wrote: > 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 > > That is pretty much what

Re: [Matplotlib-users] plot_surface does not work

2012-12-11 Thread Benjamin Root
On Tue, Dec 11, 2012 at 12:17 PM, Ethan Gutmann 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 kn

Re: [Matplotlib-users] plot_surface does not work

2012-12-11 Thread Ethan Gutmann
> 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_s

Re: [Matplotlib-users] plot_surface does not work

2012-12-11 Thread Benjamin Root
On Tue, Dec 11, 2012 at 8:25 AM, Degang Wu wrote: > Hi, > > My OS is Mac OS X Lion, and the version of matplotlib is 1.2.0 from > macport. > > Now I have an 2d array > > a=array([[ 0.,0.,0.,0., >0.,0.,0.,

[Matplotlib-users] plot_surface does not work

2012-12-11 Thread Degang Wu
Hi, My OS is Mac OS X Lion, and the version of matplotlib is 1.2.0 from macport. Now I have an 2d array a=array([[ 0.,0.,0.,0., 0.,0.,0.,0., 0.,0.,0.,