From 3ae93230adc4c21d0aed9baf60580b997e925706 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timoth=C3=A9e=20Poisot?= Date: Fri, 15 Oct 2021 18:28:02 -0400 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20fix=20the=20orientation=20of=20t?= =?UTF-8?q?he=20labels=20in=20tri=20legend?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/recipes/recipes.jl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/recipes/recipes.jl b/src/recipes/recipes.jl index 569a780a..eb88a66c 100644 --- a/src/recipes/recipes.jl +++ b/src/recipes/recipes.jl @@ -214,9 +214,10 @@ test 2 end end end + _fs = get(plotattributes, :annotationfontsize, 14) @series begin seriestype := :shape - annotations := [(0.0, -0.05, red, :center), (1.0, -0.05, green, :center), (0.5, sqrt(3)/2+0.05, blue, :center)] + annotations := [(-0.05, 0.0, (red, _fs, :left, 60.0)), (1.0, -0.05, (green, _fs, :right, 0.0)), (0.5+0.05, sqrt(3)/2, (blue, _fs, :left, -60.0))] markersize := 0 seriescolor := hcat(shapes_colors...) shapes_x, shapes_y