fix tests

This commit is contained in:
Simon Christ 2021-05-07 08:14:37 +02:00
parent f355ff9904
commit 35658bf4fe

View File

@ -131,9 +131,6 @@ function (pgfx_plot::PGFPlotsXPlot)(plt::Plot{PGFPlotsXBackend})
axis_height = sp_height - (tpad + bpad) axis_height = sp_height - (tpad + bpad)
axis_width = sp_width - (rpad + lpad) axis_width = sp_width - (rpad + lpad)
cstr = plot_color(sp[:background_color_legend])
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(title_cstr) title_a = alpha(title_cstr)
title_loc = sp[:titlelocation] title_loc = sp[:titlelocation]
@ -782,6 +779,9 @@ function pgfx_get_legend_pos(v::Tuple{S,Symbol}) where S <: Real
end end
function pgfx_get_legend_style(sp) function pgfx_get_legend_style(sp)
cstr = plot_color(sp[:background_color_legend])
a = alpha(cstr)
fg_alpha = alpha(plot_color(sp[:foreground_color_legend]))
legfont = legendfont(sp) legfont = legendfont(sp)
PGFPlotsX.Options( PGFPlotsX.Options(
pgfx_linestyle( pgfx_linestyle(