Commit 2b34b56c authored by Peter Jansweijer's avatar Peter Jansweijer

Fine tune plot output

parent b4d26024
......@@ -193,7 +193,7 @@ if __name__ == "__main__":
t_hist = gui_data["t4"] - gui_data["t1"]
num = len(gui_data["t1"])
print("Delay between internal timestamp t1 and t4 (i.e. t4-t1):")
hist_tic = plt.figure("Histogram difference WR (t4-t1)")
hist_tic = plt.figure("Histogram difference WR GUI (t4-t1)")
plot_hist(t_hist, hist_tic)
else:
tic_file = sys.argv[1]
......@@ -208,17 +208,18 @@ if __name__ == "__main__":
print ("Measurements to take into account:",num)
print("Delay between abscal_txts and internal timestamp t1 and t4p:")
fig = plt.figure("Time Interval Counter measurements and WR GUI t1, t4p versus measurment number")
fig = plt.figure("Time Interval Counter and WR GUI t1, t4p versus measurment number")
ax = fig.add_subplot(111)
ax.set_xlabel('measurement number')
ax.set_ylabel('TIC value, WR t1')
ax.set_ylabel('TIC, WR GUI t1, WR GUI t4p')
x = tic_data[0][:num]
lns1 = ax.plot(x,gui_data["t1"][:num], color='red', label = 'WR GUI t1')
lns2 = ax.plot(x,gui_data["t4"][:num], color='purple', label = 'WR GUI t4p')
lns1 = ax.plot(x,gui_data["t1"][:num], color='red', dashes=[2,2,10,2], label = 'WR GUI t1')
lns2 = ax.plot(x,gui_data["t4"][:num], color='red', dashes=[6,2], label = 'WR GUI t4p')
lns3 = ax.plot(x,tic_data[1][:num], color='blue', label = 'TIC')
lns= lns1 + lns2 + lns3
labels=[l.get_label() for l in lns]
ax.legend(lns, labels, loc='lower right', fontsize='medium')
plt.subplots_adjust(left=0.17)
plt.draw()
t_hist_t1 = tic_data[1][:num] - gui_data["t1"][:num]
hist_tic_t1 = plt.figure("Historam TIC(pps->abscal_txts) - t1")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment