legend opacity
This commit is contained in:
parent
7ea1eebc9e
commit
c4354c86c0
@ -102,8 +102,9 @@ function (pgfx_plot::PGFPlotsXPlot)(plt::Plot{PGFPlotsXBackend})
|
|||||||
bb = bbox(sp)
|
bb = bbox(sp)
|
||||||
cstr = plot_color(sp[:background_color_legend])
|
cstr = plot_color(sp[:background_color_legend])
|
||||||
a = alpha(cstr)
|
a = alpha(cstr)
|
||||||
|
fg_alpha = alpha(plot_color(sp[:foreground_color_legend]))
|
||||||
title_cstr = plot_color(sp[:titlefontcolor])
|
title_cstr = plot_color(sp[:titlefontcolor])
|
||||||
title_a = alpha(cstr)
|
title_a = alpha(title_cstr)
|
||||||
axis_opt = PGFPlotsX.Options(
|
axis_opt = PGFPlotsX.Options(
|
||||||
"height" => string(height(bb)),
|
"height" => string(height(bb)),
|
||||||
"width" => string(width(bb)),
|
"width" => string(width(bb)),
|
||||||
@ -115,8 +116,10 @@ function (pgfx_plot::PGFPlotsXPlot)(plt::Plot{PGFPlotsXBackend})
|
|||||||
"rotate" => sp[:titlefontrotation]
|
"rotate" => sp[:titlefontrotation]
|
||||||
),
|
),
|
||||||
"legend style" => PGFPlotsX.Options(
|
"legend style" => PGFPlotsX.Options(
|
||||||
pgfx_linestyle(pgfx_thickness_scaling(sp), sp[:foreground_color_legend], 1.0, "solid") => nothing,
|
pgfx_linestyle(pgfx_thickness_scaling(sp), sp[:foreground_color_legend], fg_alpha, "solid") => nothing,
|
||||||
"fill" => cstr,
|
"fill" => cstr,
|
||||||
|
"fill opacity" => a,
|
||||||
|
"text opacity" => alpha(plot_color(sp[:legendfontcolor])),
|
||||||
"font" => pgfx_font(sp[:legendfontsize], pgfx_thickness_scaling(sp))
|
"font" => pgfx_font(sp[:legendfontsize], pgfx_thickness_scaling(sp))
|
||||||
),
|
),
|
||||||
"axis background/.style" => PGFPlotsX.Options(
|
"axis background/.style" => PGFPlotsX.Options(
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user