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

Home » Public Forums » archive » Plot problem
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: plot problem [message #61710 is a reply to message #39989] Fri, 25 July 2008 12:28 Go to previous messageGo to previous message
pgrigis is currently offline  pgrigis
Messages: 436
Registered: September 2007
Senior Member
Try

plot,x,y,/nodata
for i=0,n do plots,... (or oplot,...)

Ciao,
Paolo



d.po...@gmail.com wrote:
> On 25 Jul., 11:41, David Fanning <n...@dfanning.com> wrote:
>> d.po...@gmail.com writes:
>>> I want to plot N set of x,y data in a �one figure in a loop like this:
>>
>>> For I =3D0, N-1 do begin
>>
>>> =85
>>> Plot, x(i),y(i)
>>> Endfor
>>> Actually these points are lat-lon data and I want to see all in one
>>> figure
>>> But oplot doesn=92t work there.
>>
>> I *really* don't want to get involved in this discussion
>> in any way, shape, or form. But if you wanted to see how
>> to read and display a shape file in lat/lon coordinates,
>> you *could* read this article:
>>
>> � http://www.dfanning.com/map_tips/shapefile.html
>>
>> And you could have a look at DrawStates:
>>
>> � http://www.dfanning.com/programs/drawstates.pro
>>
>> I am not available for questions, though. :-)
>>
>> Cheers,
>>
>> David
>> --
>> David Fanning, Ph.D.
>> Fanning Software Consulting, Inc.
>> Coyote's Guide to IDL Programming:http://www.dfanning.com/
>> Sepore ma de ni thui. ("Perhaps thou speakest truth.")
>
> i mean for example:
> pro test
>
> for i=0,20 do begin
> data=[[transpose(findgen(i+10)),transpose(findgen(i+10))*0.1 ]]
> print,data
>
> plot,data[0,*],data[1,*]
> endfor
> end
>
>
> Cheers
> Dave
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: How to manipulate vectors by the index
Next Topic: Hardware suggestions for IDL/ENVI.

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

Current Time: Wed Oct 08 19:28:31 PDT 2025

Total time taken to generate the page: 0.00402 seconds