Re: Minor ticks beyond last xtickv? [message #21748] |
Sat, 16 September 2000 00:00 |
mole6e23
Messages: 31 Registered: December 1998
|
Member |
|
|
Martin Schultz <martin.schultz@dkrz.de> wrote:
>> some fake data shows my problem; it doesn't put minor ticks after the last
>> tick value, and I'd really like it to. If you just let IDL do your axes,
> What exactly do you want?
> I tried:
> IDL> plot,findgen(50)/50.*4.,findgen(50)^2,xrange=[0,4.8],$
> IDL> xtickv=[.5,1.,1.5,2,2.5,3,3.5,4.,4.5,5.],xticks=8,xstyle=1,x minor=8
Your first solution was what I wanted. What I didn't know was that you
could give different numbers of elements to xtickv and xticks. If you look
back at what I wrote, I put in xticks=10 for that example, which forced it
to use all my tick values, instead of xticks=8 which tells it to use only
the first 9 values.
Thanks!
Todd
|
|
|
Re: Minor ticks beyond last xtickv? [message #21749 is a reply to message #21748] |
Sat, 16 September 2000 00:00  |
Martin Schultz
Messages: 515 Registered: August 1997
|
Senior Member |
|
|
Todd Clements wrote:
>
> Hi there...
>
> I deal with direct graphics only (sorry!) and I was recently playing with
> xtickv to set up some axes in a certain way. The following command with
> some fake data shows my problem; it doesn't put minor ticks after the last
> tick value, and I'd really like it to. If you just let IDL do your axes,
> it will put them there. If you try to use xrange and set a higher xtickv
> to try and fake it, it ignores xrange. And I would like to have an exact
> range, not up to 5.0 or whatever. Any ideas on how to get those minor
> ticks?
>
> ;; Needs more ticks!
> plot,findgen(50)/50.*4.,findgen(50)^2,xrange=,$
> xtickv=,xticks=8,xstyle=1,xminor=8
>
> ;; Ignores xrange in favor of xtickv
> plot,findgen(50)/50.*4.,findgen(50)^2,xrange=,$
> xtickv=,xticks=10,xstyle=1,xminor=8
>
> Todd
???????????????
What exactly do you want?
I tried:
IDL> plot,findgen(50)/50.*4.,findgen(50)^2,xrange=,$
IDL>
xtickv=,xticks=8,xstyle=1,xminor=8
and it produces minor tick marks until the very end. If you want to
omit the *label* at 4.5, you could do
IDL> plot,findgen(50)/50.*4.,findgen(50)^2,xrange=,$
IDL>
xtickv=[.5,1.,1.5,2,2.5,3,3.5,4.,4.5,5.],xticks=8,xstyle=1,x minor=8,$
IDL> xtickname=['.5','1','1.5','2','2.5','3','3.5','4',' ','5']
If you don't want a tick mark at 4.5 it becomes a little more
complicated. You would then have to use the axis command to create a
second axis with a ticklen paramater that is smaller.
Regards,
Martin
--
[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[ [[[[[[[
[[ Dr. Martin Schultz Max-Planck-Institut fuer Meteorologie [[
[[ Bundesstr. 55, 20146 Hamburg [[
[[ phone: +49 40 41173-308 [[
[[ fax: +49 40 41173-298 [[
[[ martin.schultz@dkrz.de [[
[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[ [[[[[[[
|
|
|