Matplotlib's Rstride, Cstride Messes Up Color Maps In Plot_surface 3d Plot?
I have a large dataset consisting of 3595 .csv files containing 1252 pairs of x,y tuples. Each file represents a time frame. These are plottet using plot_surf(). I found out, that
Solution 1:
Have a look at the docs. In particular this:
The rstride and cstride kwargs set the stride used to sample the input data to generate the graph. If 1k by 1k arrays are passed in, the default values for the strides will result in a 100x100 grid being plotted. Defaults to 10. Raises a ValueError if both stride and count kwargs (see next section) are provided.
This should answer your question: if rstride
and cstride
are not 1, not all the points are used to draw the surface.
This saves time, because the more the points to plot, the longer the time needed to compute the plot.
But at the same time, if your surface has a high variability, skipping 9 points over 10 in the plot will result in a different picture.
Post a Comment for "Matplotlib's Rstride, Cstride Messes Up Color Maps In Plot_surface 3d Plot?"