Re: [Matplotlib-users] simple question about locator every 0.5

2011-07-20 Thread C M
> Try MultipleLocator: > > from matplotlib.ticker import MultipleLocator > halflocator = MultipleLocator(base=0.5) > ax.xaxis.set_major_locator(halflocator) > > etc. Thanks, that works for me. I didn't think I could use non-integers (0.5) because the docs said, "Set a tick on every integer that i

Re: [Matplotlib-users] simple question about locator every 0.5

2011-07-20 Thread Eric Firing
On 07/20/2011 03:17 PM, C M wrote: > On Wed, Jul 20, 2011 at 7:56 PM, Gökhan Sever wrote: >> >> >> On Wed, Jul 20, 2011 at 5:41 PM, C M wrote: >>> >>> On Wed, Jul 20, 2011 at 7:24 PM, Buchholz, Greg >>> wrote: > -Original Message- > From: C M [mailto:cmpyt...@gmail.com] > >>

Re: [Matplotlib-users] simple question about locator every 0.5

2011-07-20 Thread Gökhan Sever
On Wed, Jul 20, 2011 at 7:17 PM, C M wrote: > On Wed, Jul 20, 2011 at 7:56 PM, Gökhan Sever > wrote: > > > > > > On Wed, Jul 20, 2011 at 5:41 PM, C M wrote: > >> > >> On Wed, Jul 20, 2011 at 7:24 PM, Buchholz, Greg > >> wrote: > >> >>-Original Message- > >> >>From: C M [mailto:cmpyt...

Re: [Matplotlib-users] simple question about locator every 0.5

2011-07-20 Thread C M
On Wed, Jul 20, 2011 at 7:56 PM, Gökhan Sever wrote: > > > On Wed, Jul 20, 2011 at 5:41 PM, C M wrote: >> >> On Wed, Jul 20, 2011 at 7:24 PM, Buchholz, Greg >> wrote: >> >>-Original Message- >> >>From: C M [mailto:cmpyt...@gmail.com] >> >> >> >>Sorry, this is super-simple, but I'm lost i

Re: [Matplotlib-users] simple question about locator every 0.5

2011-07-20 Thread Gökhan Sever
On Wed, Jul 20, 2011 at 5:41 PM, C M wrote: > On Wed, Jul 20, 2011 at 7:24 PM, Buchholz, Greg > wrote: > >>-Original Message- > >>From: C M [mailto:cmpyt...@gmail.com] > >> > >>Sorry, this is super-simple, but I'm lost in the whole > >>locator/formatter part of the docs. > >> > >>How can

Re: [Matplotlib-users] simple question about locator every 0.5

2011-07-20 Thread C M
On Wed, Jul 20, 2011 at 7:24 PM, Buchholz, Greg wrote: >>-Original Message- >>From: C M [mailto:cmpyt...@gmail.com] >> >>Sorry, this is super-simple, but I'm lost in the whole >>locator/formatter part of the docs. >> >>How can I make a locator that just places a tick at every multiple of >

Re: [Matplotlib-users] simple question about locator every 0.5

2011-07-20 Thread Buchholz, Greg
>-Original Message- >From: C M [mailto:cmpyt...@gmail.com] > >Sorry, this is super-simple, but I'm lost in the whole >locator/formatter part of the docs. > >How can I make a locator that just places a tick at every multiple of >0.5 around the data? So the y axis would look like: > >3.5 --

[Matplotlib-users] simple question about locator every 0.5

2011-07-20 Thread C M
Sorry, this is super-simple, but I'm lost in the whole locator/formatter part of the docs. How can I make a locator that just places a tick at every multiple of 0.5 around the data? So the y axis would look like: 3.5 -- 3.0 -- 2.5 -- 2.0 -- 1.5 -- 1.0 -- etc. Thanks, Che -