Services & Resources / Wolfram Forums / MathGroup Archive
-----

MathGroup Archive 2009

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

Search the Archive

Re: Using fractions in axis labels

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

On 23 June, 07:07, Jeff Lawlis <jlaw... at allendalecolumbia.org> 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:

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

Cheers,
Pillsy


  • 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