Modify waves from graph
andrea977
It would be wonderful for my application if it was possible to modify a wave directly from the graph.
I mean:
I have two waves with 10 points, and I plot these waves as Y vs X in a graph.
Is it possible to change the coordinates of a point in the respective waves shifting the points directly on the graph?
If it is possible in any way please suggest me how to do it.
Thank you
Andrea
You can define a graph hook function that grabs keyboard commands, for example the four way arrow keys. With that it would be relativly easy to change the values of the xy-pair of the current point. That's how I imagine it:
1) Execute a function to set the hook function for the (top) graph.
2) set a cursor (most probably A) on one of the points
3) move the point around with the arrow keys
The hook function basically would grab certain key press commands, then extract the point number from the cursor and add or substract values from the respective xy-pair depending on the direction. I don't know what happens when you move a point beyond the position of another point, though...
June 10, 2011 at 08:46 am - Permalink
June 10, 2011 at 09:52 am - Permalink
Read about it by executing this command on Igor's command line:
DisplayHelpTopic "Drawing and Editing Waves"
You will also want to read this:
DisplayHelpTopic "Editing a Polygon"
because editing waves works the same way.
John Weeks
WaveMetrics, Inc.
support@wavemetrics.com
June 10, 2011 at 09:57 am - Permalink
WONDERFUL!!
Thank you very much.
I work with IGOR just since 2 months and I still can't believe it is so powerful!
Thanks again
Andrea
June 12, 2011 at 06:57 am - Permalink