diff --git a/pykat/gw_detectors/ifo.py b/pykat/gw_detectors/ifo.py index 1aba3e62f15e54332675eecfe40f9d231d923fc6..b2e5c5d1e3db0ac0f6a8178e921b6c26f1ce6d2b 100644 --- a/pykat/gw_detectors/ifo.py +++ b/pykat/gw_detectors/ifo.py @@ -508,7 +508,10 @@ put f1m f $mx1 ax.plot(out.x, out[d.signal_name(kat)], label=legend) else: for _ in toShow: - ax.plot(out.x, out[_.signal_name(kat)], label=_.name) + if legend is None: + legend = _.name + + ax.plot(out.x, out[_.signal_name(kat)], label=legend) ax.set_xlim([np.min(out.x), np.max(out.x)]) ax.set_xlabel("{} [deg]".format(d.name)) @@ -516,7 +519,7 @@ put f1m f $mx1 if plotDOFs is None: ax.set_ylabel('{} [W] '.format(d.port.name)) else: - ax.set_ylabel('{Error signal} [W] ') + ax.set_ylabel('Error signal [W]') ax.grid(True)