![](/profiles/wavemetrics/themes/wavemetrics/logo.png)
Add 'Invert Wave' to graph contextual menu
![](/sites/default/files/styles/thumbnail/public/default_images/Artboard%201_1.png?itok=jeHOCIXy)
![](/profiles/wavemetrics/themes/wavemetrics/images/icons/employee-icon.png)
aclight
Menu "TracePopup"
"-" // separator divides this from built-in menu items
"Invert wave", /Q, InvertWave()
End
//**
// Invert the wave that the user selected. Note that this inverts the wave itself
// and not just the trace.
//*
Function InvertWave()
GetLastUserMenuInfo
// determine the wave name based on the trace name and window name
WAVE targetWave = TraceNameToWaveRef(S_graphName, S_traceName)
targetWave *= -1
End
You can just copy and paste this code into a procedure file and compile. If you want this behavior to occur from any experiment whenever you start Igor Pro, you'll need to create a stand alone procedure file containing this code and put a shortcut/alias to that procedure file in your
Igor Procedures
directory.
![](/sites/default/files/forum.png)
Forum
![](/sites/default/files/support.png)
Support
![](/sites/default/files/gallery.png)
Gallery
Igor Pro 9
Learn More
Igor XOP Toolkit
Learn More
Igor NIDAQ Tools MX
Learn More