Add extra option to show/hide legend

This commit is contained in:
DarkPhoenix
2019-08-01 12:48:29 +03:00
parent 15dc2a325a
commit ff22f12a56
2 changed files with 15 additions and 3 deletions

View File

@@ -320,7 +320,7 @@ class GraphFrame(wx.Frame):
selected_color = None
legend2.append(Patch(color=selected_color, label=i_name), )
if len(legend2) > 0:
if len(legend2) > 0 and self.ctrlPanel.showLegend:
leg = self.subplot.legend(handles=legend2)
for t in leg.get_texts():
t.set_fontsize('small')