       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 ?
>
>

```

• Prev by Date: Re: How to combine graphics pimitives and Plot function?
• Next by Date: Conjecture:at least one prime p between (n-1)n/2 and n(n+1)/2
• Previous by thread: Re: How to combine graphics pimitives and Plot function?
• Next by thread: Re: How to combine graphics pimitives and Plot function?