diff --git a/tools/plot_antenna_params.py b/tools/plot_antenna_params.py index c5a1c44f..80bdb87b 100644 --- a/tools/plot_antenna_params.py +++ b/tools/plot_antenna_params.py @@ -243,7 +243,7 @@ ax.plot(freqs[pltrange], s11[pltrange], 'g', lw=2) ax.set_title('s11') ax.set_xlabel('Frequency [Hz]') ax.set_ylabel('Power [dB]') -#ax.set_xlim([0.88, 1.02]) +#ax.set_xlim([0.88e9, 1.02e9]) #ax.set_ylim([-50, -8]) ax.grid() @@ -257,8 +257,9 @@ ax.plot(freqs[pltrange], zin[pltrange].real, 'g', lw=2) ax.set_title('Input impedance (resistive)') ax.set_xlabel('Frequency [Hz]') ax.set_ylabel('Resistance [Ohms]') -#ax.set_xlim([0.88, 1.02]) +#ax.set_xlim([0.88e9, 1.02e9]) ax.set_ylim(bottom=0) +#ax.set_ylim([55, 95]) ax.grid() # Plot input reactance (imaginery part of impedance) @@ -271,8 +272,8 @@ ax.plot(freqs[pltrange], zin[pltrange].imag, 'g', lw=2) ax.set_title('Input impedance (reactive)') ax.set_xlabel('Frequency [Hz]') ax.set_ylabel('Reactance [Ohms]') -#ax.set_xlim([0.88, 1.02]) -#ax.set_ylim([-1000, 1000]) +#ax.set_xlim([0.88e9, 1.02e9]) +#ax.set_ylim([-60, 60]) ax.grid() # Plot input admittance (magnitude) @@ -285,7 +286,7 @@ ax.plot(freqs[pltrange], np.abs(yin[pltrange]), 'g', lw=2) ax.set_title('Input admittance (magnitude)') ax.set_xlabel('Frequency [Hz]') ax.set_ylabel('Admittance [Siemens]') -#ax.set_xlim([0.88, 1.02]) +#ax.set_xlim([0.88e9, 1.02e9]) #ax.set_ylim([0.009, 0.015]) ax.grid() @@ -299,7 +300,7 @@ ax.plot(freqs[pltrange], np.angle(yin[pltrange], deg=True), 'g', lw=2) ax.set_title('Input admittance (phase)') ax.set_xlabel('Frequency [Hz]') ax.set_ylabel('Phase [degrees]') -#ax.set_xlim([0.88, 1.02]) +#ax.set_xlim([0.88e9, 1.02e9]) #ax.set_ylim([-45, 45]) ax.grid()