Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.soft-sys.math.mathematica > #2574
| From | Peter Pein <petsie@dordos.net> |
|---|---|
| Newsgroups | comp.soft-sys.math.mathematica |
| Subject | Re: question about plotting |
| Date | 2011-05-21 10:49 +0000 |
| Organization | Steven M. Christensen and Associates, Inc and MathTensor, Inc. |
| Message-ID | <ir85ce$bi7$1@smc.vnet.net> (permalink) |
| 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
Back to comp.soft-sys.math.mathematica | Previous | Next — Previous in thread | Next 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