JOIN POINTS IN A PLOT [message #92022] |
Thu, 01 October 2015 12:10  |
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   |
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   |
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   |
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  |
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.
|
|
|