Skip to content

Commit 7ac787a

Browse files
committed
Force TextBox's text to override math
1 parent ce7f8a1 commit 7ac787a

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

lib/matplotlib/widgets.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1019,8 +1019,9 @@ def __init__(self, ax, label, initial='',
10191019
-label_pad, 0.5, label, transform=ax.transAxes,
10201020
verticalalignment='center', horizontalalignment='right')
10211021
self.text_disp = self.ax.text(
1022-
self.DIST_FROM_LEFT, 0.5, initial, transform=self.ax.transAxes,
1023-
verticalalignment='center', horizontalalignment='left')
1022+
self.DIST_FROM_LEFT, 0.5, initial,
1023+
transform=self.ax.transAxes, verticalalignment='center',
1024+
horizontalalignment='left', override_math=True)
10241025

10251026
self._observers = cbook.CallbackRegistry()
10261027

0 commit comments

Comments
 (0)