tvscl [message #94804] |
Wed, 18 October 2017 07:28  |
Ali Gamal
Messages: 98 Registered: June 2013
|
Member |
|
|
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)
|
|
|
Re: tvscl [message #94805 is a reply to message #94804] |
Wed, 18 October 2017 21:00   |
lxianbnu1
Messages: 3 Registered: October 2017
|
Junior Member |
|
|
在 2017年10月18日星期三 UTC+8下午10:28:08,AGW写道:
> 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)
I think you can set z = [300,525] then tvscl,x,z[0],z[1] may be achieve your goal.
|
|
|
Re: tvscl [message #94807 is a reply to message #94804] |
Thu, 19 October 2017 04:04   |
Ali Gamal
Messages: 98 Registered: June 2013
|
Member |
|
|
On Wednesday, October 18, 2017 at 4:28:08 PM UTC+2, 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)
No, it is not work.
|
|
|
Re: tvscl [message #94808 is a reply to message #94804] |
Thu, 19 October 2017 07:05   |
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)
|
|
|
Re: tvscl [message #94809 is a reply to message #94804] |
Thu, 19 October 2017 11:18   |
Ali Gamal
Messages: 98 Registered: June 2013
|
Member |
|
|
On Wednesday, October 18, 2017 at 4:28:08 PM UTC+2, 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)
I apply your answer but if I write
> window,xs=500,ys=1000
> tvscl,x
It not appears at position (300,525), it appears at left corner of window
|
|
|
Re: tvscl [message #94810 is a reply to message #94809] |
Thu, 19 October 2017 11:43   |
wlandsman
Messages: 743 Registered: June 2000
|
Senior Member |
|
|
On Thursday, October 19, 2017 at 2:18:27 PM UTC-4, AGW wrote:
> I apply your answer but if I write
>
>> window,xs=500,ys=1000
>> tvscl,x
>
> It not appears at position (300,525), it appears at left corner of window
Of course it does. It is the z array that should be displayed.
window,xs=500,ys=1000
tvscl,z
|
|
|
Re: tvscl [message #94811 is a reply to message #94804] |
Fri, 20 October 2017 08:13   |
Ali Gamal
Messages: 98 Registered: June 2013
|
Member |
|
|
On Wednesday, October 18, 2017 at 4:28:08 PM UTC+2, 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)
Thanks for yoy, I will try it in my problem and tell you
|
|
|
Re: tvscl [message #94812 is a reply to message #94804] |
Fri, 20 October 2017 08:14  |
Ali Gamal
Messages: 98 Registered: June 2013
|
Member |
|
|
On Wednesday, October 18, 2017 at 4:28:08 PM UTC+2, 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)
Thanks for you, I will try it in my problem and tell you later
|
|
|