From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thierry Banel Subject: Re: Trying to get chart from table working Date: Sun, 01 Oct 2017 20:51:31 +0200 Message-ID: <59D13933.7000202@free.fr> References: <951a16f3-142b-9a46-d205-e75e93b46fe9@pfdstudio.com> <87efqp8sob.fsf@pinto.chemeng.ucl.ac.uk> <1506699746.1209685.1122625320.2C7619C2@webmail.messagingengine.com> <1506699975.1210299.1122633688.70058F8C@webmail.messagingengine.com> <1506720729.1291151.1122958984.5896B03B@webmail.messagingengine.com> <871smoxqrb.fsf@gmail.com> <1506865644.2643850.1124068920.10D5C3AD@webmail.messagingengine.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:42817) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dyjL1-0004HU-Ct for emacs-orgmode@gnu.org; Sun, 01 Oct 2017 14:51:40 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dyjKw-00011A-V7 for emacs-orgmode@gnu.org; Sun, 01 Oct 2017 14:51:39 -0400 Received: from smtp1-g21.free.fr ([212.27.42.1]:44586) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1dyjKw-0000za-OT for emacs-orgmode@gnu.org; Sun, 01 Oct 2017 14:51:34 -0400 Received: from [IPv6:2a01:e35:2e21:def0:d4c6:91ae:28e:ab20] (unknown [IPv6:2a01:e35:2e21:def0:d4c6:91ae:28e:ab20]) by smtp1-g21.free.fr (Postfix) with ESMTP id AE32AB0059F for ; Sun, 1 Oct 2017 20:51:32 +0200 (CEST) In-Reply-To: <1506865644.2643850.1124068920.10D5C3AD@webmail.messagingengine.com> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: emacs-orgmode@gnu.org Do you get the following lines? (you can erase them, they will be recreated). #+results: [[file:timeseries.pdf]] If you click on the link, it should open okular or acrobat reader or whatever displaying the plot. Otherwise you can try a different format, PNG for instance: #+begin_src gnuplot :var data=measurements :file timeseries.png :results inline On 01/10/2017 15:47, Peter Davis wrote: > On Sat, Sep 30, 2017, at 09:25 AM, Eric S Fraga wrote: >> On Friday, 29 Sep 2017 at 17:32, Peter Davis wrote: >>> I'm sorry to belabor this, but I could use some help. I'd be willing to >>> pay a modest consulting fee, but I'm trying to solve a problem in a >>> timely way, as it would help me with healthcare decisions. >>> >>> Basically, I want to plot a time series graph showing my PSA (prostate >>> specific antigen) over time. The PSA is measured at irregular intervals, >>> and has been for over 4 years (and hopefully will continue for many more >>> years.) That should be a simple enough graph. I've already got a >>> javascript d3 example that does this, but I'd like to embed it in a >>> document, and to be able to generate PDF. >> This part is relatively straightforward. Using your data example, you >> can do the following: >> > Thank you for the example, Eric. Running this gives me a page with the > table and the code on it, but no plot. Here's what *Messages* says: > > gnuplot-mode 0.7-beta -- determining gnuplot version ...... > gnuplot-mode 0.7-beta (gnuplot 5.2) -- report bugs with "C-c C-u" > Saving file /Users/peterdavis/Dropbox/Org/t.org... > Wrote /Users/peterdavis/Dropbox/Org/t.org > Mark set > Saving file /Users/peterdavis/Dropbox/Org/t.org... > Wrote /Users/peterdavis/Dropbox/Org/t.org > org-babel-exp process gnuplot at position 292... > Saving file /Users/peterdavis/Dropbox/Org/t.tex... > Wrote /Users/peterdavis/Dropbox/Org/t.tex > Processing LaTeX file ./t.tex... > PDF file produced. > Running open /Users/peterdavis/Dropbox/Org/t.pdf...done > > Thank you. > > -pd > > >> The colouring bit is harder and I don't know whether it's possible or >> not. I suggest you look at examples on the web, e.g. >> >> http://gnuplot.sourceforge.net/demo/ >> >> to see if anything fits what you are trying to do. >> >> HTH, >> eric >> >> -- >> : Eric S Fraga via Emacs 27.0.50, Org release_9.1.1-78-gfbf47c >> Email had 2 attachments: >> + t.org >> 1k (text/x-org) >> + signature.asc >> 1k (application/pgp-signature) >