Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #43213 > unrolled thread
| Started by | Gary Herron <gherron@digipen.edu> |
|---|---|
| First post | 2013-04-09 11:00 -0700 |
| Last post | 2013-04-09 11:00 -0700 |
| Articles | 1 — 1 participant |
Back to article view | Back to comp.lang.python
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
Re: retrieving data from a plot in python. Gary Herron <gherron@digipen.edu> - 2013-04-09 11:00 -0700
| From | Gary Herron <gherron@digipen.edu> |
|---|---|
| Date | 2013-04-09 11:00 -0700 |
| Subject | Re: retrieving data from a plot in python. |
| Message-ID | <mailman.376.1365530706.3114.python-list@python.org> |
On 04/09/2013 10:33 AM, Debashish Saha 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. > > 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. > > > Are you asking a MATH question, or a Python question. This is, do you need the (linear) equation which performs the evaluation, or help in producing a program to do the calculation? Gary Herron -- Dr. Gary Herron Department of Computer Science DigiPen Institute of Technology (425) 895-4418
Back to top | Article view | comp.lang.python
csiph-web