diff --git a/src/args.jl b/src/args.jl index f312675f..5f9e320d 100644 --- a/src/args.jl +++ b/src/args.jl @@ -502,7 +502,7 @@ add_aliases(:orientation, :direction, :dir) add_aliases(:inset_subplots, :inset, :floating) 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) +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 diff --git a/src/examples.jl b/src/examples.jl index 8ae108ef..d1775f47 100644 --- a/src/examples.jl +++ b/src/examples.jl @@ -155,7 +155,7 @@ PlotExample("Subplots", """, [:(begin 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)] ), @@ -330,7 +330,7 @@ PlotExample("Spy", ), 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 x = rand(10) p1 = plot(x, title = "Default looks") @@ -341,6 +341,14 @@ PlotExample("Magic grid argument", 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 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, skip = [], only = nothing)