Merge pull request #3330 from yha/segment-example-no-cycle
No implicit cycling in example
This commit is contained in:
commit
4d5f76b80d
@ -1029,6 +1029,8 @@ const _examples = PlotExample[
|
|||||||
"Vectors of markershapes and segments",
|
"Vectors of markershapes and segments",
|
||||||
"",
|
"",
|
||||||
[quote
|
[quote
|
||||||
|
using Base.Iterators: cycle, take
|
||||||
|
|
||||||
yv = ones(9)
|
yv = ones(9)
|
||||||
ys = [1; 1; NaN; ones(6)]
|
ys = [1; 1; NaN; ones(6)]
|
||||||
y = 5 .- [yv 2ys 3yv 4ys]
|
y = 5 .- [yv 2ys 3yv 4ys]
|
||||||
@ -1036,9 +1038,9 @@ const _examples = PlotExample[
|
|||||||
plt_color_rows = plot(
|
plt_color_rows = plot(
|
||||||
y,
|
y,
|
||||||
seriestype = [:path :path :scatter :scatter],
|
seriestype = [:path :path :scatter :scatter],
|
||||||
markershape = [:utriangle, :rect],
|
markershape = collect(take(cycle((:utriangle, :rect)), 9)),
|
||||||
markersize = 8,
|
markersize = 8,
|
||||||
color = [:red, :black],
|
color = collect(take(cycle((:red, :black)), 9))
|
||||||
)
|
)
|
||||||
|
|
||||||
plt_z_cols = plot(
|
plt_z_cols = plot(
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user