Bbs/legendfontx (#4119)

* revert legendfont being determant

* format

* fix precompiles
This commit is contained in:
Simon Christ
2022-02-26 17:26:14 +01:00
committed by GitHub
parent e31d056820
commit 95fd48ed9b
7 changed files with 27 additions and 35 deletions
+6 -1
View File
@@ -1,4 +1,4 @@
using Plots, Test, Colors
using Plots, Test, Plots.Colors
const PLOTS_DEFAULTS = Dict(:theme => :wong2, :fontfamily => :palantino)
Plots.__init__()
@@ -93,4 +93,9 @@ end # testset
# match mechanism
@test sp[:legend_font_color] == sp[:foreground_color_subplot]
@test Plots.legendfont(sp).color == sp[:foreground_color_subplot]
# magic invocation
@test_nowarn sp = plot(; legendfont = 12)[1]
@test sp[:legend_font_pointsize] == 12
@test Plots.legendfont(sp).pointsize == 12
end # testset