Fix regression in legend font size setting (#4100)

* take legend font attributes from existing font

* "format" file

* format remaining files

* better in the error box
This commit is contained in:
Simon Christ
2022-02-11 15:26:01 +01:00
committed by GitHub
parent 6c67908a3a
commit 0813b18d69
4 changed files with 15 additions and 7 deletions
+5
View File
@@ -76,6 +76,11 @@ end # testset
@test p[1][:legend_background_color] == RGBA{Float64}(0.0, 1.0, 1.0, 1.0)
@test p[1][:legend_foreground_color] == RGBA{Float64}(0.0, 0.5019607843137255, 0.0, 1.0)
#remember settings
plot(legend_font_pointsize = 20)
sp = plot!(label = "R")[1]
@test Plots.legendfont(sp).pointsize == 20
#setting whole font
sp = plot(
1:5,