Mathematica 9 is now available
Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
2007
*January
*February
*March
*April
*May
*June
*July
*August
*September
*October
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 2007

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

Search the Archive

Re: [Mathematica 6] Bug in Labeled, Center align option

  • To: mathgroup at smc.vnet.net
  • Subject: [mg80764] Re: [mg80735] [Mathematica 6] Bug in Labeled, Center align option
  • From: Carl Woll <carlw at wolfram.com>
  • Date: Sat, 1 Sep 2007 00:25:04 -0400 (EDT)
  • References: <200708310340.XAA07758@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}]
>  
>
You need to change the syntax to use another pair of {}:

Labeled[{1,2,3},"123",{{Bottom, Center}}]

I agree that the help here is a bit misleading. However, if you go down 
to the Scope examples, you will see an example titled

"Control the placement of labels:"

and here you have examples placing labels wherever you want. I often 
find these examples in the documentation to be very helpful.

Carl Woll
Wolfram Research

>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.
>
>thanks,
>Nasser 
>
>  
>



  • Prev by Date: making a fast projection of a crytsallographic unit cell
  • Next by Date: Re: Mathematica 6.0 CSV export with ";" as delimiter?
  • Previous by thread: Re: making a fast projection of a crytsallographic unit cell
  • Next by thread: Re: Mathematica 6.0 CSV export with ";" as delimiter?