From 736f1c28d9a1837f21ff23888e269bc1f05da9c3 Mon Sep 17 00:00:00 2001 From: Jakob Lass Date: Thu, 20 May 2021 14:47:24 +0200 Subject: [PATCH] Add additional background parameter for normalizaiton plot --- MJOLNIR/Geometry/Instrument.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MJOLNIR/Geometry/Instrument.py b/MJOLNIR/Geometry/Instrument.py index 5ed4b804..7fdcd4cf 100644 --- a/MJOLNIR/Geometry/Instrument.py +++ b/MJOLNIR/Geometry/Instrument.py @@ -636,7 +636,7 @@ def generateCalibration(self,Vanadiumdatafile,A4datafile=False,savelocation='cal plt.ioff plt.figure() plt.scatter(EiLocal,binPixelData) - plt.plot(Ei,Gaussian(Ei,*guess)) + plt.plot(Ei,Gaussian(Ei,*guess,0.0)) plt.savefig(savelocation+'/{}_pixels/Detector{}_{}.png'.format(detpixels,i,k),format='png',dpi=150) plt.close()