Re: How to combine graphics pimitives and Plot function?
- To: mathgroup at smc.vnet.net
- Subject: [mg107034] Re: [mg107011] How to combine graphics pimitives and Plot function?
- From: brien colwell <xcolwell at gmail.com>
- Date: Mon, 1 Feb 2010 06:11:28 -0500 (EST)
- References: <201001311253.HAA14187@smc.vnet.net>
I've used a couple approaches depending on whether you want to superimpose graphics or embed graphics inside another graphic. If you have several layers of graphics, you can use Show[graphic layers...] to superimpose them. If you want to embed one graphic in another, you can use FullGraphics[graphic] to retrieve the primitives for a graphic, which can be embedded in another primitive list. On Sun, Jan 31, 2010 at 7:53 AM, a boy <a.dozy.boy at gmail.com> wrote: > points = RandomReal[{-1, 1}, {100, 2}] > Graphics[{Red, Line[points], Plot[Sin[x], {x, -10 Pi, 10 Pi}]}, > Axes -> True] > > The code doesn't work. how to draw them together? ImageCompose ? > > >