Path: csiph.com!usenet.pasdenom.info!news.etla.org!news.stack.nl!newsfeed.xs4all.nl!newsfeed2.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.031 X-Spam-Evidence: '*H*': 0.94; '*S*': 0.00; 'skip:[ 20': 0.04; 'suppose': 0.07; 'agrees': 0.09; 'performs': 0.09; 'subject:plot': 0.09; 'python': 0.11; 'question.': 0.14; 'equation': 0.16; 'subject:python.': 0.16; 'wrote:': 0.18; 'producing': 0.19; 'header:User-Agent:1': 0.23; 'math': 0.24; 'file.': 0.24; 'asking': 0.27; 'header:In-Reply-To:1': 0.27; 'am,': 0.29; 'array': 0.29; 'points': 0.29; 'gary': 0.31; 'text': 0.33; 'subject:from': 0.34; 'subject:data': 0.36; 'two': 0.37; 'received:10': 0.37; 'question,': 0.38; 'skip:[ 10': 0.38; 'to:addr:python-list': 0.38; 'previous': 0.38; 'to:addr:python.org': 0.39; 'save': 0.62; 'connecting': 0.64; 'between': 0.67; 'institute': 0.72; 'received:10.10': 0.74; 'received:204': 0.75; 'dr.': 0.77; '100': 0.79; 'plotted': 0.84 Date: Tue, 09 Apr 2013 11:00:00 -0700 From: Gary Herron User-Agent: Mozilla/5.0 (X11; Linux i686; rv:17.0) Gecko/20130308 Thunderbird/17.0.4 MIME-Version: 1.0 To: python-list@python.org Subject: Re: retrieving data from a plot in python. References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 33 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1365530706 news.xs4all.nl 2564 [2001:888:2000:d::a6]:34516 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:43213 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