[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to do minor gridlines?



Frank Holland (f.holland@fz-juelich.de) writes:

> I'd like to do major AND minor gridlines in a x-y plot. However, setting
> XTICKLEN = 1.0 increases only the length of major tickmarks while the
> minor tickmarks remain unchanged. Strangely enough, setting XTICKLEN to
> a negative number changes the length of both, minor and major tickmarks,
> but of course doesn't produce the grid I want to see.
> 
> Any ideas?

I think you are going to have to finesse this. I'd try
something like this:

   PRO Example
   data = Findgen(101)
   Plot, data, YStyle=4, /NoData, XTickFormat='(A1)', $
      XTicklen=1, XTicks=25, XMinor=1, XGridStyle=2
   Plot, data, /NoErase, XTicks=5, XMinor=1, XTicklen=1
   END

Cheers,

David
-- 
David Fanning, Ph.D.
Fanning Software Consulting
Phone: 970-221-0438 E-Mail: davidf@dfanning.com
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Toll-Free IDL Book Orders: 1-888-461-0155