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

Home » Public Forums » archive » Grids on Minor Ticks.
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Grids on Minor Ticks. [message #69901] Thu, 25 February 2010 11:25
Mark Shephard is currently offline  Mark Shephard
Messages: 13
Registered: July 1999
Junior Member
Hi,

Does anyone know how to put a grid on minor tickmarks? If you set the
ticklen=1 it only makes a grid on the major ticks.

Back in 2000 Dave Fanning posted this work around.
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

However, since my plot axis will be very detailed and I am not sure
how many tickmarks there will be on a given plot, I was wondering if
anyone has come up with a solution.

Thanks,
Mark
[Message index]
 
Read Message
Previous Topic: 0=1 (Double precision/Long64)
Next Topic: Print 2 arrays side by side in one file

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

Current Time: Sun Oct 12 14:02:34 PDT 2025

Total time taken to generate the page: 0.18248 seconds