Re: Show and GraphicsArray and DisplayFunction
- To: mathgroup at smc.vnet.net
- Subject: [mg41265] Re: [mg41260] Show and GraphicsArray and DisplayFunction
- From: Andrzej Kozlowski <akoz at mimuw.edu.pl>
- Date: Sun, 11 May 2003 03:48:53 -0400 (EDT)
- Sender: owner-wri-mathgroup at wolfram.com
I am not quite sure what you mean by "why"? The "mechanism" or "what is the use of it"? As to the former: GraphicsArray has a DisplayFunction option which is separate from the one in Graphics, so you can set them independently. For example by setting SetOptions[GraphicsArray, DisplayFunction -> Identity]; you can produce the opposite effect to the one in your example: plot = Plot[x^2, {x, -1, 1}] draws a picture but Show[GraphicsArray[{plot,plot}]] GraphicsArray produces no picture. That seems to me all one can say about the mechanism. If, one the other hand, by "why" you mean "what is the use of it", well it seems to me that this is obviously the more flexible approach compared to having just GraphicsArray inherit its DisplayFunction setting. Andrzej Kozlowski Yokohama, Japan http://www.mimuw.edu.pl/~akoz/ http://platon.c.u-tokyo.ac.jp/andrzej/ On Saturday, May 10, 2003, at 05:04 pm, Blimbaum Jerry DLPC wrote: > Here is something I have always been curious about.... > > Suppose I make two plots : > > p1=Plot[f[x],......,DisplayFunction->Identity] > > p2=Plot[g[x],.....,DisplayFunction->Identity] > > > If i combine them with Show ,i have to do this: > > Show[p1,p2,DisplayFunction->$DisplayFunction]; > > > but if I show them in GraphicsArray format....i can exclude the > DisplayFunction command.... > > Show[GraphicsArray[{p1,p2}]]......this outputs the plots...admittedly, > as 2 > separate plots, but still.... > > why the difference in terms of the need for DisplayFunction....? > > > jerry blimbaum NSWC Panama City, Fl > > > > > >