Re: question about plotting
- To: mathgroup at smc.vnet.net
- Subject: [mg119090] Re: question about plotting
- From: Peter Pein <petsie at dordos.net>
- Date: Sat, 21 May 2011 06:50:05 -0400 (EDT)
- References: <ir5g7j$t0l$1@smc.vnet.net>
Am 20.05.2011 12:36, schrieb Krzysztof Kutak:
> Hello,
> I would like to combine plot od datapoints in one dimension(for this I
> use ListPlot[data]) with fitted function ( f[r] ). Do you know how to
> do this?
>
> Best wishes
> Krzysztof
>
sth. like
data=Table[4x(1-x)+RandomReal[{-.05,.05}],{x,0,1,1/10}];
lp=ListPlot[data,DataRange->{0,1},PlotStyle->Red];
pl=Plot[4x(1-x),{x,0,1}];
Show[pl,lp]
?
If you've got only the ordinates, be sure to define the range of abcissa
by use of DataRange.
hth,
Peter