add_cross_hair( fig )

Version 1.0.0.0 (1,87 KB) von Chen Qi
This tool enables easily add/remove a mouse following cross-line.
159 Downloads
Aktualisiert 10. Jun 2015

Lizenz anzeigen

I found this tool especially useful when you want to compare 2 curves in 2 subplots. Just at command line input add_cross_hair then you will see a mouse following cross-line in x and y direction covering whole figure canvas.
To use other figure tools (such as zoom and pan tools), press 'space' on your keyboard and you temporarily toggle off this mouse function. When you press 'space' again, you will get the lovely lines again.

To totally remove this mouse following function for your current figures 'WindowButtonMotionFcn' function, just press 'esc' on your keyboard.

Hope you enjoy the function.

Chen

Zitieren als

Chen Qi (2026). add_cross_hair( fig ) (https://de.mathworks.com/matlabcentral/fileexchange/51145-add_cross_hair-fig), MATLAB Central File Exchange. Abgerufen.

Kompatibilität der MATLAB-Version
Erstellt mit R2015a
Kompatibel mit allen Versionen
Plattform-Kompatibilität
Windows macOS Linux
Kategorien
Mehr zu Data Exploration finden Sie in Help Center und MATLAB Answers
Version Veröffentlicht Versionshinweise
1.0.0.0