Skip to content
Snippets Groups Projects
Commit 9255c77d authored by Jan Caron's avatar Jan Caron
Browse files

First PYRAMID Commit

PYRAMID: PYthon based Reconstruction Algorith for MagnetIc Distributions
Separated Igor files from PYRAMID files
moved all files one folder higher
parent e30a0fe1
No related branches found
No related tags found
No related merge requests found
Showing
with 0 additions and 29 deletions
File moved
File moved
File moved
File moved
File moved
File moved
File moved
File moved
File deleted
File moved
File deleted
File deleted
File deleted
File deleted
File deleted
#pragma rtGlobals=3 // Use modern global access method and strict wave access.
Menu "Macros"
"Append Residuals...", AppendResidualsDialog()
End
Function AppendResiduals(ywave,xwave)
String ywave, xwave
if (CmpStr("_calculated_",xwave) == 0)
AppendToGraph/L=Lresid $ywave
else
AppendToGraph/L=Lresid $ywave vs $xwave
endif
ModifyGraph nticks(Lresid)=2,standoff(bottom)=0, axisEnab(left)={0,0.7}
ModifyGraph axisEnab(Lresid)={0.8,1}, freePos(Lresid)=0
SetAxis/A/E=2 Lresid
ModifyGraph mode(histResids)=2, lsize(histResids)=2
End
Function AppendResidualsDialog()
String ywave, xwave
Prompt ywave, "Residuals Data", popup WaveList("*",";","")
Prompt xwave, "X Data", popup "_calculated_;"+WaveList("*",";","")
DoPrompt "Append Residuals", ywave, xwave
if (V_flag != 0)
return -1; //User canceled.
endif
AppendResiduals(ywave,xwave)
End
\ No newline at end of file
File deleted
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment