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

Home » Public Forums » archive » tvscl
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: tvscl [message #94808 is a reply to message #94804] Thu, 19 October 2017 07:05 Go to previous messageGo to previous message
wlandsman is currently offline  wlandsman
Messages: 743
Registered: June 2000
Senior Member
If you have a array, x, of 50 numbers

x = randomn(seed,1,1,50)

and an array,z

z = fltarr(500,1000)

and you want to put the values of x in a row of z starting at (300, 525) you can write

z[300:349,525] = x

I am just guessing that this is what you might want, because your question is not very clear. ---Wayne


On Wednesday, October 18, 2017 at 10:28:08 AM UTC-4, AGW wrote:
> Hi everyone,
>
> If I have array as x=fltarr(1,1,50), If I want to display it at specific position I write
>
>> window,xs=500,ys=1000
>> tvscl,x,300,525
>
> My question is how I can save x at this position in new array z, whereas when I write
>
>> window,xs=500,ys=1000
>> tvscl,z
>
> appear at the same position (300,525)
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Catched in a catch loop
Next Topic: Re: Voigt funcion in mpfit

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

Current Time: Wed Oct 08 14:11:43 PDT 2025

Total time taken to generate the page: 0.00905 seconds