> 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
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]
>
>>
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...
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
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
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
>
>-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 --
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
-