Skip to content

Commit

Permalink
Merge pull request #443 from gdsfactory/fix_plot_model
Browse files Browse the repository at this point in the history
fixed plot_model xlabel
  • Loading branch information
joamatab authored Jul 19, 2024
2 parents 5fca020 + 6d016ad commit 297c605
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gplugins/sax/plot_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,9 +65,9 @@ def plot_model(
y = np.abs(sdict[(port1, port2)])
y = 20 * np.log10(y) if logscale else y
ylabel = "|S (dB)|" if logscale else "|S|"
ax.plot(wavelengths * 1e9, y, label=port2)
ax.plot(wavelengths, y, label=port2)
ax.set_title(port1)
ax.set_xlabel("wavelength (nm)")
ax.set_xlabel("wavelength (um)")
ax.set_ylabel(ylabel)
plt.legend()
return ax
Expand Down

0 comments on commit 297c605

Please sign in to comment.