Re: Using fractions in axis labels
- To: mathgroup at smc.vnet.net
- Subject: [mg101116] Re: Using fractions in axis labels
- From: "Sjoerd C. de Vries" <sjoerd.c.devries at gmail.com>
- Date: Wed, 24 Jun 2009 06:34:22 -0400 (EDT)
- References: <h1qd0m$83k$1@smc.vnet.net>
The second label isn't a string. Try:
ListLinePlot[{{0, 0}, {1, 1}}, AxesLabel -> {"Wavelength (\[Mu]m)",
"Solar Irradiance (\!\(\*FractionBox[\"W\",
RowBox[{SuperscriptBox[\"m\", \"2\"], \" \", \"\[Mu]m\"}]]\))"}]
Cheers -- Sjoerd
On Jun 23, 1:07 pm, 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 parentheses, but the string expression appears in the numerator, instead of in front 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, with the same result.
>
> Best regards,
> Jeff