Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #43212
| Path | csiph.com!newsfeed.hal-mli.net!feeder3.hal-mli.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!news.linkpendium.com!news.linkpendium.com!panix!not-for-mail |
|---|---|
| From | Grant Edwards <invalid@invalid.invalid> |
| Newsgroups | comp.lang.python |
| Subject | Re: retrieving data from a plot in python. |
| Date | Tue, 9 Apr 2013 17:58:02 +0000 (UTC) |
| Organization | PANIX Public Access Internet and UNIX, NYC |
| Lines | 28 |
| Message-ID | <kk1kra$4ur$1@reader1.panix.com> (permalink) |
| References | <mailman.373.1365529239.3114.python-list@python.org> |
| NNTP-Posting-Host | dsl.comtrol.com |
| X-Trace | reader1.panix.com 1365530282 5083 64.122.56.22 (9 Apr 2013 17:58:02 GMT) |
| X-Complaints-To | abuse@panix.com |
| NNTP-Posting-Date | Tue, 9 Apr 2013 17:58:02 +0000 (UTC) |
| User-Agent | slrn/1.0.1 (Linux) |
| Xref | csiph.com comp.lang.python:43212 |
Show key headers only | View raw
On 2013-04-09, Debashish Saha <silideba@gmail.com> wrote:
> suppose I have t= [0,7,10,17,23,29,31] f_t= [4,3,11,19,12,9,17] and I have
> plotted f_t vs t.
>
> Now from this 7 data points plotting if I want to retrieve 100 data points
> and save them in a text file. What do I have to do?
>
> What I am asking is not a fitting of the plot. I know between two points
> plot is linear.
It is if that's how you plotted it.
> What I am asking If I create a array like t=np.arange(0,31,.1) ,then what
> is the corresponding array of f_t which agrees well with the previous
> plot,i.e,for any t between t=0 to t=7, f_t will be determined by using a
> straight line connecting (0,4) and (7,3) and so on.
It sounds to me like you're asking how to do linear interpolation
http://en.wikipedia.org/wiki/Linear_interpolation
But that's a type of curve fitting, and you specifically said you're
not asking about curve fitting -- so you've lost me.
--
Grant Edwards grant.b.edwards Yow! I just went below the
at poverty line!
gmail.com
Back to comp.lang.python | Previous | Next — Previous in thread | Find similar | Unroll thread
retrieving data from a plot in python. Debashish Saha <silideba@gmail.com> - 2013-04-09 23:03 +0530 Re: retrieving data from a plot in python. Grant Edwards <invalid@invalid.invalid> - 2013-04-09 17:58 +0000
csiph-web