Skip to content

Commit 9eeaf43

Browse files
TortarQuLogic
andauthored
Apply suggestions from code review
Co-authored-by: Elliott Sales de Andrade <[email protected]>
1 parent 147f223 commit 9eeaf43

File tree

1 file changed

+5
-8
lines changed

1 file changed

+5
-8
lines changed
Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,13 @@
11
Text can be positioned inside TextBox widget
2-
---------------------
2+
--------------------------------------------
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.
4+
A new parameter called *textalignment* can be used to control for the position of the text inside the Axes of the TextBox widget.
55

6-
Example :
7-
8-
.. code-block::
6+
.. plot::
97

108
from matplotlib import pyplot as plt
119
from matplotlib.widgets import TextBox
1210

13-
Box_input = plt.axes([0.2, 0.2, 0.1, 0.075])
14-
text_box = TextBox(ax=Box_input, initial="text", label="", textalignment="center")
15-
11+
box_input = plt.axes([0.2, 0.2, 0.1, 0.075])
12+
text_box = TextBox(ax=box_input, initial="text", label="", textalignment="center")
1613

0 commit comments

Comments
 (0)