From 16a33c33506e172cb9a479cacb7f2b87b5a1569f Mon Sep 17 00:00:00 2001 From: Simon Christ Date: Fri, 9 Sep 2022 10:59:53 +0200 Subject: [PATCH] fix legend (#4342) --- src/backends/plotly.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/backends/plotly.jl b/src/backends/plotly.jl index 56c11f2f5..bbbf2887d 100644 --- a/src/backends/plotly.jl +++ b/src/backends/plotly.jl @@ -347,7 +347,7 @@ function plotly_add_legend!(plotattributes_out::KW, sp::Subplot) plotattributes_out[:showlegend] = sp[:legend_position] !== :none legend_position = plotly_legend_pos(sp[:legend_position]) if sp[:legend_position] !== :none - plotattributes_out[:legend_position] = KW( + plotattributes_out[:legend] = KW( :bgcolor => rgba_string(sp[:legend_background_color]), :bordercolor => rgba_string(sp[:legend_foreground_color]), :borderwidth => 1,