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

Home » Public Forums » archive » Turning Axis Labelling Off
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: Turning Axis Labelling Off [message #89786 is a reply to message #89779] Wed, 03 December 2014 10:25 Go to previous messageGo to previous message
vaibhavpant55 is currently offline  vaibhavpant55
Messages: 10
Registered: December 2014
Junior Member
On Wednesday, December 3, 2014 9:41:08 PM UTC+5:30, g.na...@gmail.com wrote:
> Hi
>
> I am using the cgimage function to display my images. I draw the axis on top of my images, but I don't want the axis to be labelled. I used the following code
>
> cgimage, Im1, /AXES, AXKeywords={XTicklen:1.0, YTickLen:1.0, axiscolor:'blue', xminor:1, yminor:1, xtickinterval:30, ytickinterval:30}, /SAVE,Position=pos[*,0]
>
> I tried the XTICKFORMAT keyword but is not allowed to the cgimage function.
>
> How can I turn axis labelling off? Can anyone please help with this?


I use [x,y,z]tickname to suppress labeling of axis. I never used them with CGimage function.
Set [x,y,z]tickname to a string array with same size as the number of ticks in that axis. Element of string array should be a SPACE Eg.

x=fltarr(256,256)
plot_image,x,xticklen=replicate(' ',6),yticklen=replicate(' ',6)

Vaibhav Pant
Indian Institute Of Astrophysics
India
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: idl equivalent of Iraf
Next Topic: Filling the frame of a NG plot

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

Current Time: Mon Apr 13 17:59:39 PDT 2026

Total time taken to generate the page: 0.02347 seconds