Skip to content
Advertisement

How to change label position of a TextBox object?

The default position of the TextBox label is to the left of it, as shown in the image. I would like to place the label below the box. Is this possible?

Example code and image are taken from the Matplotlib docs. enter image description here

JavaScript

Advertisement

Answer

You can do it by manually changing the position of the label (Text artist).

Add this to the end of your script:

JavaScript

Sample TextBox with label below the box

User contributions licensed under: CC BY-SA
2 People found this is helpful
Advertisement