Skip to content

Commit

Permalink
Refs #8309 Change elwin plot label.
Browse files Browse the repository at this point in the history
  • Loading branch information
Samuel Jackson committed Oct 31, 2013
1 parent 0310fa2 commit 8523ec8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Code/Mantid/scripts/Inelastic/IndirectDataAnalysis.py
Original file line number Diff line number Diff line change
Expand Up @@ -426,7 +426,7 @@ def elwin(inputFiles, eRange, log_type='sample', Normalise = False,
SaveNexusProcessed(InputWorkspace=elfWS, Filename=elf_path)

if Plot:
elwinPlot(e1WS,e2WS,elfWS)
elwinPlot(label,e1WS,e2WS,elfWS)

EndTime('Elwin')
return e1WS,e2WS
Expand All @@ -444,10 +444,10 @@ def addElwinLogs(ws, label, eRange, Range2):
AddSampleLog(Workspace=ws, LogName="Range2 end", LogType="Number", LogText=str(eRange[3]))

#Plot each of the workspace output by elwin
def elwinPlot(eq1,eq2,elf):
def elwinPlot(label,eq1,eq2,elf):
plotElwinWorkspace(eq1, yAxisTitle='Elastic Intensity', setScale=True)
plotElwinWorkspace(eq2, yAxisTitle='log(Elastic Intensity)', setScale=True)
plotElwinWorkspace(elf, xAxisTitle='Temperature(K)')
plotElwinWorkspace(elf, xAxisTitle=label)

#Plot a workspace generated by Elwin
def plotElwinWorkspace(ws, xAxisTitle=None, yAxisTitle=None, setScale=False):
Expand Down

0 comments on commit 8523ec8

Please sign in to comment.