SetupTransformMirrorAxis: Cannot compile procedure without calling Transform Axis menue entry...

Hi,

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 problem is that Igor doesn't know about SetupTransformMirrorAxis() until it has loaded the procedure file it is in, which happens when you invoke Graph->Transform Axis the first time.

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.
To the author of the original post here--it looks like your account might have been accidentally deleted. We manually delete a handful of spammer accounts daily, and it's possible that one of us mistook your account for that of a spammer. Feel free to re-register if you'd like (make sure to *not* choose Spamville as your country as if you do your account is likely to get deleted again). Sorry about that.

[Edit: And I see from the logs that I was the one who deleted your account. Whoops.]