From 66dfdc9c84f2ecab482fc1d63d737d90f4bbd48f Mon Sep 17 00:00:00 2001
From: Madeline Wade <madeline.wade@ligo.org>
Date: Tue, 12 Mar 2019 12:03:26 -0700
Subject: [PATCH] Changes to a few plotting scripts for testing

---
 .../tests/check_calibration/ASD_comparison_plots          | 1 -
 .../tests/check_calibration/response_function.py          | 8 ++++----
 2 files changed, 4 insertions(+), 5 deletions(-)

diff --git a/gstlal-calibration/tests/check_calibration/ASD_comparison_plots b/gstlal-calibration/tests/check_calibration/ASD_comparison_plots
index 566fec93c9..97d27df25c 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 75a0a44483..c642e73b4f 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)
-- 
GitLab