Skip to content

Commit 102190a

Browse files
authored
Update Allow positioning of text inside TextBox
1 parent 08a5f0e commit 102190a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
Text can be positioned inside TextBox widget
22
---------------------
33

4-
A new parameter called ``textalignment`` can be used to control for the position of the text inside the Axes of the TextBox widget. By default it is set to ``"left"``.
4+
A new parameter called ``textalignment``,by default set to ``"left"``, can be used to control for the position of the text inside the Axes of the TextBox widget.
55

6-
For example a textbox with the property set to "center" can be created through
6+
For example a textbox with the property set to "center" can be created with
77

88
``
99

1010
from matplotlib import pyplot as plt
1111
from matplotlib.widgets import TextBox
1212

1313
Box_input = plt.axes([0.2, 0.2, 0.1, 0.075])
14-
text_box = TextBox(ax = Box_input, textalignment = "center" )
14+
text_box = TextBox(ax=Box_input, initial="text", textalignment="center")
1515

1616
``

0 commit comments

Comments
 (0)