Re: long Framelabels
- To: mathgroup at smc.vnet.net
- Subject: [mg33277] Re: [mg33267] long Framelabels
- From: BobHanlon at aol.com
- Date: Wed, 13 Mar 2002 03:14:46 -0500 (EST)
- Sender: owner-wri-mathgroup at wolfram.com
In a message dated 3/12/02 6:16:58 AM, hvdosten at lb.netic.de writes:
>if there are pretty long labels I have seen that it is possible to force
>line-breakings with an "\n". But how can I do the centering of the parts
>of the lines??
>
If the labels use a monospace font
line1 = "This is a very very";
line2 = "long, but also necessary framelabel";
Plot[x^2+3x-4, {x,-5,5},
Frame->True, Axes->False,
FrameLabel->{StringJoin[Table[" ",
{Abs[StringLength[line1]-StringLength[line2]]/2}],
line1]<>"\n"<>line2, "\[CapitalDelta]T [nT]\n"},
ImageSize -> 400];
Bob Hanlon
Chantilly, VA USA