Skip to content
Snippets Groups Projects

CI development

Merged Aaron Viets requested to merge aaron-viets/gstlal-calibration:CI-development into main
1 unresolved thread
3 files
+ 59
21
Compare changes
  • Side-by-side
  • Inline
Files
3
import matplotlib; matplotlib.use('Agg')
import numpy as np
import time
from math import erf
import time
from matplotlib import rc
#rc('text', usetex = True)
#matplotlib.rcParams['font.family'] = 'Times New Roman'
#matplotlib.rcParams['mathtext.default'] = 'regular'
matplotlib.rcParams['font.size'] = 20
matplotlib.rcParams['legend.fontsize'] = 20
import matplotlib.pyplot as plt
import matplotlib.patches as mpatches
from tests.tests_pytest.ticks_and_grid import ticks_and_grid
def test_plot():
x = np.arange(0.1, 10, 0.01)
y = np.sin(x) * np.sin(x)
plt.figure(figsize = (10, 6))
plt.plot(x, y, color = 'limegreen', linewidth = 0.75, label = r"$\mu_{1/2} = {\rm sin}^2$")
plt.xlabel(r"$Time_{\rm gps}$ in %s since %0.1f" % ('seconds', 123.635))
plt.title(r'${\rm %s} \ \widetilde{\Delta L}_{\rm free} / \tilde{x}_{\rm %s} \ {\rm at \ %0.1f \ Hz}$' % ('H1', 'pc', 410.3))
plt.ylabel(r"$\sin(x)$")
ticks_and_grid(plt.gca(), xmin = 0.2, xmax = 9, ymin = -1.1, ymax = 1.1, xscale = 'log', yscale = 'linear')
markersize = 1
leg = plt.legend(fancybox = True, markerscale = 16.0 / markersize, numpoints = 1, loc = 'upper right')
leg.get_frame().set_alpha(0.8)
plt.tight_layout()
plt.savefig("tests/tests_pytest/test_order/temp/testplot.png")
plt.close()
test_plot()
Loading