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

Home » Public Forums » archive » Re: how to suppress tick labels on x-y plot
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
Re: how to suppress tick labels on x-y plot [message #54129] Sat, 19 May 2007 19:06
teich is currently offline  teich
Messages: 33
Registered: May 2007
Member
On May 18, 3:47 pm, ianpaul.free...@gmail.com wrote:
> On May 18, 9:39 am, t...@atmsci.msrc.sunysb.edu wrote:
>
>> Hi,
>
>> I have a plot and the x and y axes are labeled at 0,1,2, etc. I want
>> to keep all, but not have the 0 labeled.
>
>> Does anyone know how I can suppress the '0' label on my x and y axes?
>
>> Thanks,
>
>> Howie
>
> You can also just cut the graph off slightly before '0':
> plot, x,y,xrange=[.001,5],xstyle=1

Hi, Thanks for both of you for the useful info!

Howie
Re: how to suppress tick labels on x-y plot [message #54132 is a reply to message #54129] Fri, 18 May 2007 12:47 Go to previous message
ianpaul.freeley is currently offline  ianpaul.freeley
Messages: 18
Registered: March 2007
Junior Member
On May 18, 9:39 am, t...@atmsci.msrc.sunysb.edu wrote:
> Hi,
>
> I have a plot and the x and y axes are labeled at 0,1,2, etc. I want
> to keep all, but not have the 0 labeled.
>
> Does anyone know how I can suppress the '0' label on my x and y axes?
>
> Thanks,
>
> Howie

You can also just cut the graph off slightly before '0':
plot, x,y,xrange=[.001,5],xstyle=1
Re: how to suppress tick labels on x-y plot [message #54134 is a reply to message #54132] Fri, 18 May 2007 11:24 Go to previous message
cmancone is currently offline  cmancone
Messages: 30
Registered: May 2007
Member
I believe that what you want is [xyz]tickname. Pass it an array of
strings, with a blank charcter where you don't want a tick label, and
a null character where you do want one. For instance, if there are
only 3 lables (0,1, and 2), then you would want to try the following:

plot,xdata,ydata,xtickname=[' ','',''],ytickname=[' ','','']

You can just add more null characters for each additional axis label.

It seems that you can leave out as many on the end as you want. So,
if you only wanted to hide the first tick label, you could do this:

plot,xdata,ydata,xtickname=[' '],ytickname=[' ']

(at least, it works for me).

On May 18, 12:39 pm, t...@atmsci.msrc.sunysb.edu wrote:
> Hi,
>
> I have a plot and the x and y axes are labeled at 0,1,2, etc. I want
> to keep all, but not have the 0 labeled.
>
> Does anyone know how I can suppress the '0' label on my x and y axes?
>
> Thanks,
>
> Howie
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: www.eBankGame.com Buy WoW gold RS gold WG k gold
Next Topic: match 2 files

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

Current Time: Thu Oct 09 06:59:45 PDT 2025

Total time taken to generate the page: 1.75724 seconds