I've been adding annotations following the excellent examples at AnnotationBbox demo, but I'd like to make the text box transparent. From the TextArea docs it looks like my_text_area.set(alpha=x) should work, but it doesn't seem to have any effect.
Perhaps there is another way to set this that I have missed?
Seems like there arguments are not documented: bboxprops=None, arrowprops=None, fontsize=None so that can for sure be a good idea. Probably with a comment about how to make it transparent (which seems like a common enough use case).
Activity
QuLogic commented on Nov 8, 2022
You'll need to pass bboxprops=dict(alpha=0.3) to the AnnotationBbox. The TextArea does not draw any background.
rcomer commented on Nov 8, 2022
Thanks @QuLogic, that did the trick. So I guess there isn't actually a bug here. Possibly a documentation issue? Or should we close this?
oscargus commented on Nov 8, 2022
Seems like there arguments are not documented: bboxprops=None, arrowprops=None, fontsize=None so that can for sure be a good idea. Probably with a comment about how to make it transparent (which seems like a common enough use case).