Matthias Michler wrote:
> ax.yaxis.grid(which='minor')
This is what I was after, thankyou :-)
However, the lines show up on top of the lines plotted, not behind them
as I'd expect.
I tried fiddling with the zorder of the plot and the grid but nothing
had any effect. What am I doing wrong? How
Hello Chris,
for only horizontal lines you can use 'ax.yaxis.grid' like:
---
from pylab import *
figure()
ax = axes()
ax.set_yticks([0.0,0.5,1.0], minor=False)
ax.set_yticks(list(linspace(0.0, 1.0, 11)), minor=True)
ax.yaxis.grid(which='minor')
show(
Eric Firing wrote:
>> I can get the major ticks to show by doing grid(True), but how do I
>> get the same effect for minor ticks?
>
> Try
>
> grid(True, which='minor')
Thanks, that worked (well, it did what it was supposed to...) so it'd be
nice if it was in the online docs as well as the docs
Chris Withers wrote:
> Hi All,
>
> How do I go about showing minor ticks as lines across the whole plot, as
> opposed to just little ticks at the side?
>
> I can get the major ticks to show by doing grid(True), but how do I get
> the same effect for minor ticks?
Try
grid(True, which='minor')
Hi All,
How do I go about showing minor ticks as lines across the whole plot, as
opposed to just little ticks at the side?
I can get the major ticks to show by doing grid(True), but how do I get
the same effect for minor ticks?
cheers,
Chris
--
Simplistix - Content Management, Zope & Python