add framestyle test example
This commit is contained in:
parent
d301d2a06b
commit
e2d107a70b
@ -502,7 +502,7 @@ add_aliases(:orientation, :direction, :dir)
|
|||||||
add_aliases(:inset_subplots, :inset, :floating)
|
add_aliases(:inset_subplots, :inset, :floating)
|
||||||
add_aliases(:gridlinewidth, :gridwidth, :grid_linewidth, :grid_width, :gridlw, :grid_lw)
|
add_aliases(:gridlinewidth, :gridwidth, :grid_linewidth, :grid_width, :gridlw, :grid_lw)
|
||||||
add_aliases(:gridstyle, :grid_style, :gridlinestyle, :grid_linestyle, :grid_ls, :gridls)
|
add_aliases(:gridstyle, :grid_style, :gridlinestyle, :grid_linestyle, :grid_ls, :gridls)
|
||||||
add_aliases(:framestyle, :frame_style, :frame, :axesstyle, :axes_style, :boxstyle, :box_style, :box)
|
add_aliases(:framestyle, :frame_style, :frame, :axesstyle, :axes_style, :boxstyle, :box_style, :box, :borderstyle, :border_style, :border)
|
||||||
|
|
||||||
|
|
||||||
# add all pluralized forms to the _keyAliases dict
|
# add all pluralized forms to the _keyAliases dict
|
||||||
|
|||||||
@ -155,7 +155,7 @@ PlotExample("Subplots",
|
|||||||
""",
|
""",
|
||||||
[:(begin
|
[:(begin
|
||||||
l = @layout([a{0.1h}; b [c;d e]])
|
l = @layout([a{0.1h}; b [c;d e]])
|
||||||
plot(randn(100,5), layout=l, t=[:line :histogram :scatter :steppre :bar], leg=false, ticks=nothing, border=false)
|
plot(randn(100,5), layout=l, t=[:line :histogram :scatter :steppre :bar], leg=false, ticks=nothing, border=:none)
|
||||||
end)]
|
end)]
|
||||||
),
|
),
|
||||||
|
|
||||||
@ -330,7 +330,7 @@ PlotExample("Spy",
|
|||||||
),
|
),
|
||||||
|
|
||||||
PlotExample("Magic grid argument",
|
PlotExample("Magic grid argument",
|
||||||
"The grid lines can be modified individually for each axis with the magic grid argument.",
|
"The grid lines can be modified individually for each axis with the magic `grid` argument.",
|
||||||
[:(begin
|
[:(begin
|
||||||
x = rand(10)
|
x = rand(10)
|
||||||
p1 = plot(x, title = "Default looks")
|
p1 = plot(x, title = "Default looks")
|
||||||
@ -341,6 +341,14 @@ PlotExample("Magic grid argument",
|
|||||||
end)]
|
end)]
|
||||||
),
|
),
|
||||||
|
|
||||||
|
PlotExample("Framestyle",
|
||||||
|
"The style of the frame/axes of a (sub)plot can be changed with the `framestyle` attribute. The default framestyle is `:axes`.",
|
||||||
|
[:(begin
|
||||||
|
histogram(fill(randn(1000), 5), framestyle = [:box :semi :axes :grid :none],
|
||||||
|
title = [":box" ":semi" ":axes" ":grid" ":none"], color = RowVector(1:5), layout = 5, label = "")
|
||||||
|
end)]
|
||||||
|
),
|
||||||
|
|
||||||
]
|
]
|
||||||
|
|
||||||
# ---------------------------------------------------------------------------------
|
# ---------------------------------------------------------------------------------
|
||||||
@ -365,7 +373,7 @@ test_examples(pkgname[, idx]; debug = false, disp = true, sleep = nothing,
|
|||||||
skip = [], only = nothing
|
skip = [], only = nothing
|
||||||
|
|
||||||
Run the `idx` test example for a given backend, or all examples if `idx`
|
Run the `idx` test example for a given backend, or all examples if `idx`
|
||||||
is not specified.
|
is not specified.
|
||||||
"""
|
"""
|
||||||
function test_examples(pkgname::Symbol; debug = false, disp = true, sleep = nothing,
|
function test_examples(pkgname::Symbol; debug = false, disp = true, sleep = nothing,
|
||||||
skip = [], only = nothing)
|
skip = [], only = nothing)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user