Re: Simple question about plot
- To: mathgroup at smc.vnet.net
- Subject: [mg27817] Re: Simple question about plot
- From: "Allan Hayes" <hay at haystack.demon.co.uk>
- Date: Mon, 19 Mar 2001 01:29:08 -0500 (EST)
- References: <98vi7l$913@smc.vnet.net>
- Sender: owner-wri-mathgroup at wolfram.com
Martin, A convenient way if we are doing everything at once is << "Graphics`Graphics`" DisplayTogether[Plot[x, {x, 0, 1}], Plot[-x, {x, 0, 2}]]; The following two ways let us produce independent graphics objects (without display) that can then be manipulated before being displayed. gr1 = Plot[x, {x, 0, 1}, DisplayFunction -> Identity]; gr2 = Plot[-x, {x, 0, 2}, DisplayFunction -> Identity]; Show[gr1, gr2, DisplayFunction -> $DisplayFunction]; The second way avoids the need to turn the display back on Block[{$DisplayFunction = Identity}, gr1 = Plot[x, {x, 0, 1}]; gr2 = Plot[-x, {x, 0, 2}]]; Show[gr1, gr2]; -- Allan --------------------- Allan Hayes Mathematica Training and Consulting Leicester UK www.haystack.demon.co.uk hay at haystack.demon.co.uk Voice: +44 (0)116 271 4198 Fax: +44 (0)870 164 0565 "Martin Richter" <mrMICE.fi at cbs.dk> wrote in message news:98vi7l$913 at smc.vnet.net... > Hi > > Sorry for the many enquiries, > > Normally, when plotting and combining I'm doing like this: > > Figure1= ListPlot[...]; > Figure2= Plot[...]; > Show[figure1,Figure2]; > > which produce three plots. If your making a lot of plots, it would be nice > not to have the > Figure1 and Figure 2 plotted, only when you type Show and by that ending > with only one plot. > It's properly damn simple but if this has been written in the Mathematica > Book, I'll be > even more damn. > > Thanks for any comments > Martin > > --------------------------------------- > Please remove PET to reply by email > > >