Code covered by the BSD License  

Highlights from
line2arrow: Add an arrowhead to a plotted line


5.0 | 2 ratings Rate this file 134 Downloads (last 30 days) File Size: 4.26 KB File ID: #31473
image thumbnail

line2arrow: Add an arrowhead to a plotted line



17 May 2011 (Updated )

Combines line plotting with annotation arrows.

| Watch this File

File Information

Plotting an arrow in axis coordinate space can be difficult, since Matlab's built-in arrow function works in figure coordinate space. This function does the axis-to-figure coordinate calculation and places an annotation arrow in the correct location. It also provides a button-down function to re-sync the line and arrow if you resize the axis or figure, or change the line properties.


Parse Pv Pairs and Axescoord2figurecoord inspired this file.

MATLAB release MATLAB 7.10 (R2010a)
Tags for This File   Please login to tag files.
Please login to add a comment or rating.
Comments and Ratings (2)
16 May 2014 Ramon

It's great!

12 Apr 2013 Guzman

Perfect. It's so easy to use and gives excelent results.

30 Jan 2013

Minor change to example image.

10 Jul 2014

- arrow now syncs to line properties automatically
- updated for R2014b graphics

Contact us