Re: [Matplotlib-users] making minor ticks into lines instead of ticks

2008-03-18 Thread Chris Withers
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 do I get the grid to show up 
behind the lines?

cheers,

Chris

-- 
Simplistix - Content Management, Zope & Python Consulting
- http://www.simplistix.co.uk

-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] making minor ticks into lines instead of ticks

2008-03-17 Thread Eric Firing
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')

Eric

> 
> cheers,
> 
> Chris
> 


-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] making minor ticks into lines instead of ticks

2008-03-18 Thread Chris Withers
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 docstring of the method;-)

However, this isn't quite what I want... I only want the grid for the 
y-axis (ie: horizontal lines in the grid, but no vertical), how would I 
do that?

cheers,

Chris

-- 
Simplistix - Content Management, Zope & Python Consulting
- http://www.simplistix.co.uk

-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] making minor ticks into lines instead of ticks

2008-03-18 Thread Matthias Michler
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()
---

best regards,
Matthias

On Tuesday 18 March 2008 10:22, Chris Withers wrote:
> 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 docstring of the method;-)
>
> However, this isn't quite what I want... I only want the grid for the
> y-axis (ie: horizontal lines in the grid, but no vertical), how would I
> do that?
>
> cheers,
>
> Chris

-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users