Merge pull request #1190 from daschw/tests
Minor test_example changes (close #1162)
This commit is contained in:
commit
020760f0c8
@ -262,7 +262,8 @@ PlotExample("Groups and Subplots",
|
|||||||
"",
|
"",
|
||||||
[:(begin
|
[:(begin
|
||||||
group = rand(map(i->"group $i",1:4),100)
|
group = rand(map(i->"group $i",1:4),100)
|
||||||
plot(rand(100), layout=@layout([a b;c]), group=group, linetype=[:bar :scatter :steppre])
|
plot(rand(100), layout=@layout([a b;c]), group=group,
|
||||||
|
linetype=[:bar :scatter :steppre], linecolor = :match)
|
||||||
end)]
|
end)]
|
||||||
),
|
),
|
||||||
|
|
||||||
@ -322,11 +323,11 @@ PlotExample("Animation with subplots",
|
|||||||
),
|
),
|
||||||
|
|
||||||
PlotExample("Spy",
|
PlotExample("Spy",
|
||||||
"For a matrix `mat` with unique nonzeros `spy(mat)` returns a colorless plot. If `mat` has various different nonzero values, a colorbar is added. The colorbar can be disabled with `legend = nothing`. As always, the marker shape and size can be changed with `spy(mat, markersize = 3, markershape = :star)`.",
|
"For a matrix `mat` with unique nonzeros `spy(mat)` returns a colorless plot. If `mat` has various different nonzero values, a colorbar is added. The colorbar can be disabled with `legend = nothing`.",
|
||||||
[:(begin
|
[:(begin
|
||||||
a = spdiagm((ones(50), ones(49), ones(49), ones(40), ones(40)),(0, 1, -1, 10, -10))
|
a = spdiagm((ones(50), ones(49), ones(49), ones(40), ones(40)),(0, 1, -1, 10, -10))
|
||||||
b = spdiagm((1:50, 1:49, 1:49, 1:40, 1:40),(0, 1, -1, 10, -10))
|
b = spdiagm((1:50, 1:49, 1:49, 1:40, 1:40),(0, 1, -1, 10, -10))
|
||||||
plot(spy(a, markershape = :dtriangle), spy(b), markersize = 3, title = ["Unique nonzeros" "Different nonzeros"])
|
plot(spy(a), spy(b), title = ["Unique nonzeros" "Different nonzeros"])
|
||||||
end)]
|
end)]
|
||||||
),
|
),
|
||||||
|
|
||||||
@ -345,8 +346,11 @@ PlotExample("Magic grid argument",
|
|||||||
PlotExample("Framestyle",
|
PlotExample("Framestyle",
|
||||||
"The style of the frame/axes of a (sub)plot can be changed with the `framestyle` attribute. The default framestyle is `:axes`.",
|
"The style of the frame/axes of a (sub)plot can be changed with the `framestyle` attribute. The default framestyle is `:axes`.",
|
||||||
[:(begin
|
[:(begin
|
||||||
histogram(fill(randn(1000), 5), framestyle = [:box :semi :axes :grid :none],
|
scatter(fill(randn(10), 6), fill(randn(10), 6),
|
||||||
title = [":box" ":semi" ":axes" ":grid" ":none"], color = RowVector(1:5), layout = 5, label = "")
|
framestyle = [:box :semi :origin :zerolines :grid :none],
|
||||||
|
title = [":box" ":semi" ":origin" ":zerolines" ":grid" ":none"],
|
||||||
|
color = RowVector(1:6), layout = 6, label = "", markerstrokewidth = 0,
|
||||||
|
ticks = -2:2)
|
||||||
end)]
|
end)]
|
||||||
),
|
),
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user