Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.soft-sys.math.mathematica > #10464

Re: FrameLabel and Style

From Helen Read <readhpr@gmail.com>
Newsgroups comp.soft-sys.math.mathematica
Subject Re: FrameLabel and Style
Date 2012-06-14 09:37 +0000
Organization Steven M. Christensen and Associates, Inc and MathTensor, Inc.
Message-ID <jrcbcd$duh$1@smc.vnet.net> (permalink)
References <jr9kou$3la$1@smc.vnet.net>

Show all headers | View raw


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
>
>



Back to comp.soft-sys.math.mathematica | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

FrameLabel and Style Derivator <derivatorb@gmail.com> - 2012-06-13 08:59 +0000
  Re: FrameLabel and Style Helen Read <readhpr@gmail.com> - 2012-06-14 09:37 +0000
  Re: FrameLabel and Style derivatorb@gmail.com - 2012-06-19 07:15 +0000

csiph-web