From fe8e2ddbcb2e61fb79e031a82d395ae5c6bd74a1 Mon Sep 17 00:00:00 2001 From: Ian Bell Date: Sat, 19 Oct 2024 14:25:18 -0400 Subject: [PATCH] LaTeX strings should be raw strings without escaping --- GUI/panels/scroll_panels.py | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/GUI/panels/scroll_panels.py b/GUI/panels/scroll_panels.py index 3cf24f8..928942f 100644 --- a/GUI/panels/scroll_panels.py +++ b/GUI/panels/scroll_panels.py @@ -152,28 +152,28 @@ def __init__(self, geo): # The sizer for all the outputs sizer_for_outputs = wx.FlexGridSizer(cols = 2, vgap = 4, hgap = 4) - label1 = ReadOnlyLaTeXLabel('$\phi_{i0}$', parent = panel, remaining_label='[rad]') + label1 = ReadOnlyLaTeXLabel(r'$\phi_{i0}$', parent = panel, remaining_label='[rad]') self.phi_i0 = wx.TextCtrl(panel) self.phi_i0.SetEditable(False) - label2 = ReadOnlyLaTeXLabel('$\phi_{is}$', parent = panel, remaining_label='[rad]') + label2 = ReadOnlyLaTeXLabel(r'$\phi_{is}$', parent = panel, remaining_label='[rad]') self.phi_is = wx.TextCtrl(panel) self.phi_is.SetEditable(False) - label3 = ReadOnlyLaTeXLabel('$\phi_{ie}$', parent = panel, remaining_label='[rad]') + label3 = ReadOnlyLaTeXLabel(r'$\phi_{ie}$', parent = panel, remaining_label='[rad]') self.phi_ie = wx.TextCtrl(panel) self.phi_ie.SetEditable(False) - label4 = ReadOnlyLaTeXLabel('$\phi_{o0}$', parent = panel, remaining_label='[rad]') + label4 = ReadOnlyLaTeXLabel(r'$\phi_{o0}$', parent = panel, remaining_label='[rad]') self.phi_o0 = wx.TextCtrl(panel) self.phi_o0.SetEditable(False) - label5 = ReadOnlyLaTeXLabel('$\phi_{os}$', parent = panel, remaining_label='[rad]') + label5 = ReadOnlyLaTeXLabel(r'$\phi_{os}$', parent = panel, remaining_label='[rad]') self.phi_os = wx.TextCtrl(panel) self.phi_os.SetEditable(False) - label6 = ReadOnlyLaTeXLabel('$\phi_{oe}$', parent = panel, remaining_label='[rad]') + label6 = ReadOnlyLaTeXLabel(r'$\phi_{oe}$', parent = panel, remaining_label='[rad]') self.phi_oe = wx.TextCtrl(panel) self.phi_oe.SetEditable(False) - label7 = ReadOnlyLaTeXLabel('$r_b$', parent = panel, remaining_label='[m]') + label7 = ReadOnlyLaTeXLabel(r'$r_b$', parent = panel, remaining_label='[m]') self.rb = wx.TextCtrl(panel) self.rb.SetEditable(False) - label8 = ReadOnlyLaTeXLabel('$h_s$', parent = panel, remaining_label='[m]') + label8 = ReadOnlyLaTeXLabel(r'$h_s$', parent = panel, remaining_label='[m]') self.hs = wx.TextCtrl(panel) self.hs.SetEditable(False)