ticks disappearing

Are you using the same tick locator on different axes? You shouldn't
be. You should try and create a standalone script that exposes your
bug.

JDH

···

On Friday 10 June 2005 00:13, Nicolas Girard wrote:

    >> There's an other annoying bug with this script. For the
    >> subplots on columns 2 and 3 I asked the yaxis to have only but
    >> 3 ticks, using:
    >>
    >> majorLocator = LinearLocator(numticks=3)
    >>
    >> ... a=subplot(nbvals,3,i)
    >> a.yaxis.set_major_locator(majorLocator)
    >>
    >> which works, but as the figure gets refreshed, the ticks
    >> disappear, and at the end only part of them remain
    >> visible. I've encounetered this with the standard Agg backend,
    >> with either interactive and non-interactive mode. Saving as
    >> jpeg, png and ps didn't help, as you can see here:
    >>
    >> http://nicolasgirard.nerim.net/out.png
    >>
    >>
    > Unfortunately, this problem remains, even after updating
    > my sandbox and trying Baptiste Carvello's patch :-/

Are you using the same tick locator on different axes?

Thanks for your answer ; yes, I am

You shouldn't be.

Oh, really ? Then it must be that. Let me try... OK, I used

  a.yaxis.set_major_locator(LinearLocator(numticks=3))

instead of reusing the same locator, and here's the result:

  http://nicolasgirard.nerim.net/3ticks.png

As you can see, there's a big improvement but still a problem with the
subplots on the right.

I'd suggest add to the docs the fact that a locator shouldn't be reused,
because it's not obvious, since a valid semantics is:

  majorLocator = LinearLocator(numticks=3)
  ...
  anAxis.set_major_locator(majorLocator)

which I understood as:

  "anAxis's locator should be linear, with 3 ticks"

You should try and create a standalone script that exposes your
bug.

Okay, I'll do it, but perhaps not before the next week-end...

cheers,
nicolas

···

On Monday 13 June 2005 22:57, John Hunter wrote: