MathGroup Archive 1999

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

Search the Archive

Re: The behaviour of DisplayTogether

  • To: mathgroup at smc.vnet.net
  • Subject: [mg17341] Re: [mg17285] The behaviour of DisplayTogether
  • From: "Andrzej Kozlowski" <andrzej at tuins.ac.jp>
  • Date: Mon, 3 May 1999 01:45:50 -0400
  • Sender: owner-wri-mathgroup at wolfram.com

There are lots of ways to achieve this without using DisplayTogether. If all
your graphics are simply function plots than the simplest way is (in my
opinion) just:

 Plot[Evaluate[Table[a x^2,{a,3}]],{x,-2,2}]

What DisplayTogether does is somewhat different. It closer to:

Show[Table[Plot[a x^2,{x,-2,2},DisplayFunction->Identity],{a,3}],
  DisplayFunction->$DisplayFunction]

The main advantage of this approach is that it works with all kinds of
Graphics, not just graphs of functions.

--
Andrzej Kozlowski
Toyama International University
JAPAN
http://sigma.tuins.ac.jp
http://eri2.tuins.ac.jp


----------
>From: giancruc at tin.it
To: mathgroup at smc.vnet.net
>To: mathgroup at smc.vnet.net
>Subject: [mg17341] [mg17285] The behaviour of DisplayTogether
>Date: Sat, May 1, 1999, 12:22 PM
>

> Hello, everybody.
>
> My problem:
> I would combine graphics in a single plot using a simple iteration;
> for example, instead of
>
> DisplayTogether[{Plot[x^2,{x,-2,2}],Plot[2 x^2,{x,-2,2}],
>     Plot[3 x^2,{x,-2,2}]}]
>
> I'd like to use:
>
> DisplayTogether[Table[Plot[a x^2,{x,-2,2}],{a,3}]]
>
> but this second syntax doesn't work (apparently because of the delayed
> iteration in a), while the previous one has no problems.
> Would someone please help me?
>
> Gianluca Cruciani
> giancruc at tin.it
> Gianluca Cruciani
> 


  • Prev by Date: Re: help - how to invert the x or y axis..
  • Next by Date: Re: INFORMATIONS
  • Previous by thread: Re: The behaviour of DisplayTogether
  • Next by thread: Re: The behaviour of DisplayTogether