Can ARROW be used with PLOT [message #40429] |
Wed, 04 August 2004 20:33 |
i-kant
Messages: 14 Registered: June 2004
|
Junior Member |
|
|
I'm making a simple XY plot using
plot, x, y
where x and y are arrays.
I want to draw some arrows onto this plot.
I was thinking of using ARROW procedure, so I wrote this as a test:
---
x=[0,1,2,3,4,5]
y=[0,1,4,9,16,25]
PLOT, x, y, background=-1, color=0
ARROW, 100, 150, 300, 350
---
where the arrow coordinates are in DEVICE units (pixels). When I run
this code, all I get is the expected parabolic curve. I do not get an
arrow on the plot. If I comment out lines 1 to 3 and just run the
arrow line, the arrow does appear. It appears I can't do them
simultaneously. If so, what other way is there for me to make arrows
appear on my plot? (I want to use arrows to point out peaks of
interest in my graph).
Thanks,
Edwin
|
|
|