MathGroup Archive 2012

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

Search the Archive

Re: FrameLabel and Style


label = Row[{Style["x", Italic], "[m]"}];

Plot[x^2, {x, -1, 1}, Axes -> False, Frame -> True,
  FrameLabel -> label]


Helen Read
University of Vermont


On 6/13/2012 4:59 AM, Derivator wrote:
> Hi all,
> I want to put the label "x [m]" in a Plot.
> The trouble is that I need  "x" in italics and "[m]" in roman type.
>
> The command
>
> FrameLabel ->  Style["x [m]",Italic ]
>
> puts both x and [m] in italic. The command
>
> FrameLabel ->  Style[x " [m]" ]
>
> puts x in italic and [m] in roman, but gives  the wrong order  [m] x,
> instead of  x [m].
>
> Any idea?
>
> Thanks in advance
>
>






  • Prev by Date: Re: ToString Awkwardness
  • Next by Date: Re: FrameLabel and Style
  • Previous by thread: Re: FrameLabel and Style
  • Next by thread: Re: FrameLabel and Style