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 ...@@ -508,7 +508,10 @@ put f1m f $mx1
ax.plot(out.x, out[d.signal_name(kat)], label=legend) ax.plot(out.x, out[d.signal_name(kat)], label=legend)
else: else:
for _ in toShow: for _ in toShow:
ax.plot(out.x, out[_.signal_name(kat)], if legend is None:
legend =
ax.plot(out.x, out[_.signal_name(kat)], label=legend)
ax.set_xlim([np.min(out.x), np.max(out.x)]) ax.set_xlim([np.min(out.x), np.max(out.x)])
ax.set_xlabel("{} [deg]".format( ax.set_xlabel("{} [deg]".format(
...@@ -516,7 +519,7 @@ put f1m f $mx1 ...@@ -516,7 +519,7 @@ put f1m f $mx1
if plotDOFs is None: if plotDOFs is None:
ax.set_ylabel('{} [W] '.format( ax.set_ylabel('{} [W] '.format(
else: else:
ax.set_ylabel('{Error signal} [W] ') ax.set_ylabel('Error signal [W]')
ax.grid(True) ax.grid(True)
Supports Markdown
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