Do not crash on dollar sign in fit name

This commit is contained in:
DarkPhoenix
2019-08-12 11:56:07 +03:00
parent cecf5d7e31
commit 663623dec6

View File

@@ -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)