New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow padding
keyword for Textbox
#3822
Comments
You could use |
Fantastic, thank you. However, I do not understand the interaction between
which does not align things properly and the text gets cut off: while, without setting |
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.The text was updated successfully, but these errors were encountered: