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,438
  • 68
  • 55
  • 126
Veridian
  • 3,450
  • 11
  • 42
  • 77

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
  • 12,790
  • 4
  • 41
  • 44
  • 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