fix center and default case

This commit is contained in:
Simon Christ 2021-05-04 16:45:40 +02:00
parent d405be28fc
commit 5e154f9bf3

View File

@ -805,7 +805,7 @@ end
function pgfx_get_legend_style(sp) function pgfx_get_legend_style(sp)
legfont = legendfont(sp) legfont = legendfont(sp)
PGFPlotsX.Options( PGFPlotsX.Options(
"cells" => PGFPlotsX.Options("anchor" => get((left = "west", right = "east", center = "middle"), legfont.halign, :left)), "cells" => PGFPlotsX.Options("anchor" => get((left = "west", right = "east", hcenter = "center"), legfont.halign, "west")),
"font" => pgfx_font(legfont.pointsize, pgfx_thickness_scaling(sp)) "font" => pgfx_font(legfont.pointsize, pgfx_thickness_scaling(sp))
) )
end end