From f418acf3873f4f0655e9fda021b8f35443081227 Mon Sep 17 00:00:00 2001 From: yha Date: Wed, 3 Mar 2021 00:00:25 +0200 Subject: [PATCH] No implicit cycling in example --- src/examples.jl | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/examples.jl b/src/examples.jl index 1d5daecc..cfc8e96f 100644 --- a/src/examples.jl +++ b/src/examples.jl @@ -1029,6 +1029,8 @@ const _examples = PlotExample[ "Vectors of markershapes and segments", "", [quote + using Base.Iterators: cycle, take + yv = ones(9) ys = [1; 1; NaN; ones(6)] y = 5 .- [yv 2ys 3yv 4ys] @@ -1036,9 +1038,9 @@ const _examples = PlotExample[ plt_color_rows = plot( y, seriestype = [:path :path :scatter :scatter], - markershape = [:utriangle, :rect], + markershape = collect(take(cycle((:utriangle, :rect)), 9)), markersize = 8, - color = [:red, :black], + color = collect(take(cycle((:red, :black)), 9)) ) plt_z_cols = plot(