Stride size in mplot3d

Hello,

i am working on some 3d stuff with plot_surface() , my problem is that i
want to use a stride smaller then 1.
Since my data is only on an intervall from -1 to 1, in x and in y direction
i want to plot a 3d grid with at least 20 lines in each direction, is there
a possibility to do this ?

thanks

···

--
View this message in context: http://matplotlib.1069221.n5.nabble.com/Stride-size-in-mplot3d-tp38500.html
Sent from the matplotlib - users mailing list archive at Nabble.com.

Hello,

i am working on some 3d stuff with plot_surface() , my problem is that i
want to use a stride smaller then 1.

The stride refers to the *array* stride. So a stride of < 1 makes no
sense.

Since my data is only on an intervall from -1 to 1, in x and in y direction
i want to plot a 3d grid with at least 20 lines in each direction, is there
a possibility to do this ?

An rstride of 1 will plot every row. A cstride of 3 will plot every 3rd
column. If your data is in a 2D array of dimensions 100x100, say, then
setting rstride=5 and cstride=5 will plot every 5th row and every 5th
column, giving 20 lines in each direction. The kwargs rstride and
cstride do not care about the domain of your data.

Hope this helps.

···

On Sun, Aug 12, 2012 at 01:23:35PM -0700, jonasr wrote:

--
Damon McDougall
http://www.damon-is-a-geek.com
B2.39
Mathematics Institute
University of Warwick
Coventry
West Midlands
CV4 7AL
United Kingdom