On Thu, May 22, 2008 at 03:25:41PM -0700, Christopher Brown wrote:
> Hi Users,
>
> What is the best way to add a subscript to a tick label using the
> default font?
Hm, could you give a short example of what you want? I do subscripts
with this code:
In [1]: subplot(111)
Out[1]: <matplotlib.axes.AxesSubplot object at 0x8cbbf2c>
In [2]: xticks((0, 0.5, 1), (r'$t_0$', r'$t_1$', r'$t_2$'), fontsize=18)
Out[2]:
([<matplotlib.axis.XTick object at 0x8cd028c>,
<matplotlib.axis.XTick object at 0x8ffb0ac>,
<matplotlib.axis.XTick object at 0x8ffb0cc>],
<a list of 3 Text xticklabel objects>)
But sure this is not the best way to do it :-)
By, Friedrich
|