Re: same plot for continous and discrete function
- To: mathgroup at smc.vnet.net
- Subject: [mg29629] Re: same plot for continous and discrete function
- From: Jens-Peer Kuska <kuska at informatik.uni-leipzig.de>
- Date: Fri, 29 Jun 2001 01:36:02 -0400 (EDT)
- Organization: Universitaet Leipzig
- References: <9hetgb$6jr$1@smc.vnet.net>
- Sender: owner-wri-mathgroup at wolfram.com
Hi,
data = Table[{x, Sin[x]}, {x, 0, 2Pi, 2Pi/32}];
Plot[Sin[x], {x, 0, 2Pi},
Prolog -> {PointSize[0.025], Point /@ data}]
Regards
Jens
Martin Harborth wrote:
>
> -----Ursprüngliche Nachricht-----
> Von: Yackov_Shermann [SMTP:yackov at mangocrafts.com]
> Gesendet am: Donnerstag, 21. Juni 2001 22:02
> An: Harborth Martin
> Betreff: Multiple Plots
>
> Hello.
>
> This is my very first exposure to Mathematica and I can't quite figure out
> how to get on the same plot, both a continuous function y=F(x) and a
> discrete one yi=G(xi) (actually, a list of {xi, yi}), provided both share
> the same definition domain.
> Is there a built-in primitive for a such task?
>
> Yackov
>
> ------------------------------
> http://MangoCrafts.com
> ------------------------------
> Experience... Everything!!