Re: [Mathematica 6] Bug in Labeled, Center align option not accepted.
- To: mathgroup at smc.vnet.net
- Subject: [mg80768] Re: [Mathematica 6] Bug in Labeled, Center align option not accepted.
- From: Jean-Marc Gulliet <jeanmarc.gulliet at gmail.com>
- Date: Sat, 1 Sep 2007 00:27:08 -0400 (EDT)
- Organization: The Open University, Milton Keynes, UK
- References: <fb82n2$7jm$1@smc.twtelecom.net>
Nasser Abbasi wrote: > Mathematica 6.0.1 > > Hello > > According to help, Labeled is supposed to accept the form {side,align} where > align can include > > Center, Left, Right, Bottom, Top. > > But when I tried the 'Center', it did not accept it. > > Labeled[{1, 2, 3}, "123", {Bottom, Right}] > Labeled[{1, 2, 3}, "123", {Bottom, Left}] > Labeled[{1, 2, 3}, "123", {Bottom, Right}] > Labeled[{1, 2, 3}, "123", {Bottom, Top}] > Labeled[{1, 2, 3}, "123", {Bottom, Center}] > > Last command way above, returned its echo. > > Another question: What is align supposed to do? every label I try with any > alignment, I get the same thing. I wanted the label to started from the far > left, i.e. left adjusted, but it seems to always be 'centere' below the > object being labeled. > > Is there a way to make the label be left adjusted with respect to the object > being labeled? as in > > Labeled["1 2 3","A"] > > and get: > 1 2 3 > A > > Now I always get > 1 2 3 > A > > No matter what align option I used. I wish help has more help. some parts of > help seem to be too short on details. Hi Nasser, The trick is to wrap the position given by the list {side, align} within another list like {{side, align}}, otherwise the the flat list is interpreted as {side(for 1st lbl), side(for 2nd lbl)}. In[1]:= Labeled["1 2 3", "A", {{Bottom, Left}}] Out[1]= 1 2 3 A In[2]:= Labeled["1 2 3", "A", {{Bottom, Right}}] Out[2]= 1 2 3 A Regards, Jean-Marc