avoid annotation clipping for pyplot

This commit is contained in:
Daniel Schwabeneder 2019-08-28 23:36:46 +02:00
parent 1db3b69489
commit 30f321d88b

View File

@ -1229,7 +1229,7 @@ end
function py_add_annotations(sp::Subplot{PyPlotBackend}, x, y, val) function py_add_annotations(sp::Subplot{PyPlotBackend}, x, y, val)
ax = sp.o ax = sp.o
ax."annotate"(val, xy = (x,y), zorder = 999) ax."annotate"(val, xy = (x,y), zorder = 999, annotation_clip = false)
end end
@ -1243,7 +1243,8 @@ function py_add_annotations(sp::Subplot{PyPlotBackend}, x, y, val::PlotText)
verticalalignment = val.font.valign == :vcenter ? "center" : string(val.font.valign), verticalalignment = val.font.valign == :vcenter ? "center" : string(val.font.valign),
rotation = val.font.rotation, rotation = val.font.rotation,
size = py_thickness_scale(sp.plt, val.font.pointsize), size = py_thickness_scale(sp.plt, val.font.pointsize),
zorder = 999 zorder = 999,
annotation_clip = false
) )
end end