X-Received: by 10.98.73.92 with SMTP id w89mr11078257pfa.11.1459819037604; Mon, 04 Apr 2016 18:17:17 -0700 (PDT) X-Received: by 10.50.118.73 with SMTP id kk9mr242629igb.9.1459819037551; Mon, 04 Apr 2016 18:17:17 -0700 (PDT) Path: csiph.com!usenet.blueworldhosting.com!feeder01.blueworldhosting.com!peer01.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!nt3no7824541igb.0!news-out.google.com!ha2ni49igb.0!nntp.google.com!gy3no278566igb.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.python Date: Mon, 4 Apr 2016 18:17:16 -0700 (PDT) In-Reply-To: <99a3f77c-7069-4e81-942e-06f6e4445291@googlegroups.com> Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=2607:5300:60:4b33:0:0:0:0; posting-account=jEDbSQoAAAD46faTChTh4OvpDlO9keJn NNTP-Posting-Host: 2607:5300:60:4b33:0:0:0:0 References: <768f1e2e-baab-4ce3-ae4e-aab2d8ac5bf8@googlegroups.com> <20f8e8fb-0bb8-4daa-8d68-d0cc3699a6fc@googlegroups.com> <99a3f77c-7069-4e81-942e-06f6e4445291@googlegroups.com> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: Subject: Re: Plot/Graph From: Muhammad Ali Injection-Date: Tue, 05 Apr 2016 01:17:17 +0000 Content-Type: text/plain; charset=ISO-8859-1 X-Received-Bytes: 2528 X-Received-Body-CRC: 1645575482 Xref: csiph.com comp.lang.python:106481 On Tuesday, April 5, 2016 at 8:16:22 AM UTC+8, Muhammad Ali wrote: > On Sunday, April 3, 2016 at 2:35:58 PM UTC-7, Oscar Benjamin wrote: > > On 3 Apr 2016 22:21, "Muhammad Ali" wrote: > > > > > > How do I convert/change/modify python script so that my data could be > > extracted according to python script and at the end it generates another > > single extracted data file instead of displaying/showing some graph? So > > that, I can manually plot the newly generated file (after data extraction) > > by some other software like origin. > > > > It depends what you're computing and what format origin expects the data to > > be in. Presumably it can use CSV files so take a look at the CSV module > > which can write these. > > > > (You'll get better answers to a question like this if you show us some code > > and ask a specific question about how to change it.) > > > > -- > > Oscar > > Yes, it is complete script and it works well with matplotlib. But I have to modify it to extract data into a single .dat file instead of directly plotting it by using matplotlib. I want to plot the data file in some other software.