Open Datseris opened 4 months ago
You could use alignmode = Outside(padding)
Fantastic, thank you. However, I do not understand the interaction between alignmodel = Outside(padding)
and textpadding
. For example, I have this setup:
textpadding = (2, 2, 2, 2),
alignmode = Outside(0, 5, 0, 5)
which does not align things properly and the text gets cut off:
while, without setting alignmode
at all, the text very nicely fits into the box with the same textpadding
keyword:
Ah ok then the alignmode seems to take away space from the inside. Hm I have to think about it
Feature description
Textbox
brings a much needed feature to Makie: adding a text with surrounding box in the figure. It has all options necessary to style the textbox as you wish. WithoutTextbox
, actually making text with a surrounding box can be very tedious and complex, and thus very hard to memorize, e.g., https://discourse.julialang.org/t/fill-a-bounding-box-behind-text-in-makie/101502/3.The only thing I am misssing from
Textbox
is an additionalpadding
argument, that controls the pad of the box borders themselves w.r.t. to their placement.For plot types, please add an image of how it should look like
E.g., I have this nice figure:
where the labels top right are added with
where
i, j
iterates over the 10 axes locations. I would like to add an additionalpadding
that would place the textbox futher away from the axis splines.textpadding
controls the distance between text and the textbox borders so it is not that.