Re: How to combine graphics pimitives and Plot function?
- To: mathgroup at smc.vnet.net
- Subject: [mg107049] Re: [mg107011] How to combine graphics pimitives and Plot function?
- From: Tomas Garza <tgarza10 at msn.com>
- Date: Mon, 1 Feb 2010 06:14:12 -0500 (EST)
- References: <201001311253.HAA14187@smc.vnet.net>
Two possibilities:
a) Plot[Sin[x],{x,-Pi,Pi},Epilog->Line[{points}]]
b) gr1=Plot[Sin[x],{x,-Pi,Pi}];
gr2=Graphics[Line[{points}]];
Show[gr1,gr2]
You should take a look at tutorial/RedrawingAndCombiningPlots in Help
Tomas
> Date: Sun, 31 Jan 2010 07:53:25 -0500
> From: a.dozy.boy at gmail.com
> Subject: [mg107011] How to combine graphics pimitives and Plot function?
> To: mathgroup at smc.vnet.net
>
> 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 ?
>
>