0

I am trying to draw an arbitrary line on a figure in matlab (off of a plot) and I don't know what command I can use.

I tried using the arrow package, but I'm getting bad results

Brian Tompsett - 汤莱恩
  • 5,753
  • 72
  • 57
  • 129
Veridian
  • 3,531
  • 12
  • 46
  • 80

1 Answers1

3

You can use the line function and set the clipping property to off to draw a line that is visible outside the axis. The x and y coordinates of line will be in the coordinates of the axis and you may need to change the axis limits.

Molly
  • 13,240
  • 4
  • 44
  • 45
  • I had to actually use the arrow command otherwise there is no way to try and reference a point relative to the graph, it just relative to the figure. – Veridian Aug 11 '13 at 17:33