On Friday, June 1, 2012 11:22:13 AM UTC-4, ObsessiveMathsFreak wrote: > > While the "ticks=" option in plot can be used to place custom tick marks > on plot axes, how would you go about putting custom labels on each tick > mark, preferably latex ones,. e.g. $x_0$, $x_1$, etc. > > Is there a way of doing this automatically, given a list of ticks and > labels? > > Yep, but you'd probably have to use a tiny bit of matplotlib. You may find the FuncFormatter [1] useful. Go to the Graphics object documentation [2] to see exactly how to then use such a formatter.
[1] http://matplotlib.sourceforge.net/api/ticker_api.html#matplotlib.ticker.FuncFormatter [2] http://sagemath.org/doc/reference/sage/plot/graphics.html - kcrisman -- 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
