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

Home » Public Forums » archive » JOIN POINTS IN A PLOT
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
JOIN POINTS IN A PLOT [message #92022] Thu, 01 October 2015 12:10 Go to next message
joyrles1996 is currently offline  joyrles1996
Messages: 27
Registered: August 2015
Junior Member
I HAVE:

A=FINDGEN(10)*3
B=FINDGEN(10)*10
C=FINDGEN(10)
PLOT, A(*), B(*)
OPLOT, A(*),C(*)
END


I NEED TO JOIN POINTS, FOR EXAMPLE, B(1) WITH C(1), B(2) COM C(2) AND SO ON.
I ALREADY TRIED TO USE THE FUNCTION PLOTS, BUT I DON'T GOT.

urgency!
PLEASE, HELP ME
Re: JOIN POINTS IN A PLOT [message #92025 is a reply to message #92022] Thu, 01 October 2015 13:36 Go to previous messageGo to next message
Paul Van Delst[1] is currently offline  Paul Van Delst[1]
Messages: 1157
Registered: April 2002
Senior Member
On 10/01/15 15:10, Joyrles Fernandes wrote:
> I HAVE:
>
> A=FINDGEN(10)*3
> B=FINDGEN(10)*10
> C=FINDGEN(10)
> PLOT, A(*), B(*)
> OPLOT, A(*),C(*)
> END
>
>
> I NEED TO JOIN POINTS, FOR EXAMPLE, B(1) WITH C(1), B(2) COM C(2) AND SO ON.
> I ALREADY TRIED TO USE THE FUNCTION PLOTS, BUT I DON'T GOT.
>
> urgency!
> PLEASE, HELP ME

I think maybe people (including me) really don't understand what you want.

I don't know what "need to join points" means. Just plot a line?

Anyhoo, when I do what you did I get:

IDL> PLOT, A(*), B(*)
PLOT, A(*), B(*)
^
% Syntax error.

Is this the problem you are having? If so, try

IDL> PLOT, A, B
IDL> OPLOT, A, C

or, for FG,

IDL> p = PLOT(A,B)
IDL> p2 = PLOT(A,C,/overplot)


cheers,

paulv

p.s. The FG help pages:
http://www.exelisvis.com/docs/PLOT.html

p.p.s. The DG help pages:
http://www.exelisvis.com/docs/PLOT_Procedure.html
http://www.exelisvis.com/docs/OPLOT_Procedure.html
Re: JOIN POINTS IN A PLOT [message #92027 is a reply to message #92022] Thu, 01 October 2015 13:50 Go to previous messageGo to next message
joyrles1996 is currently offline  joyrles1996
Messages: 27
Registered: August 2015
Junior Member
Em quinta-feira, 1 de outubro de 2015 16:10:26 UTC-3, Joyrles Fernandes escreveu:
> I HAVE:
>
> A=FINDGEN(10)*3
> B=FINDGEN(10)*10
> C=FINDGEN(10)
> PLOT, A(*), B(*)
> OPLOT, A(*),C(*)
> END
>
>
> I NEED TO JOIN POINTS, FOR EXAMPLE, B(1) WITH C(1), B(2) COM C(2) AND SO ON.
> I ALREADY TRIED TO USE THE FUNCTION PLOTS, BUT I DON'T GOT.
>
> urgency!
> PLEASE, HELP ME

NO.WHEN I SAY "JOIN THE DOTS" I WANT TO CREATE LINES VERTICAL, JOINING POINTS EQUIVALENT, WHICH ARE ANOTHER BELOW. I HAVE TO DO AFTER PLOT, A, C AND OPLOT, A, B
Re: JOIN POINTS IN A PLOT [message #92030 is a reply to message #92027] Thu, 01 October 2015 19:30 Go to previous messageGo to next message
penteado is currently offline  penteado
Messages: 866
Registered: February 2018
Senior Member
Administrator
On Thursday, October 1, 2015 at 5:50:50 PM UTC-3, Joyrles Fernandes wrote:
> NO.WHEN I SAY "JOIN THE DOTS" I WANT TO CREATE LINES VERTICAL, JOINING POINTS EQUIVALENT, WHICH ARE ANOTHER BELOW. I HAVE TO DO AFTER PLOT, A, C AND OPLOT, A, B

My guess is this is what you are asking for:


plot,a,b
oplot,a,c
for i=0,9 do oplot,[a[i],a[i]],[b[i],c[i]]
Re: JOIN POINTS IN A PLOT [message #92031 is a reply to message #92030] Thu, 01 October 2015 21:27 Go to previous message
joyrles1996 is currently offline  joyrles1996
Messages: 27
Registered: August 2015
Junior Member
Em quinta-feira, 1 de outubro de 2015 23:30:10 UTC-3, Paulo Penteado escreveu:
> On Thursday, October 1, 2015 at 5:50:50 PM UTC-3, Joyrles Fernandes wrote:
>> NO.WHEN I SAY "JOIN THE DOTS" I WANT TO CREATE LINES VERTICAL, JOINING POINTS EQUIVALENT, WHICH ARE ANOTHER BELOW. I HAVE TO DO AFTER PLOT, A, C AND OPLOT, A, B
>
> My guess is this is what you are asking for:
>
>
> plot,a,b
> oplot,a,c
> for i=0,9 do oplot,[a[i],a[i]],[b[i],c[i]]

Yes, thanks.
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Help
Next Topic: Do you want to make a scatter plot of the square should I do if there?

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

Current Time: Wed Oct 08 09:20:06 PDT 2025

Total time taken to generate the page: 0.00378 seconds