Advanced hline and vline
I needed to draw some vertical markers to my plots in GUI, so I checked out Brandon Kuczenski's hline/vline submission. However it doesn't accept axes handle as an input argument.
Getting around by switching with 'gca' causes weird behavior due to uncertain timing in GUI. So I reverse engineered the basic idea in his code and added in a few degrees of freedom. I hope this will help other MATLAB GUI programmers.
I haven't done any extensive testing as I'm busy with with my project on hand. Please send any suggestions, bug reports to wonghoi.ee@gmail.com. Thanks!
Cita come
Hoi Wong (2025). Advanced hline and vline (https://www.mathworks.com/matlabcentral/fileexchange/18796-advanced-hline-and-vline), MATLAB Central File Exchange. Recuperato .
Compatibilità della release di MATLAB
Compatibilità della piattaforma
Windows macOS LinuxCategorie
- MATLAB > Graphics > Formatting and Annotation > Axes Appearance > Limits, Ticks, and Grids > Grid Lines, Tick Values, and Labels >
Tag
Riconoscimenti
Ispirato da: hline and vline
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Scopri Live Editor
Crea script con codice, output e testo formattato in un unico documento eseguibile.
Versione | Pubblicato | Note della release | |
---|---|---|---|
1.2.0.0 | Added textHandle as an optional output and yLimits for vline() and xLimits for hline() as optional inputs. |
||
1.1.0.0 | Refactored to enable linePropertiesList, textPropertiesList, isLineColorSynchronizedWithText |
||
1.0.0.0 | Updated description |