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

Home » Public Forums » archive » how to overplot a vertical line in the existing plot made using plot function?
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: how to overplot a vertical line in the existing plot made using plot function? [message #94056 is a reply to message #94055] Tue, 10 January 2017 06:03 Go to previous messageGo to previous message
Helder Marchetto is currently offline  Helder Marchetto
Messages: 520
Registered: November 2011
Senior Member
On Tuesday, January 10, 2017 at 2:42:45 PM UTC+1, Anjali wrote:
> Hi,
>
> I used plot function to create a plot. Now I want to over-plot a vertical line onto that. Can anyone tell me, how to do it?
>
> Following is the command I used:
> pp = plot(time_sec,nic_pil,xtitle='Time [sec]',ytitle='I!Dc!N/I!Dc,QS!N',dimensions=[900,800], $
> yrange= [min(nic_pil)-0.01,max(nic_pil)+0.01],axis_style=1, $
> MARGIN = [0.08, 0.25, 0.15, 0.15],xrange=[0.0,max(time_sec)+6])
>
> I want to plot the line at a particular value of time_sec.
>
> Looking forward to your suggestions:-)
>
> Many thanks,
> Anjali

hi,
try:

pl = polyline([particular_time_sec,particular_time_sec],pp.yrange ,/data,target=pp)

obviously you have to define where you want the line:
particular_time_sec = ???

Cheers,
Helder
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: losing pointers when concatenating array of structures
Next Topic: IDL consultant available for work (more than usual!)

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

Current Time: Thu Oct 09 20:38:14 PDT 2025

Total time taken to generate the page: 0.47580 seconds