Re: Grids on Minor Ticks. [message #69876] |
Tue, 02 March 2010 09:18 |
Mark Shephard
Messages: 13 Registered: July 1999
|
Junior Member |
|
|
On Feb 25, 3:29 pm, mankoff <mank...@gmail.com> wrote:
> On Feb 25, 11:25 am, Mark Shephard <mark.w.sheph...@gmail.com> wrote:
>
>
>
>> 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
>
> I have what I think is a general solution to make the major tickmarks
> light gray and full length. It might be a starting point to make
> something similar for the minor tickmarks?
>
> http://code.google.com/p/kdm-idl/source/browse/trunk/plotg.p ro
>
> -k.
Hi,
Thanks for the prompt response. I did download your program and gave
it a try. I was doing some complicated plots so in the end I just
decided to use oplot and generate my own grey lines for each major and
minor tickmark on the axis.
Thanks again,
Mark
|
|
|
Re: Grids on Minor Ticks. [message #69898 is a reply to message #69876] |
Thu, 25 February 2010 12:29  |
mankoff
Messages: 131 Registered: March 2004
|
Senior Member |
|
|
On Feb 25, 11:25 am, Mark Shephard <mark.w.sheph...@gmail.com> wrote:
> 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
I have what I think is a general solution to make the major tickmarks
light gray and full length. It might be a starting point to make
something similar for the minor tickmarks?
http://code.google.com/p/kdm-idl/source/browse/trunk/plotg.p ro
-k.
|
|
|