add tests for default function
This commit is contained in:
parent
3313780b4e
commit
754038aaed
@ -50,6 +50,7 @@ const _magic_axis_args = [:axis, :tickfont, :guidefont, :grid, :minorgrid]
|
|||||||
const _magic_subplot_args =
|
const _magic_subplot_args =
|
||||||
[:title_font, :legend_font, :legend_title_font, :plot_title_font, :colorbar_titlefont]
|
[:title_font, :legend_font, :legend_title_font, :plot_title_font, :colorbar_titlefont]
|
||||||
const _magic_series_args = [:line, :marker, :fill]
|
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_axis_args = sort(union([_axis_args; _magic_axis_args]))
|
||||||
const _all_subplot_args = sort(union([_subplot_args; _magic_subplot_args]))
|
const _all_subplot_args = sort(union([_subplot_args; _magic_subplot_args]))
|
||||||
|
|||||||
@ -12,6 +12,13 @@ end
|
|||||||
empty!(PLOTS_DEFAULTS)
|
empty!(PLOTS_DEFAULTS)
|
||||||
Plots.__init__()
|
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
|
@testset "Legend defaults" begin
|
||||||
p = plot()
|
p = plot()
|
||||||
@test p[1][:legend_font_family] == "sans-serif"
|
@test p[1][:legend_font_family] == "sans-serif"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user