Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.soft-sys.math.mathematica > #2581
| From | Peter Breitfeld <phbrf@t-online.de> |
|---|---|
| Newsgroups | comp.soft-sys.math.mathematica |
| Subject | Re: question about plotting |
| Date | 2011-05-21 10:51 +0000 |
| Organization | Steven M. Christensen and Associates, Inc and MathTensor, Inc. |
| Message-ID | <ir85eo$bk5$1@smc.vnet.net> (permalink) |
| 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
Back to comp.soft-sys.math.mathematica | Previous | Next — Previous in thread | Find similar | Unroll thread
question about plotting Krzysztof Kutak <krzysztof.kutak@googlemail.com> - 2011-05-20 10:36 +0000 Re: question about plotting Peter Pein <petsie@dordos.net> - 2011-05-21 10:49 +0000 Re: question about plotting Peter Breitfeld <phbrf@t-online.de> - 2011-05-21 10:51 +0000
csiph-web