format
This commit is contained in:
parent
a3451ab507
commit
44b8f4a508
@ -1496,7 +1496,8 @@ function RecipesPipeline.preprocess_attributes!(plotattributes::AKW)
|
|||||||
end
|
end
|
||||||
|
|
||||||
# fonts
|
# fonts
|
||||||
for fontname in (:titlefont, :legend_title_font, :plot_titlefont, :colorbar_titlefont, :legend_font)
|
for fontname in
|
||||||
|
(:titlefont, :legend_title_font, :plot_titlefont, :colorbar_titlefont, :legend_font)
|
||||||
args = RecipesPipeline.pop_kw!(plotattributes, fontname, ())
|
args = RecipesPipeline.pop_kw!(plotattributes, fontname, ())
|
||||||
for arg in wraptuple(args)
|
for arg in wraptuple(args)
|
||||||
processFontArg!(plotattributes, fontname, arg)
|
processFontArg!(plotattributes, fontname, arg)
|
||||||
|
|||||||
@ -95,7 +95,7 @@ end # testset
|
|||||||
@test Plots.legendfont(sp).color == sp[:foreground_color_subplot]
|
@test Plots.legendfont(sp).color == sp[:foreground_color_subplot]
|
||||||
|
|
||||||
# magic invocation
|
# magic invocation
|
||||||
@test_nowarn sp = plot(;legendfont = 12)[1]
|
@test_nowarn sp = plot(; legendfont = 12)[1]
|
||||||
@test sp[:legend_font_pointsize] == 12
|
@test sp[:legend_font_pointsize] == 12
|
||||||
@test Plots.legendfont(sp).pointsize == 12
|
@test Plots.legendfont(sp).pointsize == 12
|
||||||
end # testset
|
end # testset
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user