From: Chris B. <Chr...@no...> - 2004-10-25 16:31:17
|
Gary wrote: > AFAICT, It is not possible to mix text and TeX symbols in a string and > have it come out right. For example, in > > xlabel(r'$\rm{Normalized Temperature} (kT/\epsilon)$' > The text comes out in TeX math mode ... not so pretty. Please tell me > what I've overlooked. well, I'm not sure how this is supported in matplotlib, but in LaTex,you would do: Normalized Temperature $(kT/\epsilon)$ or: $\text{Normalized Temperature} (kT/\epsilon)$ the "$" means put it in math mode, if you don't want "Normalized Temperature" in math mode, don't put it inside the $$. The second puts it all in math mode, but the text{} means set this in text mode. -Chris -- Christopher Barker, Ph.D. Oceanographer NOAA/OR&R/HAZMAT (206) 526-6959 voice 7600 Sand Point Way NE (206) 526-6329 fax Seattle, WA 98115 (206) 526-6317 main reception Chr...@no... |