diff --git a/gstlal-calibration/tests/check_calibration/latency_plot.py b/gstlal-calibration/tests/check_calibration/latency_plot.py index fc94a17e0bdd50adc06f9cea9243aa7fa04b79d7..201c930ba9b18e42804b4854be5352fc6957d365 100644 --- a/gstlal-calibration/tests/check_calibration/latency_plot.py +++ b/gstlal-calibration/tests/check_calibration/latency_plot.py @@ -78,7 +78,6 @@ if t_start % common_dt: if t_end % common_dt: t_end = t_end - t_end % common_dt -t_end = t_end - 1800 # Make a time vector dur = t_end - t_start gps_time = numpy.arange(0, dur + common_dt / 2, common_dt) @@ -108,13 +107,13 @@ for i in range(0, len(intimes)): latency[i].append(outtimes[i][outtimes_start_index + j * out_step][1] - intimes[i][intimes_start_index + j * in_step][1]) # Make the plot -colors = ['indigo', 'darkmagenta', 'orchid', 'cyan', 'g', 'm', 'y', 'r'] +colors = ['blue', 'limegreen', 'orchid', 'cyan', 'g', 'm', 'y', 'r'] markersize = 150.0 / numpy.sqrt(len(intimes[0])) markersize = min(markersize, 8.0) markersize = max(markersize, 1.0) plt.figure(figsize = (10, 6)) if len(labels[0]): - plt.plot(gps_time, latency[0], colors[0], linestyle = 'None', marker = '.', markersize = markersize, label = r'${\rm %s}$' % labels[0].replace(':', '{:}').replace('-', '\mbox{-}').replace('_', '\_').replace(' ', '\ ')) + plt.plot(gps_time, latency[0], colors[0], linestyle = 'None', marker = '.', markersize = markersize, label = r'${\rm %s \ }[\mu = %0.2f \, {\rm s}, \sigma = %0.2f \, {\rm s}]$' % (labels[0].replace(':', '{:}').replace('-', '\mbox{-}').replace('_', '\_').replace(' ', '\ '), numpy.mean(latency[0]), numpy.std(latency[0]))) leg = plt.legend(fancybox = True, loc = 'upper right', markerscale = 8.0 / markersize, numpoints = 3) leg.get_frame().set_alpha(0.8) else: @@ -123,12 +122,12 @@ if len(options.plot_title): plt.title(options.plot_title) plt.ylabel(r'${\rm Latency \ [s]}$') plt.xlabel(r'${\rm Time \ in \ %s \ since \ %s \ UTC}$' % (t_unit, time.strftime("%b %d %Y %H:%M:%S".replace(':', '{:}').replace('-', '\mbox{-}').replace(' ', '\ '), time.gmtime(t_start + 315964782)))) -plt.ylim(0, 18) +plt.ylim(0, 5) plt.grid(True, which = "both", linestyle = ':', linewidth = 0.3, color = 'black') for i in range(1, len(intimes)): if len(labels) > 1: - plt.plot(gps_time, latency[i], colors[i % len(colors)], linestyle = 'None', marker = '.', markersize = markersize, label = r'${\rm %s}$' % labels[i].replace(':', '{:}').replace('-', '\mbox{-}').replace('_', '\_').replace(' ', '\ ')) + plt.plot(gps_time, latency[i], colors[i % len(colors)], linestyle = 'None', marker = '.', markersize = markersize, label = r'${\rm %s \ }[\mu = %0.2f \, {\rm s}, \sigma = %0.2f \, {\rm s}]$' % (labels[i].replace(':', '{:}').replace('-', '\mbox{-}').replace('_', '\_').replace(' ', '\ '), numpy.mean(latency[i]), numpy.std(latency[i]))) leg = plt.legend(fancybox = True, loc = 'upper right', markerscale = 8.0 / markersize, numpoints = 3) leg.get_frame().set_alpha(0.8) else: