There may be a simpler way, but:
import matplotlib
p = plot(sin)
p.show(tick_formatter=(matplotlib.ticker.NullFormatter(),
matplotlib.ticker.NullFormatter()))
worked for me. The repetition is to make sure that both x and y tick
labels are turned off.
Doug
--
Department of Earth Sciences
University of Hong Kong
I think the string 'none' might be a better fit for matplotlib
conventions, for what it's worth.
Jason
Yes, I do see a possibly confusing point. Advantages are:
1. once people realize that None means default, then the confusion is
lessened.
2. 'none' works for colors and the like since that's the matplotlib
convention.
Actually, (2) doesn't work in Sage, since apparently to_mpl_color
doesn't recognize 'none'. That's a bug in my opinion, as there is no
way to, say, draw a circle with a fill but no surrounding edge.
I'd say 'null' is less intuitive than 'none' (again, once the user
realizes that None actually means default).
Thanks,
Jason