Merge pull request #3205 from daschw/pgfx-legendfont

respect legendfontcolor in pgfplotsx
This commit is contained in:
Daniel Schwabeneder 2021-01-01 22:53:12 +01:00 committed by GitHub
commit 51df476015
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -163,11 +163,12 @@ function (pgfx_plot::PGFPlotsXPlot)(plt::Plot{PGFPlotsXBackend})
) => nothing, ) => nothing,
"fill" => cstr, "fill" => cstr,
"fill opacity" => a, "fill opacity" => a,
"text opacity" => alpha(plot_color(sp[:legendfontcolor])), "text opacity" => alpha(plot_color(sp[:legendfontcolor])),
"font" => pgfx_font( "font" => pgfx_font(
sp[:legendfontsize], sp[:legendfontsize],
pgfx_thickness_scaling(sp), pgfx_thickness_scaling(sp),
), ),
"text" => plot_color(sp[:legendfontcolor]),
), ),
"axis background/.style" => PGFPlotsX.Options( "axis background/.style" => PGFPlotsX.Options(
"fill" => bgc_inside, "fill" => bgc_inside,