From cc4750688e35d47a4f3f571551fc3885de79a6a1 Mon Sep 17 00:00:00 2001 From: Simon Christ Date: Tue, 26 Nov 2019 21:28:15 +0100 Subject: [PATCH] improve annotations --- src/backends/pgfplotsx.jl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/backends/pgfplotsx.jl b/src/backends/pgfplotsx.jl index 4cc09fc4..c7e8e7e1 100644 --- a/src/backends/pgfplotsx.jl +++ b/src/backends/pgfplotsx.jl @@ -278,7 +278,7 @@ function (pgfx_plot::PGFPlotsXPlot)(plt::Plot{PGFPlotsXBackend}) # add subplot annotations anns = sp.attr[:annotations] for (xi,yi,txt) in anns - pgfx_add_annotation!(axis, xi, yi, txt) + pgfx_add_annotation!(axis, xi, yi, txt, pgfx_thickness_scaling(sp)) end end if ispolar(sp) @@ -604,7 +604,7 @@ function pgfx_add_annotation!(o, x, y, val, thickness_scaling = 1) ), " at ", PGFPlotsX.Coordinate(x, y), - "{$(val.str).};" + "{$(val.str)};" ]) end