Better handling of when s21 is None.

这个提交包含在:
Craig Warren
2016-05-26 12:16:32 +01:00
父节点 188542f2e6
当前提交 17c6839e3b

查看文件

@@ -309,7 +309,7 @@ def mpl_plot(time, freqs, Vinc, Vincp, Iinc, Iincp, Vref, Vrefp, Iref, Irefp, Vt
ax.grid()
# Plot frequency spectra of s21
if 's21' in locals() or globals():
if s21 is not None:
ax = plt.subplot(gs2[0, 1])
markerline, stemlines, baseline = ax.stem(freqs[pltrange], s21[pltrange], '-.')
plt.setp(baseline, 'linewidth', 0)