Re: Using fractions in axis labels
- To: mathgroup at smc.vnet.net
- Subject: [mg101127] Re: [mg101078] Using fractions in axis labels
- From: "David Park" <djmpark at comcast.net>
- Date: Wed, 24 Jun 2009 06:36:24 -0400 (EDT)
- References: <9060694.1245756072099.JavaMail.root@n11>
I'm not quite certain what your y axis label is to be, but you could use a
Row construction to format the label.
Plot[x, {x, 0, 1},
AxesLabel -> {"Wavelength (\[Mu]m)",
Row[{"Solar Irradiance ", W/(m^2), " \[Mu]m"}]}]
David Park
djmpark at comcast.net
http://home.comcast.net/~djmpark/
From: Jeff Lawlis [mailto:jlawlis at allendalecolumbia.org]
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