File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -144,6 +144,7 @@ def add_text(
144144 line_spacing = 1.25 ,
145145 text_anchor_point = (0 , 0.5 ),
146146 is_data = True ,
147+ text = None ,
147148 ):
148149 """
149150 Add text labels with settings
@@ -166,6 +167,11 @@ def add_text(
166167 :param (float, float) text_anchor_point: Values between 0 and 1 to indicate where the text
167168 position is relative to the label
168169 :param bool is_data: If True, fetch will attempt to update the label
170+ :param str text: If this is provided, it will set the initial text of the label.
171+
172+ :return: Index of the new text label.
173+ :rtype: int
174+
169175 """
170176 if scrolling :
171177 if text_position is None :
@@ -185,6 +191,7 @@ def add_text(
185191 line_spacing = line_spacing ,
186192 text_anchor_point = text_anchor_point ,
187193 is_data = is_data ,
194+ text = text ,
188195 )
189196
190197 self ._text [index ]["scrolling" ] = scrolling
You can’t perform that action at this time.
0 commit comments