Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.soft-sys.math.mathematica > #2579 > unrolled thread

Re: question about plotting

Started byBob Hanlon <hanlonr@cox.net>
First post2011-05-21 10:50 +0000
Last post2011-05-21 10:50 +0000
Articles 1 — 1 participant

Back to article view | Back to comp.soft-sys.math.mathematica


Contents

  Re: question about plotting Bob Hanlon <hanlonr@cox.net> - 2011-05-21 10:50 +0000

#2579 — Re: question about plotting

FromBob Hanlon <hanlonr@cox.net>
Date2011-05-21 10:50 +0000
SubjectRe: question about plotting
Message-ID<ir85e3$bjk$1@smc.vnet.net>
Clear[a, b, c, x]

data = Table[{x, 3 x^2 - 5 x + 7 + 10*RandomReal[]}, {x, 0, 5, .1}];

f[x_] = Fit[data, {1, x, x^2}, x];

Plot[f[x], {x, 0, 5}, Epilog -> {Red, Point[data]}]

Show[ListPlot[data, PlotStyle -> Red], Plot[f[x], {x, 0, 5}]]


Bob Hanlon

---- Krzysztof Kutak <krzysztof.kutak@googlemail.com> 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

[toc] | [standalone]


Back to top | Article view | comp.soft-sys.math.mathematica


csiph-web