MathGroup Archive 1994

[Date Index] [Thread Index] [Author Index]

Search the Archive

re: Fonts in Plots

  • To: mathgroup at
  • Subject: re: Fonts in Plots
  • From: Paul=Rubin%Management%Business at
  • Date: Mon, 6 Jun 94 13:22:57 EDT

roman scoccimarro <erscocci at> 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)                                    *

  • Prev by Date: Scale Transformations
  • Next by Date: Stanford math archive's computer will be in hospital
  • Previous by thread: Fonts in Plots
  • Next by thread: Global styles definitions