diff --git a/gstlal-calibration/tests/check_calibration/ASD_comparison_plots b/gstlal-calibration/tests/check_calibration/ASD_comparison_plots index 566fec93c9fc4f7d6989c2153c58d74997799736..97d27df25c876c7648da40ddfcf3341200ceb498 100755 --- a/gstlal-calibration/tests/check_calibration/ASD_comparison_plots +++ b/gstlal-calibration/tests/check_calibration/ASD_comparison_plots @@ -6,7 +6,6 @@ from gwpy.timeseries import TimeSeriesDict from gwpy.timeseries import TimeSeries import glob from math import pi -from gwpy.plotter import BodePlot import numpy from optparse import OptionParser, Option diff --git a/gstlal-calibration/tests/check_calibration/response_function.py b/gstlal-calibration/tests/check_calibration/response_function.py index 75a0a444830a3ee77d25ccf5dec01e6739597139..c642e73b4f436c5b55b9bf65bebe4ff9eb365e46 100644 --- a/gstlal-calibration/tests/check_calibration/response_function.py +++ b/gstlal-calibration/tests/check_calibration/response_function.py @@ -4,7 +4,7 @@ ########################################################## import matplotlib as mpl; mpl.use('Agg') -from gwpy.plotter import BodePlot +from gwpy.plot import BodePlot from gwpy.timeseries import TimeSeriesDict from gwpy.timeseries import TimeSeries from gwpy.frequencyseries import FrequencySeries @@ -154,7 +154,7 @@ if options.analyze_calcs_hoft: plot.add_frequencyseries(CALCS_tf, dB=False, color='#4ba6ff', linewidth=2) if options.analyze_additional_hoft: plot.add_frequencyseries(additional_hoft_tf*3995.1, dB = False, color="#94ded7", linewidth=2) -plot.add_legend([r'Reference model response function', r'h(t) derived response function'], loc='upper right', fontsize='x-small') +#plot.add_legend([r'Reference model response function', r'h(t) derived response function'], loc='upper right', fontsize='x-small') # FIXME: Figure out how to make the legend and title appropriate and flexible plot.maxes.set_yscale('log') plot.paxes.set_yscale("linear") @@ -172,7 +172,7 @@ if options.analyze_calcs_hoft: plot.add_frequencyseries(ratio_CALCS, dB = False, color='#4ba6ff',linewidth=2) if options.analyze_additional_hoft: plot.add_frequencyseries(ratio_additional_hoft*3995.1, dB = False, color="#94ded7", linewidth=2) -plot.add_legend([r'h(t) derived response / Reference model response'], loc='upper right', fontsize='small') +#plot.add_legend([r'h(t) derived response / Reference model response'], loc='upper right', fontsize='small') plot.maxes.set_yscale('linear') plot.paxes.set_yscale('linear') plot.maxes.set_ylim(0,5) @@ -183,7 +183,7 @@ if options.analyze_calcs_hoft: plot.add_frequencyseries(ratio_CALCS, dB = False, color='#4ba6ff',linewidth=2) if options.analyze_additional_hoft: plot.add_frequencyseries(ratio_additional_hoft*3995.1, dB = False, color="#94ded7", linewidth=2) -plot.add_legend([r'h(t) derived response / Reference model response'], loc='upper right', fontsize='small') +#plot.add_legend([r'h(t) derived response / Reference model response'], loc='upper right', fontsize='small') plot.maxes.set_yscale('linear') plot.paxes.set_yscale('linear') plot.maxes.set_ylim(.9, 1.1)