Re: how to suppress tick labels on x-y plot [message #54129] |
Sat, 19 May 2007 19:06 |
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  |
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  |
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
|
|
|