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: Fri, 17 May 2013 09:00:17 -0600 Message-ID: <87mwrtk5xa.fsf@gmail.com> References: <87k3ncxeqt.fsf@gmail.com> <871u9isl4x.fsf@gmail.com> <87sj1xocz7.fsf@gmail.com> <87ehdapncr.fsf@gmail.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Return-path: Received: from eggs.gnu.org ([208.118.235.92]:48400) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UdM9F-0006uj-9G for emacs-orgmode@gnu.org; Fri, 17 May 2013 11:00:50 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UdM99-0006YQ-1I for emacs-orgmode@gnu.org; Fri, 17 May 2013 11:00:45 -0400 Received: from mail-pd0-f181.google.com ([209.85.192.181]:51678) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UdM98-0006YF-Ri for emacs-orgmode@gnu.org; Fri, 17 May 2013 11:00:38 -0400 Received: by mail-pd0-f181.google.com with SMTP id p11so3387384pdj.40 for ; Fri, 17 May 2013 08:00:37 -0700 (PDT) In-Reply-To: <87ehdapncr.fsf@gmail.com> (Eric Schulte's message of "Mon, 13 May 2013 15:43:32 -0600") 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 --=-=-= Content-Type: text/plain > > I would consider this breaking the plot, in that gnuplot no longer lines > up the two columns of data. > My fault, gnuplot does indeed still line up the data as appropriate when missing values are simply replaced with blank space rather than "". I've just pushed up changes to gnuplot code blocks which add a :missing header argument which may be used to specify a missing value, and which replace missing values with blank space (rather than "") when the missing header argument is not supplied. The attached org-mode file demonstrates both. Press C-c C-v v on each code block, and then open up the data file to see the effects of the header argument. --=-=-= Content-Type: text/x-org Content-Disposition: inline; filename=gnuplot.org #+Property: :results silent #+name: data | 1 | 2 | | 2 | | | 3 | 4 | | 4 | 5 | #+begin_src gnuplot :var data=data set key outside set xrange [-1:4] set yrange [0:6] plot data u 0:1, '' u 0:2 #+end_src #+begin_src gnuplot :var data=data :missing "?" set key outside set xrange [-1:4] set yrange [0:6] plot data u 0:1, '' u 0:2 #+end_src --=-=-= Content-Type: text/plain Thanks for pushing this through -- Eric Schulte http://cs.unm.edu/~eschulte --=-=-=--