SetupTransformMirrorAxis: Cannot compile procedure without calling Transform Axis menue entry...
i have a small function that creates a mirror axis (converting eV data in nm data):
Function TransAx_eVtonm(w, x)
Wave/Z w
Variable x
if ( (x <= 0) )
return NaN
endif
return 1240/x
end
Macro graph_make_nm_mirrorFE()
graph_make_nm_mirror()
End
Function graph_make_nm_mirror()
//NewDatafolder/O/S root:Packages
SetupTransformMirrorAxis("","bottom","TransAx_eVtonm",$"",4,1,1,1)
End
But I cannot compile this function until i manually called Graph->Transform Axis once. Prior to this Igor doesnt know SetupTransformMirrorAxis. It seems my procedure has to load the Transform Axis package manually before. How to do this?
Thanks
The solution is to indicate to Igor that your code will use this package, which you can do by adding
#include <TransformAxis1.2>
near the top of your procedure.March 14, 2012 at 09:48 am - Permalink
March 15, 2012 at 06:13 am - Permalink
[Edit: And I see from the logs that I was the one who deleted your account. Whoops.]
March 20, 2012 at 06:19 am - Permalink