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

Home » Public Forums » archive » Re: How to do minor gridlines?
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 do minor gridlines? [message #20046] Thu, 11 May 2000 00:00
davidf is currently offline  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 Go to previous message
Frank Holland is currently offline  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
************************************
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Filling in the Gaps (contour mapping)
Next Topic: Re: 5.3: IDLgrVolume,CUTPLANES=

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

Current Time: Wed Oct 08 17:35:08 PDT 2025

Total time taken to generate the page: 0.00496 seconds