Re: question about plotting
- To: mathgroup at smc.vnet.net
- Subject: [mg119097] Re: question about plotting
- From: Peter Breitfeld <phbrf at t-online.de>
- Date: Sat, 21 May 2011 06:51:21 -0400 (EDT)
- References: <ir5g7j$t0l$1@smc.vnet.net>
Krzysztof Kutak wrote: > 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 > Use Epilog: punkte=RandomReal[{0,5},20]//Sort pkt=Transpose[{Range[Length@punkte],punkte}] fit=Fit[pkt,{1,x,x^2,x^3},x] Plot[fit,{x,1,Length@pkt},Epilog->Point[pkt]] -- _________________________________________________________________ Peter Breitfeld, Bad Saulgau, Germany -- http://www.pBreitfeld.de