From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nick Dokos Subject: Re: Gnuplot unevenly spaced non-numeric data plot? Date: Sat, 21 Aug 2010 19:17:22 -0400 Message-ID: <541.1282432642@gamaville.dokosmarshall.org> References: <29278.1282423292@gamaville.dokosmarshall.org> Reply-To: nicholas.dokos@hp.com Return-path: Received: from [140.186.70.92] (port=34870 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OmxJV-0001A7-Kt for emacs-orgmode@gnu.org; Sat, 21 Aug 2010 19:17:26 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OmxJU-0005TX-L4 for emacs-orgmode@gnu.org; Sat, 21 Aug 2010 19:17:25 -0400 Received: from vms173011pub.verizon.net ([206.46.173.11]:38274) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OmxJU-0005TT-Gv for emacs-orgmode@gnu.org; Sat, 21 Aug 2010 19:17:24 -0400 Received: from gamaville.dokosmarshall.org ([unknown] [173.76.32.106]) by vms173011.mailsrvcs.net (Sun Java(tm) System Messaging Server 7u2-7.02 32bit (built Apr 16 2009)) with ESMTPA id <0L7I001F3ZCZ6380@vms173011.mailsrvcs.net> for emacs-orgmode@gnu.org; Sat, 21 Aug 2010 18:17:23 -0500 (CDT) In-reply-to: Message from John Hendy of "Sat, 21 Aug 2010 17:41:27 CDT." List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: John Hendy Cc: nicholas.dokos@hp.com, emacs-orgmode John Hendy wrote: > Problem solved with babel. I was able to get everything I wanted by > piecing together some examples from the mailing list and gnuplot > examples/manual around the web. > Good! Maybe you should post the babel solution for future reference. Here is an org-plot solution for future reference: there is a script option that allows you to use an arbitrary gnuplot script. The org manual (http://orgmode.org/manual/Org_002dPlot.html#Org-Plot) describes it very well: ,---- | script If you want total control, you can specify a script file (place | the file name between double-quotes) which will be used to | plot. Before plotting, every instance of $datafile in the | specified script will be replaced with the path to the generated | data file. Note: even if you set this option, you may still want | to specify the plot type, as that can impact the content of the | data file. `---- foo.org: --8<---------------cut here---------------start------------->8--- #+plot: type:2d script:"myscript.gp" | 1 | x: where it should be on the scale | y | |---+------------------------------------+----| | a | 0 | 10 | | b | 10 | 20 | | c | 11 | 30 | | d | 40 | 40 | --8<---------------cut here---------------end--------------->8--- myscript.gp: --8<---------------cut here---------------start------------->8--- plot '$datafile' using 2:3:xticlabels(1) --8<---------------cut here---------------end--------------->8--- Nick