MathGroup Archive 2003

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

Search the Archive

Re: He said DisplayTogetherArray, but ...

  • To: mathgroup at smc.vnet.net
  • Subject: [mg43148] Re: He said DisplayTogetherArray, but ...
  • From: Paul Abbott <paul at physics.uwa.edu.au>
  • Date: Thu, 14 Aug 2003 05:08:05 -0400 (EDT)
  • Organization: The University of Western Australia
  • References: <bh26jl$hp5$1@smc.vnet.net> <200308120843.EAA20927@smc.vnet.net> <bhd8qq$rm3$1@smc.vnet.net>
  • Sender: owner-wri-mathgroup at wolfram.com

In article <bhd8qq$rm3$1 at smc.vnet.net>,
 Murray Eisenberg <murray at math.umass.edu> wrote:

> How is DisplayTogetherArray different here -- at least in what is 
> displayed -- from a simple Show (wrapped around the GraphicsArray 
> expression, of course)?

You are correct:

  Show[
    GraphicsArray[   
      Partition[
        Graphics[{Hue[#], Rectangle[{0, 0},{1, 1}]}, 
          AspectRatio -> Automatic] & /@ Range[0, 0.9, 0.1], 3
      ]
    ]
  ];

works fine and, in this case, there are no intermediate graphics to 
suppress.

> Note, also, that the documentation for DisplayTogetherArray says:
> 
>    DisplayTogetherArray[plotcommands, opts] takes a sequence of
>    plot commands ...and combines them to produce a GraphicsArray
>    of the plots.
> 
> That documentation would seem to suggest that the GraphicsArray is _not_ 
> required!  (Although, in fact, that is not the case!)

The documentation is slightly misleading. For example

  DisplayTogetherArray[
    {
     {Plot[Sin[x], {x, 0, 3}], Plot[Sin[x], {x, 0, 3}]}, 
     {Plot[Sin[x], {x, 0, 3}]}
    }
  ];

works fine. (Note that this would be different with Show and 
GraphicsArray). 

For the problem under consideration here, an Evaluate is required:

  DisplayTogetherArray[
    Evaluate[
      Partition[
        Graphics[{Hue[#],Rectangle[{0, 0}, {1, 1}]}, 
          AspectRatio -> Automatic] & /@ Range[0, 0.9, 0.1], 3
      ]
    ]
  ];

Cheers,
Paul

-- 
Paul Abbott                                   Phone: +61 8 9380 2734
School of Physics, M013                         Fax: +61 8 9380 1014
The University of Western Australia      (CRICOS Provider No 00126G)         
35 Stirling Highway
Crawley WA 6009                      mailto:paul at physics.uwa.edu.au 
AUSTRALIA                            http://physics.uwa.edu.au/~paul


  • Prev by Date: Re: X-windows display of Mathematica graphics run remotely on Mac OS X machine
  • Next by Date: Re: Re: He said DisplayTogetherArray, but ...
  • Previous by thread: Re: Re: He said DisplayTogetherArray, but ...
  • Next by thread: Re: Re: He said DisplayTogetherArray, but ...