From 663623dec6e1dcd25f3359d49dd634b37fd286fd Mon Sep 17 00:00:00 2001 From: DarkPhoenix Date: Mon, 12 Aug 2019 11:56:07 +0300 Subject: [PATCH] Do not crash on dollar sign in fit name --- graphs/gui/frame.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/graphs/gui/frame.py b/graphs/gui/frame.py index cc71be30f..2185ddaf2 100644 --- a/graphs/gui/frame.py +++ b/graphs/gui/frame.py @@ -346,7 +346,7 @@ class GraphFrame(AuxiliaryFrame): legendLines = [] for i, iData in enumerate(lineData): color, lineStyle, label = iData - legendLines.append(Line2D([0], [0], color=color, linestyle=lineStyle, label=label)) + legendLines.append(Line2D([0], [0], color=color, linestyle=lineStyle, label=label.replace('$', '\$'))) if len(legendLines) > 0 and self.ctrlPanel.showLegend: legend = self.subplot.legend(handles=legendLines)