comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Can ARROW be used with PLOT
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Can ARROW be used with PLOT [message #40429] Wed, 04 August 2004 20:33
i-kant is currently offline  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
[Message index]
 
Read Message
Previous Topic: Color table
Next Topic: Re: Can ARROW be used with PLOT

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Thu Oct 09 07:53:50 PDT 2025

Total time taken to generate the page: 0.08816 seconds