diff --git a/src/args.jl b/src/args.jl index b305d613..61c90133 100644 --- a/src/args.jl +++ b/src/args.jl @@ -244,6 +244,7 @@ const _series_defaults = KW( :primary => true, # when true, this "counts" as a series for color selection, etc. the main use is to allow # one logical series to be broken up (path and markers, for example) :hover => nothing, # text to display when hovering over the data points + :stride => (1,1), # array stride for wireframe/surface, the first element is the row stride and the second is the column stride. ) @@ -504,6 +505,7 @@ add_aliases(:series_annotations, :series_ann, :seriesann, :series_anns, :seriesa add_aliases(:html_output_format, :format, :fmt, :html_format) add_aliases(:orientation, :direction, :dir) add_aliases(:inset_subplots, :inset, :floating) +add_aliases(:stride, :wirefame_stride, :surface_stride, :surf_str, :str) add_aliases(:gridlinewidth, :gridwidth, :grid_linewidth, :grid_width, :gridlw, :grid_lw) add_aliases(:gridstyle, :grid_style, :gridlinestyle, :grid_linestyle, :grid_ls, :gridls) add_aliases(:framestyle, :frame_style, :frame, :axesstyle, :axes_style, :boxstyle, :box_style, :box, :borderstyle, :border_style, :border) diff --git a/src/backends/pyplot.jl b/src/backends/pyplot.jl index 80a7f77c..2188191a 100644 --- a/src/backends/pyplot.jl +++ b/src/backends/pyplot.jl @@ -32,6 +32,7 @@ const _pyplot_attr = merge_with_base_supported([ :inset_subplots, :dpi, :colorbar_title, + :stride, :framestyle, ]) const _pyplot_seriestype = [ @@ -704,8 +705,8 @@ function py_add_series(plt::Plot{PyPlotBackend}, series::Series) handle = ax[st == :surface ? :plot_surface : :plot_wireframe](x, y, z; label = series[:label], zorder = series[:series_plotindex], - rstride = 1, - cstride = 1, + rstride = series[:stride][1], + cstride = series[:stride][2], linewidth = py_dpi_scale(plt, series[:linewidth]), edgecolor = py_linecolor(series), extrakw...