MathGroup Archive 2007

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

Search the Archive

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

  • To: mathgroup at smc.vnet.net
  • Subject: [mg80795] Re: [mg80766] Re: [Mathematica 6] Bug in Labeled, Center align option
  • From: Murray Eisenberg <murray at math.umass.edu>
  • Date: Sun, 2 Sep 2007 02:50:50 -0400 (EDT)
  • Organization: Mathematics & Statistics, Univ. of Mass./Amherst
  • References: <fb82n2$7jm$1@smc.twtelecom.net> <200709010426.AAA26359@smc.twtelecom.net>
  • Reply-to: murray at math.umass.edu

Why put "123" inside a list?  The examples seem to work fine without 
that, e.g.:

   Panel[{1, 2, 3}, "123", {Bottom, Right}]

Moreover, some funny things happen if you use a single, un-listed 
placement argument.  Thus

   Panel[{1, 2, 3}, {"123"}, Left]

does give a label at the left side, but the label is {123} with the 
braces shown -- as I would expect since the entire 2nd argument is to be 
the label, and that 2nd argument is indeed a one-element list.

But

   Panel[{1, 2, 3}, "123", Left]

displays the legend 123 to the left and without any braces.

David Park wrote:
> Nasser,
> 
> The same thing happens with Panel. Strictly speaking, the documentation 
> indicates that the two argument list for position only applies when a LIST 
> of labels is given. But this certainly seems like a design flaw because in 
> most cases a user would only use a single label. (I also seem to recall that 
> the single label case worked in Version 6.0.0 - but I might be mistaken.)
> 
> The following works (but is inconvenient):
> 
> Panel[{1,2,3},{"123"},{{Bottom,Right}}]
> Panel[{1,2,3},{"123"},{{Bottom,Left}}]
> Panel[{1,2,3},{"123"},{{Top,Right}}]
> Panel[{1,2,3},{"123"},{{Top,Left}}]
> Panel[{1,2,3},{"123"},{{Left,Bottom}}]
> 
> 

-- 
Murray Eisenberg                     murray at math.umass.edu
Mathematics & Statistics Dept.
Lederle Graduate Research Tower      phone 413 549-1020 (H)
University of Massachusetts                413 545-2859 (W)
710 North Pleasant Street            fax   413 545-1801
Amherst, MA 01003-9305


  • Prev by Date: Re: PSLQ
  • Next by Date: Re: Rule-based programming: declare variables to be a number
  • Previous by thread: Re: [Mathematica 6] Bug in Labeled, Center align option not accepted. And how to left justify label under object?
  • Next by thread: Re: Another question Re: Mathematica 6.0 CSV export with ";" as delimiter?