Re: How to do minor gridlines? [message #20046] |
Thu, 11 May 2000 00:00 |
davidf
Messages: 2866 Registered: September 1996
|
Senior Member |
|
|
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
|
|
|
Re: How to do minor gridlines? [message #20051 is a reply to message #20046] |
Thu, 11 May 2000 00:00  |
Frank Holland
Messages: 3 Registered: March 1999
|
Junior Member |
|
|
P.S.:
IDL> print, !version
{ x86 Win32 Windows 5.3.1 Feb 23 2000}
Frank Holland wrote:
> 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?
>
> Frank
--
************************************
Frank Holland
Forschungszentrum Juelich GmbH
Institut f. Atmosphaerische Chemie
52425 Juelich, Germany
Tel [+49] (0)2461-61-6078
Fax [+49] (0)2461-61-8185
************************************
|
|
|