Commit cbe0a8d9 authored by Peter Jansweijer's avatar Peter Jansweijer

units along vertical scales

parent a1ec5e83
......@@ -136,7 +136,10 @@ def average_edge_to_edge(scope, num_meas, expect_max, estimate, tolerance = 1.0e
once = False
# Cross check: The inverse correlation should yield the same but negative
#cx1,cy1=dd.correlate_circular(y3,y1)
plt.figure("Correlation")
correlation_plot=plt.figure("Correlation")
ax = correlation_plot.add_subplot(111)
ax.set_xlabel('Sample')
ax.set_ylabel('Correlation')
plt.plot(cx,cy)
plt.draw()
......
......@@ -244,7 +244,7 @@ if __name__ == "__main__":
fig = plt.figure("Time Interval Counter and WR t1, t4p versus measurement number")
ax = fig.add_subplot(111)
ax.set_xlabel('measurement number')
ax.set_ylabel('TIC, WR t1, WR t4p')
ax.set_ylabel('TIC, WR t1, WR t4p [s]')
x = tic_data[0][:num]
lns1 = ax.plot(x,wr_data["t1"][:num], color='red', dashes=[2,2,10,2], label = 'WR t1')
lns2 = ax.plot(x,wr_data["t4"][:num], color='red', dashes=[6,2], label = 'WR t4p')
......@@ -253,6 +253,7 @@ if __name__ == "__main__":
labels=[l.get_label() for l in lns]
ax.legend(lns, labels, loc='lower right', fontsize='medium')
plt.subplots_adjust(left=0.17)
plt.ticklabel_format(axis='y', style='sci', scilimits=(-0,0))
plt.draw()
t_hist_t1 = tic_data[1][:num] - wr_data["t1"][:num]
hist_tic_t1 = plt.figure("Historam TICt1")
......
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