From f2f647c6428f471c9ea82c053cf5f6f67ef2cdf7 Mon Sep 17 00:00:00 2001 From: Simon Christ Date: Tue, 19 Nov 2019 12:08:30 +0100 Subject: [PATCH] legend position --- src/backends/pgfplotsx.jl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/backends/pgfplotsx.jl b/src/backends/pgfplotsx.jl index 82a0bded..8fd07e4f 100644 --- a/src/backends/pgfplotsx.jl +++ b/src/backends/pgfplotsx.jl @@ -453,7 +453,7 @@ function _update_plot_object(plt::Plot{PGFPlotsXBackend}) a = alpha(cstr) title_cstr = plot_color(sp[:titlefontcolor]) title_a = alpha(cstr) - # TODO: aspect ratio, legend position + # TODO: aspect ratio axis_opt = PGFPlotsX.Options( "height" => string(height(bb)), "width" => string(width(bb)), @@ -464,6 +464,7 @@ function _update_plot_object(plt::Plot{PGFPlotsXBackend}) "draw opacity" => title_a, "rotate" => sp[:titlefontrotation] ), + "legend pos" => _pgfplotsx_legend_pos[sp[:legend]], "legend style" => PGFPlotsX.Options( pgfx_linestyle(pgfx_thickness_scaling(sp), sp[:foreground_color_legend], 1.0, "solid") => nothing, "fill" => cstr,