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

Home » Public Forums » archive » in plot_image how do we change the tick values
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
in plot_image how do we change the tick values [message #93495] Sat, 06 August 2016 07:41 Go to next message
gunvicsin11 is currently offline  gunvicsin11
Messages: 93
Registered: November 2012
Member
hello,
I am using plot_image xaxis is shown as pixels but in order to change to arcsec how do we give the values in xaxis instead of the pixel values.

pls help me in this regard.

thanks
Re: in plot_image how do we change the tick values [message #93500 is a reply to message #93495] Mon, 08 August 2016 02:26 Go to previous messageGo to next message
Markus Schmassmann is currently offline  Markus Schmassmann
Messages: 129
Registered: April 2016
Senior Member
On 08/06/2016 04:41 PM, sin <gunvicsin11@gmail.com> wrote:
> I am using plot_image xaxis is shown as pixels but in order to change
> to arcsec how do we give the values in xaxis instead of the pixel
> values.
try one of these:
plot_image, image, scale=[xscale,yscale]
plot_image, image, scale=[xscale,yscale], /nosquare
Re: in plot_image how do we change the tick values [message #93545 is a reply to message #93495] Tue, 16 August 2016 21:53 Go to previous messageGo to next message
jai is currently offline  jai
Messages: 1
Registered: August 2016
Junior Member
On Saturday, August 6, 2016 at 8:11:57 PM UTC+5:30, sin wrote:
> hello,
> I am using plot_image xaxis is shown as pixels but in order to change to arcsec how do we give the values in xaxis instead of the pixel values.
>
> pls help me in this regard.
>
> thanks

I assume you are plotting the image from a fits file with a header. The header contains the keyword CDELT1 and CDELT2 these are the scales to be used along X and Y respectively. you can do something like this

plot_image,image,scale=[index.cdelt1,index.cdelt2]
Re: in plot_image how do we change the tick values [message #93546 is a reply to message #93495] Tue, 16 August 2016 22:06 Go to previous message
gunvicsin11 is currently offline  gunvicsin11
Messages: 93
Registered: November 2012
Member
On Saturday, August 6, 2016 at 8:11:57 PM UTC+5:30, sin wrote:
> hello,
> I am using plot_image xaxis is shown as pixels but in order to change to arcsec how do we give the values in xaxis instead of the pixel values.
>
> pls help me in this regard.
>
> thanks

Thanks a lot for the help.
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: volumes of contiguous areas that have range of values
Next Topic: IRC SERVER

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

Current Time: Wed Oct 08 11:34:15 PDT 2025

Total time taken to generate the page: 0.00434 seconds