diff --git a/src/consts.jl b/src/consts.jl index c94f7aab..5d0996e4 100644 --- a/src/consts.jl +++ b/src/consts.jl @@ -50,6 +50,7 @@ const _magic_axis_args = [:axis, :tickfont, :guidefont, :grid, :minorgrid] const _magic_subplot_args = [:title_font, :legend_font, :legend_title_font, :plot_title_font, :colorbar_titlefont] const _magic_series_args = [:line, :marker, :fill] +const _all_magic_args = sort(union(_magic_axis_args, _magic_series_args, _magic_subplot_args)) const _all_axis_args = sort(union([_axis_args; _magic_axis_args])) const _all_subplot_args = sort(union([_subplot_args; _magic_subplot_args])) diff --git a/test/test_defaults.jl b/test/test_defaults.jl index 2f1971f5..a5576145 100644 --- a/test/test_defaults.jl +++ b/test/test_defaults.jl @@ -12,6 +12,13 @@ end empty!(PLOTS_DEFAULTS) Plots.__init__() +@testset "default" begin + default(fillrange=0) + @test Plots._series_defaults[:fillrange] == 0 + pl = plot(1:5) + @test pl[1][1][:fillrange] == 0 +end + @testset "Legend defaults" begin p = plot() @test p[1][:legend_font_family] == "sans-serif"