diff --git a/macros/leakageCurrent/getCurrent.py b/macros/leakageCurrent/getCurrent.py index 0a9ee4f..cb700f6 100755 --- a/macros/leakageCurrent/getCurrent.py +++ b/macros/leakageCurrent/getCurrent.py @@ -167,11 +167,14 @@ mg.Add(g) return mg +import time + # sets the axis ranges etc. for a graph showing the current as a function of time def modifyGraphTime(mg): #mg.GetXaxis().SetLimits(1262304000,1360000000); - mg.GetXaxis().SetLimits(1262304000,1438003626); + #mg.GetXaxis().SetLimits(1262304000,1438003626); + mg.GetXaxis().SetLimits(1262304000,int(time.time())); mg.GetXaxis().SetTimeDisplay(1); mg.GetXaxis().SetTimeOffset(0.0); mg.GetXaxis().SetTimeFormat("#splitline{%d/%m}{%Y}");