Skip to content

Instantly share code, notes, and snippets.

@edy555 edy555/pylab-plot.py
Created Mar 30, 2013

Embed
What would you like to do?
matplotlibによるVNA測定結果のプロット
from pylab import *
f,arg,mag,ref = loadtxt('vnaplot.dat', delimiter=' ', unpack=True)
subplot(2,1,1)
plot(f, mag, label='mag')
plot(f, ref, label='ref')
xlabel('Frequency (Hz)')
ylabel('Amplitude (dB)')
grid(True)
subplot(2,1,2)
plot(f, arg, label='arg')
xlabel('Frequency (Hz)')
ylabel('Phase (radian)')
grid(True)
show()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.