Show ship name in legend as well (short, if needed)

This commit is contained in:
DarkPhoenix
2019-05-13 09:27:25 +03:00
parent 71ae59b2b5
commit b29aaa9e20
2 changed files with 15 additions and 1 deletions

View File

@@ -312,7 +312,7 @@ class GraphFrame(wx.Frame):
max_y = max(max_y, max(y, default=0))
self.subplot.plot(x, y)
legend.append(fit.name)
legend.append('{} ({})'.format(fit.name, fit.ship.item.getShortName()))
except Exception as ex:
pyfalog.warning("Invalid values in '{0}'", fit.name)
self.SetStatusText("Invalid values in '%s'" % fit.name)