Be the first to rate this file! 25 downloads (last 30 days) File Size: 2.39 KB File ID: #18796

Advanced hline and vline

by Hoi Wong

 

17 Feb 2008 (Updated 20 Feb 2008)

No BSD License  

Draws horizontal/vertical lines in graphs. Accept axes handle and allows user to specify label posit

Download Now | Watch this File

File Information
Description

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!

Acknowledgements

The author wishes to acknowledge the following in the creation of this submission:
hline and vline

MATLAB release MATLAB 7.5 (R2007b)
Zip File Content  
Other Files hline.m,
vline.m
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Please login to add a comment or rating.
Updates
20 Feb 2008

Updated description

Tag Activity for this File
Tag Applied By Date/Time
annotation Hoi Wong 22 Oct 2008 09:48:07
customization Hoi Wong 22 Oct 2008 09:48:07
horizontal line vertical Hoi Wong 22 Oct 2008 09:48:07
plot Hoi Wong 22 Oct 2008 09:48:07
graphics Hoi Wong 22 Oct 2008 09:48:07
horizontal line vertical Hans Christian petersen 15 Jun 2009 05:57:15
 

MATLAB Central Terms of Use

NOTICE: Any content you submit to MATLAB Central, including personal information, is not subject to the protections which may be afforded information collected under other sections of The MathWorks, Inc. Web site. You are entirely responsible for all content that you upload, post, e-mail, transmit or otherwise make available via MATLAB Central. The MathWorks does not control the content posted by visitors to MATLAB Central and, does not guarantee the accuracy, integrity, or quality of such content. Under no circumstances will The MathWorks be liable in any way for any content not authored by The MathWorks, or any loss or damage of any kind incurred as a result of the use of any content posted, e-mailed, transmitted or otherwise made available via MATLAB Central. Read the complete Terms prior to use.

Contact us at files@mathworks.com