improve annotations
This commit is contained in:
parent
68b29f63a6
commit
58cf8e471e
@ -278,7 +278,7 @@ function (pgfx_plot::PGFPlotsXPlot)(plt::Plot{PGFPlotsXBackend})
|
|||||||
# add subplot annotations
|
# add subplot annotations
|
||||||
anns = sp.attr[:annotations]
|
anns = sp.attr[:annotations]
|
||||||
for (xi,yi,txt) in anns
|
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
|
||||||
end
|
end
|
||||||
if ispolar(sp)
|
if ispolar(sp)
|
||||||
@ -604,7 +604,7 @@ function pgfx_add_annotation!(o, x, y, val, thickness_scaling = 1)
|
|||||||
),
|
),
|
||||||
" at ",
|
" at ",
|
||||||
PGFPlotsX.Coordinate(x, y),
|
PGFPlotsX.Coordinate(x, y),
|
||||||
"{$(val.str).};"
|
"{$(val.str)};"
|
||||||
])
|
])
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user