Commit 3c7ea905 authored by Daniel Brown's avatar Daniel Brown
Browse files

fixing plotting function again

parent 1daf66a2
Pipeline #1778 passed with stage
in 22 seconds
......@@ -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)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment