From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nick Dokos Subject: Re: Gnuplot unevenly spaced non-numeric data plot? Date: Mon, 23 Aug 2010 11:16:24 -0400 Message-ID: <21316.1282576584@gamaville.dokosmarshall.org> References: <29278.1282423292@gamaville.dokosmarshall.org> <541.1282432642@gamaville.dokosmarshall.org> Reply-To: nicholas.dokos@hp.com Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from [140.186.70.92] (port=55121 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OnYlT-0000jd-Ox for emacs-orgmode@gnu.org; Mon, 23 Aug 2010 11:16:50 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OnYlM-0001GG-Nm for emacs-orgmode@gnu.org; Mon, 23 Aug 2010 11:16:42 -0400 Received: from vms173019pub.verizon.net ([206.46.173.19]:40229) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OnYlM-0001Fy-IR for emacs-orgmode@gnu.org; Mon, 23 Aug 2010 11:16:40 -0400 Received: from gamaville.dokosmarshall.org ([unknown] [173.76.32.106]) by vms173019.mailsrvcs.net (Sun Java(tm) System Messaging Server 7u2-7.02 32bit (built Apr 16 2009)) with ESMTPA id <0L7M00DD32FDJW90@vms173019.mailsrvcs.net> for emacs-orgmode@gnu.org; Mon, 23 Aug 2010 10:16:25 -0500 (CDT) In-reply-to: Message from John Hendy of "Mon\, 23 Aug 2010 09\:22\:40 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: > Sounds good. Where would I post the solution? >=20 I think the list is the proper place: if the question comes up again, then it can be added to Worg. Cheers, Nick > On Sat, Aug 21, 2010 at 6:17 PM, Nick Dokos wrote: >=20 > John Hendy wrote: >=20=20=20=20 > > 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. > > >=20=20=20=20 > 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. =C2=A0The = org > manual (http://orgmode.org/manual/Org_002dPlot.html#Org-Plot) describ= es > it very well: >=20=20=20=20 > ,---- > | script If you want total control, you can specify a script file (pl= ace > | =C2=A0 =C2=A0 =C2=A0 =C2=A0the file name between double-quotes) whi= ch will be used to > | =C2=A0 =C2=A0 =C2=A0 =C2=A0plot. Before plotting, every instance of= $datafile in the > | =C2=A0 =C2=A0 =C2=A0 =C2=A0specified script will be replaced with t= he path to the generated > | =C2=A0 =C2=A0 =C2=A0 =C2=A0data file. Note: even if you set this op= tion, you may still want > | =C2=A0 =C2=A0 =C2=A0 =C2=A0to specify the plot type, as that can im= pact the content of the > | =C2=A0 =C2=A0 =C2=A0 =C2=A0data file. > `---- >=20=20=20=20 > foo.org: > --8<---------------cut here---------------start------------->8--- > #+plot: =C2=A0type:2d script:"myscript.gp" > | 1 | x: where it should be on the scale | y =C2=A0| > |---+------------------------------------+----| > | a | =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A00 | 10 | > | b | =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 10 | 20 | > | c | =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 11 | 30 | > | d | =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 40 | 40 | > --8<---------------cut here---------------end--------------->8--- >=20=20=20=20 > myscript.gp: > --8<---------------cut here---------------start------------->8--- > plot '$datafile' using 2:3:xticlabels(1) > --8<---------------cut here---------------end--------------->8--- >=20=20=20=20 > Nick >=20 > _______________________________________________ > Emacs-orgmode mailing list > Please use `Reply All' to send replies to the list. > Emacs-orgmode@gnu.org > http://lists.gnu.org/mailman/listinfo/emacs-orgmode