re: Fonts in Plots
- To: mathgroup at yoda.physics.unc.edu
- Subject: re: Fonts in Plots
- From: Paul=Rubin%Management%Business at banyan.cl.msu.edu
- Date: Mon, 6 Jun 94 13:22:57 EDT
roman scoccimarro <erscocci at midway.uchicago.edu> wrote:
>I would like to use greek letters (as well as roman letters) and
>subindexes when labelling plots, is there any way to do that?
Actually, I just answered the same question on sci.math.symbolic Friday. An
economy of scale! :)
Use FontForm to specify the label, and use the PostScript "Symbol" font to
get Greek letters. Here's an example that labels the vertical axis "alpha":
Plot[ x^2, {x, -5, 5}, AxesLabel -> {x, FontForm[ "a", {"Symbol", 10} ]} ]
I'm not sure off-hand how you do sub/superscripts, but it can be done (as
long as you're using PostScript for screen display and/or printing). If you
can't do them with FontForm[], try PostScript[]. Of course, you'll have to
know the equivalent characters to the Greek letters in Symbol font or the PS
codes for subs and supers.
**************************************************************************
* Paul A. Rubin Phone: (517) 336-3509 *
* Department of Management Fax: (517) 336-1111 *
* Eli Broad Graduate School of Management Net: RUBIN at MSU.EDU *
* Michigan State University *
* East Lansing, MI 48824-1122 (USA) *
**************************************************************************