From: Mark Bakker [mailto:[EMAIL PROTECTED] 
Sent: Thursday, November 06, 2008 10:48

Thanks Stan.

I read the docs (which are quite nice), but couldn't find a way to set the
ticks after the fact.
But your method worked,

Mark

It seems to me that setting the ticks after the fact is more difficult, but
the following appears to work:

import matplotlib as mpl
 
b.locator = mpl.ticker.FixedLocator([0, 5, 10])
b.draw_all()  # recalculate the colorbar
draw()

Stan

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to