mirror of
https://github.com/nqrduck/nqrduck-autotm.git
synced 2024-11-09 11:40:02 +00:00
Fixed label position of phase.
This commit is contained in:
parent
2d7fbf3479
commit
e0dab7a891
1 changed files with 4 additions and 2 deletions
|
@ -164,7 +164,7 @@ class AutoTMView(ModuleView):
|
||||||
"""Initialize the S11 plot."""
|
"""Initialize the S11 plot."""
|
||||||
ax = self._ui_form.S11Plot.canvas.ax
|
ax = self._ui_form.S11Plot.canvas.ax
|
||||||
ax.set_xlabel("Frequency (MHz)")
|
ax.set_xlabel("Frequency (MHz)")
|
||||||
ax.set_ylabel("S11 (dB)")
|
ax.set_ylabel("S11 (dB)", loc="center")
|
||||||
ax.set_title("S11")
|
ax.set_title("S11")
|
||||||
ax.grid(True)
|
ax.grid(True)
|
||||||
ax.set_xlim(0, 100)
|
ax.set_xlim(0, 100)
|
||||||
|
@ -300,7 +300,9 @@ class AutoTMView(ModuleView):
|
||||||
else:
|
else:
|
||||||
magnitude_ax.plot(frequency, return_loss_db, color="blue")
|
magnitude_ax.plot(frequency, return_loss_db, color="blue")
|
||||||
|
|
||||||
self.phase_ax.set_ylabel("|Phase (deg)|")
|
self.phase_ax.yaxis.tick_right()
|
||||||
|
self.phase_ax.yaxis.set_label_position("right")
|
||||||
|
self.phase_ax.set_ylabel("Phase (deg)")
|
||||||
self.phase_ax.plot(frequency, phase, color="orange", linestyle="--")
|
self.phase_ax.plot(frequency, phase, color="orange", linestyle="--")
|
||||||
# self.phase_ax.invert_yaxis()
|
# self.phase_ax.invert_yaxis()
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue