On Fri, Jan 28, 2011 at 9:08 PM, Jeff wrote:
> I would like to be able to plot a function, e.g. plot(sin), that has
> axes and ticks on the axes but that does not have labels for the
> ticks. I understand that I might be able to do this using a ticker
> formatter, perhaps also, by directly using matplotlib, but I do not
> know exactly how to go about doing this.

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

-- 
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org

Reply via email to