How to use a "package" within a function?
baroques_solari
I'm working on an Igor procedure in which a package "Append Image or Fill Between Contours" needed to be called. I was wondering if this is possible in this stage.
Many thanks :)
Having said that, you can view the code that does the work by choosing Windows->Procedure Windows->AppendImageToContour.ipf. Then you have two choices: 1) figure out how to call WMCreateImageForContour(). 2) Copy the code from WMCreateImageForContour() that does the work and adapt it to your need.
If you choose 1), you should be aware that we sometimes alter procedure files when we make enhancements. That could break your code. Option 2) is harder and safer.
John Weeks
WaveMetrics, Inc.
support@wavemetrics.com
September 15, 2011 at 08:51 am - Permalink
Calling WMCreateImageForContour() is just fine, actually.
Even though this procedure file will be replaced by a much-improved version in the next release of Igor, the current version of WMCreateImageForContour() will continue to be shipped with Igor.
(In Igor 6.23 FillBetweenContours.ipf, which has a spiffy new panel-based design, will be called from Graph->Packages->Fill Between Contours, in place of the current Append Image or Fill Between Contours menu item.)
--Jim Prouty
Software Engineer, WaveMetrics, Inc.
September 15, 2011 at 12:20 pm - Permalink
Calling WMCreateImageForContour() works just fine and my problem is solved :)
Waiting for the next release (I use this contour function quite often).
September 18, 2011 at 11:52 pm - Permalink