From: John H. <jdh...@ac...> - 2004-07-07 16:17:46
|
>>>>> "Nino" == Nino Cucchiara <cuc...@me...> writes: Nino> I want to write some greek symbols in axes legend, for Nino> exemple nu letters or lambda. Is it possible? Thank you. You can use mathtext anywhere you can use text. Just use the standard way of specifying the string s = r'$\lambda = 5$' See http://matplotlib.sf.net/matplotlib.mathtext.html for more information on mathtext. You may be happy to hear that mathtext for postscript should be ready soon! Here is an example that uses mathtext in a legend from matplotlib.matlab import * t = arange(0.0, 2.0, 0.1) plot(t, sin(2*pi*t), '--go', t, log(1+t), '.') legend((r'$\nu$', r'$\lambda$'), 'upper right') show() |