HackRF_Phase_Scripts/plotting.py

24 lines
519 B
Python

import matplotlib.pyplot as plt
# x axis values
x = [1,2,3,4,5]
# corresponding y axis values
p12 = [159.602,125.92999999999999,-53.1102,-161.78700000000003,15.2781]
p13 = [81.27470000000001,119.92699999999999,116.58900000000001,-27.9574,-32.9219]
#p14 = [,,,,]
# plotting the points
plt.plot(x,p12)
plt.plot(x,p13)
# naming the x axis
plt.xlabel('Run number')
# naming the y axis
plt.ylabel('phase angle')
# giving a title to my graph
plt.title('Phase vs frequency')
# function to show the plot
plt.show()