legend position

This commit is contained in:
Simon Christ 2019-11-19 12:08:30 +01:00
parent 3f70fdb3aa
commit 2d100d8261

View File

@ -453,7 +453,7 @@ function _update_plot_object(plt::Plot{PGFPlotsXBackend})
a = alpha(cstr) a = alpha(cstr)
title_cstr = plot_color(sp[:titlefontcolor]) title_cstr = plot_color(sp[:titlefontcolor])
title_a = alpha(cstr) title_a = alpha(cstr)
# TODO: aspect ratio, legend position # TODO: aspect ratio
axis_opt = PGFPlotsX.Options( axis_opt = PGFPlotsX.Options(
"height" => string(height(bb)), "height" => string(height(bb)),
"width" => string(width(bb)), "width" => string(width(bb)),
@ -464,6 +464,7 @@ function _update_plot_object(plt::Plot{PGFPlotsXBackend})
"draw opacity" => title_a, "draw opacity" => title_a,
"rotate" => sp[:titlefontrotation] "rotate" => sp[:titlefontrotation]
), ),
"legend pos" => _pgfplotsx_legend_pos[sp[:legend]],
"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], 1.0, "solid") => nothing,
"fill" => cstr, "fill" => cstr,