From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric Schulte Subject: Re: using gnuplot's "splot" and "every" commands on org-mode table data Date: Tue, 07 May 2013 14:25:02 -0400 Message-ID: <871u9isl4x.fsf@gmail.com> References: <87k3ncxeqt.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([208.118.235.92]:51112) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UZmZY-00010i-TR for emacs-orgmode@gnu.org; Tue, 07 May 2013 14:25:11 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UZmZX-0006Dv-9U for emacs-orgmode@gnu.org; Tue, 07 May 2013 14:25:08 -0400 Received: from mail-ve0-x232.google.com ([2607:f8b0:400c:c01::232]:49979) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UZmZX-0006Do-63 for emacs-orgmode@gnu.org; Tue, 07 May 2013 14:25:07 -0400 Received: by mail-ve0-f178.google.com with SMTP id jy13so900690veb.37 for ; Tue, 07 May 2013 11:25:06 -0700 (PDT) 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-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Paul Stansell Cc: emacs-orgmode@gnu.org If the removal of ""'s will *always* be preferable for gnuplot, then we should be able make that conversion the default behavior. However, before such a conversion we'd need to ensure that the new format is more generally useful than the existing export format. Both `org-babel-gnuplot-quote-tsv-field' and `org-babel-gnuplot-table-to-data' could fairly easily be customized to support different table formatting. Paul Stansell writes: > Eric, > > What you suggest is indeed a good solution, so thank you very much for that! > > I think it would still be nice, however, if someday the blank lines in > the org table would be exported as blank lines in the temporary text > file instead of as "" (which seems to be the root of the problem). > > Kind regards, > > Paul > >> Hi Paul, >> >> While I can't claim to fully follow your gnuplot examples, i would >> recommend using an intervening shell code block to parse the Org-mode >> table data into something that gnuplot will ingest. >> >> If I understand your use case correctly, then something like the >> following should work. >> >> >> >> If you really wanted to be fancy, gnuplot will let you specify shell >> transformations as part of the plotting command which would allow you to >> forego the intermediate code block. >> >> -- >> Eric Schulte >> http://cs.unm.edu/~eschulte >> -- Eric Schulte http://cs.unm.edu/~eschulte