Help!. I'd like to show traditional "lesser-than-or-equal" and
"greater-than-or-equal" symbols in a title or label fields but can't
find anything in the documentation and I've tried a number of guesses
but to no avail. Given the range of mathematical expressions that
matplot can support I'm sure there is something better than "<=". Thanks
in advance.
Frank
You can use the \leq latex symbol when using either the mathtext module.
See the screenshots page for a demo of it.
http://matplotlib.sourceforge.net/screenshots/mathtext_demo.py
http://matplotlib.sourceforge.net/screenshots/mathtext_demo_large.png
Also, this page contains a list of latex math symbols.
http://www.fi.uib.no/Fysisk/Teori/KURS/WRK/TeX/symALL.html
Regards,
John
···
On Wed, 2005-10-05 at 15:32 -0400, Smith, Frank wrote:
Help!. I'd like to show traditional "lesser-than-or-equal" and
"greater-than-or-equal" symbols in a title or label fields but can't
find anything in the documentation and I've tried a number of guesses
but to no avail. Given the range of mathematical expressions that
matplot can support I'm sure there is something better than "<=". Thanks
in advance.
--
John Byrnes (byrnes@...728...)
Graduate Student
Electrical Engineering
Boston University
To obtain a man's opinion of you, make him mad.
-- Oliver Wendell Holmes
Smith, Frank wrote:
Help!. I'd like to show traditional "lesser-than-or-equal" and
"greater-than-or-equal" symbols in a title or label fields but can't
find anything in the documentation and I've tried a number of guesses
but to no avail. Given the range of mathematical expressions that
matplot can support I'm sure there is something better than "<=". Thanks
in advance.
Frank
Frank:
Try this:
>>> from pylab import *
>>> plot([1,2,3])
>>> title(u'\N{GREATER-THAN OR EQUAL TO}')
>>> show()
-Jeff
···
--
Jeffrey S. Whitaker Phone : (303)497-6313
Meteorologist FAX : (303)497-6449
NOAA/OAR/CDC R/CDC1 Email : Jeffrey.S.Whitaker@...259...
325 Broadway Office : Skaggs Research Cntr 1D-124
Boulder, CO, USA 80303-3328 Web : Jeffrey S. Whitaker: NOAA Physical Sciences Laboratory