From: Carla A. N. <c-...@no...> - 2004-07-21 19:47:07
|
Hi, I'm having the worst time formatting my plot title in Python using matplotlib. I want the title to read "delta^15N and TL for" name "food web" where delta should be the greek symbol, 15 should be superscript, and the title takes the user-supplied string variable, name, and adds it in to the string. From what I've tried, I can either get the symbol/superscript formatting correct and lose all the rest of the text (or have it squished together with no whitespace) or no math formatting at all. This is the best I've been able to do: title(r'$\delta^{15}N and Trophic Level for Food Web$') which gives me a good result, but no whitespace and no way to add in the file name on the fly. (This is a program that processes a file you give it and gives you a plot of the results) Anyone out there know a command to manually add a space? Is there something equivalent to \t or \n? Thanks! Carla A. Ng =================================== Northwestern University Department of Chemical and Biological Engineering 2145 North Sheridan Road Evanston, IL 60208 Phone: (847)467-4980 Fax: (847)491-4011 =================================== "When one tugs at a single thing in nature, he finds it attached to the rest of the world." -- John Muir |