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

Home » Public Forums » archive » Questions about NG image with (log) axis
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Questions about NG image with (log) axis [message #85440] Tue, 06 August 2013 23:38 Go to previous message
Xin Tao is currently offline  Xin Tao
Messages: 40
Registered: April 2011
Member
Hi,

I'm not sure whether I understand the image function from IDL 8 correctly. I want to plot a 2D image with x and y axis. I've observed at least two strange behaviours. Please give me some help. Thanks.

data = dist(300)

My question 1: What determines the size of the image?
If I have

x=dindgen(300)*2
y=dindgen(300)

then im=image(data, x, y, axis_style=2) will give me an elongated image.

If I have
x=dindgen(300)
y=dindgen(300)

then im=image(data, x, y, axis_style=2) will give me an square image.

This behavior of the IMAGE function is strange to me.

My question 2: This looks like a bug.

If I have

x=dlinear(10, 100, 300) ;; create an array from 10 to 100 with 300 elements
y=dindgen(300)

and

im=image(data, x, y, /xlog, axis_style=2)

the image x axis has a value from 10^20, 10^40, ..., 10^100. This is certainly wrong to me.

Am I missing something here?
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: How to clear a NG window without erase method?
Next Topic: 'Reading' a file from binary data?

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

Current Time: Wed Oct 08 16:13:11 PDT 2025

Total time taken to generate the page: 0.00334 seconds