MathGroup Archive 2009

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

Search the Archive

Re: Using fractions in axis labels

  • To: mathgroup at
  • Subject: [mg101104] Re: Using fractions in axis labels
  • From: Pillsy <pillsbury at>
  • Date: Wed, 24 Jun 2009 06:32:08 -0400 (EDT)
  • References: <h1qd0m$83k$>

On 23 June, 07:07, Jeff Lawlis <jlaw... at> wrote:
> I can't seem to get my axis labels formatted correctly in Mathematica 7. =
 I would like to have a string expression followed by a fraction in paren=
theses, but the string expression appears in the numerator, instead of in f=
ront of the fraction.  Here is my expression for SetOptions:
> SetOptions[ListLinePlot,AxesLabel -> {"Wavelength (\[Mu]m)",
>   Solar Irradiance \!\(
>      "W" \/ "\!\(\*SuperscriptBox[\"m\", \"2\"]\)\[Mu]m"\)}]
> I have also tried the frontend graphics interface to enter fractions, wit=
h the same result.

Use StringForm:

 AxesLabel -> {"Wavelength (\[Mu]m)",
   StringForm["Solar Irradiance (`1`)", m/2]}]


  • Prev by Date: Plot contour regions over a globe
  • Next by Date: Re: For loops with mathematica....
  • Previous by thread: Using fractions in axis labels
  • Next by thread: Re: Using fractions in axis labels