From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nick Parker Subject: org-babel and gnuplot Date: Tue, 7 Sep 2010 20:29:00 -0500 Message-ID: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0068305342==" Return-path: Received: from [140.186.70.92] (port=43107 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ot9Ta-0001SM-3n for emacs-orgmode@gnu.org; Tue, 07 Sep 2010 21:29:26 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1Ot9TY-0004XM-S4 for emacs-orgmode@gnu.org; Tue, 07 Sep 2010 21:29:26 -0400 Received: from mail-bw0-f41.google.com ([209.85.214.41]:41371) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Ot9TY-0004Wu-M8 for emacs-orgmode@gnu.org; Tue, 07 Sep 2010 21:29:24 -0400 Received: by bwz6 with SMTP id 6so5891857bwz.0 for ; Tue, 07 Sep 2010 18:29:22 -0700 (PDT) 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: emacs-orgmode@gnu.org --===============0068305342== Content-Type: multipart/alternative; boundary=0016e6d58dac7bf3d8048fb5719d --0016e6d58dac7bf3d8048fb5719d Content-Type: text/plain; charset=ISO-8859-1 Hello, I am attempting to generate a simple chart from gnuplot using the source of an org-table. When I execute the gnuplot src block I get the message "Source block produced no output". Does anyone have any suggestions as to what might be the cause? I have included a sample of what I am trying to run: #+tblname: sessions | Date | Time | Distance | |------------+-------+----------| | 09/02/2010 | 15:13 | 2.5 | | 09/01/2010 | 14:00 | 2.4 | #+begin_src gnuplot :var data=sessions :file org-running.png :exports both set title "Running Stats" set auto x set style data histogram set style fill solid border -1 set boxwidth .9 set xlabel "Date" set ylabel "Time" plot "$data" using 1:2:3 notitle #+end_src Nick Parker www.developernotes.com --0016e6d58dac7bf3d8048fb5719d Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Hello,

I am attempting to generate a simple chart from g= nuplot using the source of an org-table. =A0When I execute the gnuplot src = block I get the message "Source block produced no output". =A0Doe= s anyone have any suggestions as to what might be the cause? =A0I have incl= uded a sample of what I am trying to run:

#+tblname: sessions
| Date =A0 =A0 =A0 |= =A0Time | Distance |
|------------+-------+----------|
| 09/02/2010 | 15:13 | =A0 =A0 =A02.5 |
| 09/01/2010 | 14:00 | = =A0 =A0 =A02.4 |

#+begin_src gnuplot :var data=3Dsessions
=A0= =A0:file org-running.png :exports both
=A0=A0set title "Runn= ing Stats"
=A0=A0set auto x
=A0=A0set style data h= istogram
=A0=A0set style fill solid border -1
=A0=A0set boxwidth .9
<= div>=A0=A0set xlabel "Date"
=A0=A0set ylabel "Time= "
=A0=A0plot "$data" using 1:2:3 notitle
#+end_src

--0016e6d58dac7bf3d8048fb5719d-- --===============0068305342== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ 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 --===============0068305342==-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: John Hendy Subject: Re: org-babel and gnuplot Date: Tue, 7 Sep 2010 20:54:20 -0500 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0682005450==" Return-path: Received: from [140.186.70.92] (port=51285 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ot9ro-0006WG-H6 for emacs-orgmode@gnu.org; Tue, 07 Sep 2010 21:54:30 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1Ot9rl-0007dk-KL for emacs-orgmode@gnu.org; Tue, 07 Sep 2010 21:54:26 -0400 Received: from mail-bw0-f41.google.com ([209.85.214.41]:35802) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Ot9rl-0007dX-AL for emacs-orgmode@gnu.org; Tue, 07 Sep 2010 21:54:25 -0400 Received: by bwz6 with SMTP id 6so5909332bwz.0 for ; Tue, 07 Sep 2010 18:54:23 -0700 (PDT) In-Reply-To: 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: Nick Parker Cc: emacs-orgmode@gnu.org --===============0682005450== Content-Type: multipart/alternative; boundary=001636c5b0ffc2f474048fb5ca84 --001636c5b0ffc2f474048fb5ca84 Content-Type: text/plain; charset=ISO-8859-1 Hi Nick, Maybe two things off hand (booted into OS X right now where I can't try your code..) 1) try using straight gnuplot without going through org to verify your commands. This helps make sure that the syntax isn't producing errors. Another way to check this out sometimes is to C-c C-c on the code block, run the code, and then C-x b to the *gnuplot buffer to view any error messages. Those might prove helpful. 2) try changing your plot line to: plot data using 1:2:3 notitle I think I ran into an issue using "$data" even though it's the gnuplot syntax. I found org examples on the mailing list where just "data" was used instead (no quotes) and that worked. John P.S. Are you trying to make a 3D graph? plot using 1:2:3 will yield a 3D graph and you didn't mention a z-axis label so I'm wondering if that's really what you want? You may want to split this into two graphs to have date vs. time and date vs. distance? Or date vs. distance/time (speed)? P.P.S Or perhaps judging by the boxwidth option you want the width of the bars in the graph to represent the miles run? In that case you want 'plot data using 1:2:3 with boxes notitle' I think. On Tue, Sep 7, 2010 at 8:29 PM, Nick Parker wrote: > Hello, > > I am attempting to generate a simple chart from gnuplot using the source of > an org-table. When I execute the gnuplot src block I get the message > "Source block produced no output". Does anyone have any suggestions as to > what might be the cause? I have included a sample of what I am trying to > run: > > #+tblname: sessions > | Date | Time | Distance | > |------------+-------+----------| > | 09/02/2010 | 15:13 | 2.5 | > | 09/01/2010 | 14:00 | 2.4 | > > #+begin_src gnuplot :var data=sessions > :file org-running.png :exports both > set title "Running Stats" > set auto x > set style data histogram > set style fill solid border -1 > set boxwidth .9 > set xlabel "Date" > set ylabel "Time" > plot "$data" using 1:2:3 notitle > #+end_src > > Nick Parker > www.developernotes.com > > _______________________________________________ > 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 > > --001636c5b0ffc2f474048fb5ca84 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Hi Nick,

Maybe two things off hand (booted into OS X rig= ht now where I can't try your code..)

1) try u= sing straight gnuplot without going through org to verify your commands. Th= is helps make sure that the syntax isn't producing errors. Another way = to check this out sometimes is to C-c C-c on the code block, run the code, = and then C-x b to the *gnuplot buffer to view any error messages. Those mig= ht prove helpful.

2) try changing your plot line to:=A0plot data using 1:= 2:3 notitle

I think I ran into an issue using &quo= t;$data" even though it's the gnuplot syntax. I found org examples= on the mailing list where just "data" was used instead (no quote= s) and that worked.


John

P.S. Are y= ou trying to make a 3D graph? plot using 1:2:3 will yield a 3D graph and yo= u didn't mention a z-axis label so I'm wondering if that's real= ly what you want? You may want to split this into two graphs to have date v= s. time and date vs. distance? Or date vs. distance/time (speed)?

P.P.S Or perhaps judging by the boxwidth option you wan= t the width of the bars in the graph to represent the miles run? In that ca= se you want 'plot data using 1:2:3 with boxes notitle' I think.



On Tue, Sep 7, 2010 = at 8:29 PM, Nick Parker <nickp@developernotes.com> wrote:
Hello,

I am attempting to generate a simple chart from g= nuplot using the source of an org-table. =A0When I execute the gnuplot src = block I get the message "Source block produced no output". =A0Doe= s anyone have any suggestions as to what might be the cause? =A0I have incl= uded a sample of what I am trying to run:

#+tblname: sessions
| Date =A0 =A0 =A0 |= =A0Time | Distance |
|------------+-------+----------|
| 09/02/2010 | 15:13 | =A0 =A0 =A02.5 |
| 09/01/2010 | 14:00 | = =A0 =A0 =A02.4 |

#+begin_src gnuplot :var data=3Dsessions
=A0= =A0:file org-running.png :exports both
=A0=A0set title "Runn= ing Stats"
=A0=A0set auto x
=A0=A0set style data h= istogram
=A0=A0set style fill solid border -1
=A0=A0set boxwidth .9
<= div>=A0=A0set xlabel "Date"
=A0=A0set ylabel "Time= "
=A0=A0plot "$data" using 1:2:3 notitle
#+end_src


_______________________________________________
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


--001636c5b0ffc2f474048fb5ca84-- --===============0682005450== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ 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 --===============0682005450==-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nick Parker Subject: Re: org-babel and gnuplot Date: Tue, 7 Sep 2010 22:12:11 -0500 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1317916683==" Return-path: Received: from [140.186.70.92] (port=41181 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OtB5P-00055I-7D for emacs-orgmode@gnu.org; Tue, 07 Sep 2010 23:12:36 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OtB5N-0000u8-BE for emacs-orgmode@gnu.org; Tue, 07 Sep 2010 23:12:35 -0400 Received: from mail-bw0-f41.google.com ([209.85.214.41]:61247) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OtB5N-0000ty-1O for emacs-orgmode@gnu.org; Tue, 07 Sep 2010 23:12:33 -0400 Received: by bwz6 with SMTP id 6so5960295bwz.0 for ; Tue, 07 Sep 2010 20:12:31 -0700 (PDT) In-Reply-To: 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: emacs-orgmode@gnu.org --===============1317916683== Content-Type: multipart/alternative; boundary=0015175cadb65e0763048fb6e235 --0015175cadb65e0763048fb6e235 Content-Type: text/plain; charset=ISO-8859-1 Hi John, I would actually like to plot different lines per distance, each that correlate to a date and elapsed-time (x and y axis respectively). I get an error with the :file notation, though I read that in a sample babel gnuplot example for generating graphs of commit history on the org-mode git repository. I tried to reference the variable data without the quotes and $ sign without any success. I will continue to fiddle with it, I am new to gnuplot. Nick Parker www.developernotes.com On Tue, Sep 7, 2010 at 8:54 PM, John Hendy wrote: > Hi Nick, > > Maybe two things off hand (booted into OS X right now where I can't try > your code..) > > 1) try using straight gnuplot without going through org to verify your > commands. This helps make sure that the syntax isn't producing errors. > Another way to check this out sometimes is to C-c C-c on the code block, run > the code, and then C-x b to the *gnuplot buffer to view any error messages. > Those might prove helpful. > > 2) try changing your plot line to: plot data using 1:2:3 notitle > > I think I ran into an issue using "$data" even though it's the gnuplot > syntax. I found org examples on the mailing list where just "data" was used > instead (no quotes) and that worked. > > > John > > P.S. Are you trying to make a 3D graph? plot using 1:2:3 will yield a 3D > graph and you didn't mention a z-axis label so I'm wondering if that's > really what you want? You may want to split this into two graphs to have > date vs. time and date vs. distance? Or date vs. distance/time (speed)? > > P.P.S Or perhaps judging by the boxwidth option you want the width of the > bars in the graph to represent the miles run? In that case you want 'plot > data using 1:2:3 with boxes notitle' I think. > > > > On Tue, Sep 7, 2010 at 8:29 PM, Nick Parker wrote: > >> Hello, >> >> I am attempting to generate a simple chart from gnuplot using the source >> of an org-table. When I execute the gnuplot src block I get the message >> "Source block produced no output". Does anyone have any suggestions as to >> what might be the cause? I have included a sample of what I am trying to >> run: >> >> #+tblname: sessions >> | Date | Time | Distance | >> |------------+-------+----------| >> | 09/02/2010 | 15:13 | 2.5 | >> | 09/01/2010 | 14:00 | 2.4 | >> >> #+begin_src gnuplot :var data=sessions >> :file org-running.png :exports both >> set title "Running Stats" >> set auto x >> set style data histogram >> set style fill solid border -1 >> set boxwidth .9 >> set xlabel "Date" >> set ylabel "Time" >> plot "$data" using 1:2:3 notitle >> #+end_src >> >> Nick Parker >> www.developernotes.com >> >> _______________________________________________ >> 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 >> >> > --0015175cadb65e0763048fb6e235 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Hi John,

I would actually like to plot different lines p= er distance, each that=A0correlate=A0to a date and elapsed-time (x and y ax= is respectively). =A0I get an error with the :file notation, though I read = that in a sample babel gnuplot example for generating graphs of commit hist= ory on the org-mode git repository. =A0I tried to reference the variable da= ta without the quotes and $ sign without any success. =A0I will continue to= fiddle with it, I am new to gnuplot.

Nick Parker
www.developern= otes.com


On Tue, Sep 7, 2010 at 8:54 PM, John Hen= dy <jw.hendy@gma= il.com> wrote:
Hi Nick,

Maybe two things off hand (booted into OS X rig= ht now where I can't try your code..)

1) try u= sing straight gnuplot without going through org to verify your commands. Th= is helps make sure that the syntax isn't producing errors. Another way = to check this out sometimes is to C-c C-c on the code block, run the code, = and then C-x b to the *gnuplot buffer to view any error messages. Those mig= ht prove helpful.

2) try changing your plot line to:=A0plot data using 1:= 2:3 notitle

I think I ran into an issue using &quo= t;$data" even though it's the gnuplot syntax. I found org examples= on the mailing list where just "data" was used instead (no quote= s) and that worked.


John

P.S. Are y= ou trying to make a 3D graph? plot using 1:2:3 will yield a 3D graph and yo= u didn't mention a z-axis label so I'm wondering if that's real= ly what you want? You may want to split this into two graphs to have date v= s. time and date vs. distance? Or date vs. distance/time (speed)?

P.P.S Or perhaps judging by the boxwidth option you wan= t the width of the bars in the graph to represent the miles run? In that ca= se you want 'plot data using 1:2:3 with boxes notitle' I think.



On Tue, Sep 7, 2010 at 8:29 PM, Nick Parker <nickp@de= velopernotes.com> wrote:
Hello,

I am attempting to generate a simple chart from g= nuplot using the source of an org-table. =A0When I execute the gnuplot src = block I get the message "Source block produced no output". =A0Doe= s anyone have any suggestions as to what might be the cause? =A0I have incl= uded a sample of what I am trying to run:

#+tblname: sessions
| Date =A0 =A0 =A0 |= =A0Time | Distance |
|------------+-------+----------|
| 09/02/2010 | 15:13 | =A0 =A0 =A02.5 |
| 09/01/2010 | 14:00 | = =A0 =A0 =A02.4 |

#+begin_src gnuplot :var data=3Dsessions
=A0= =A0:file org-running.png :exports both
=A0=A0set title "Runn= ing Stats"
=A0=A0set auto x
=A0=A0set style data h= istogram
=A0=A0set style fill solid border -1
=A0=A0set boxwidth .9
<= div>=A0=A0set xlabel "Date"
=A0=A0set ylabel "Time= "
=A0=A0plot "$data" using 1:2:3 notitle
#+end_src


_______________________________________________
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gn= u.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode



--0015175cadb65e0763048fb6e235-- --===============1317916683== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ 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 --===============1317916683==-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: Erik Iverson Subject: Re: org-babel and gnuplot Date: Tue, 07 Sep 2010 22:27:12 -0500 Message-ID: <4C870290.30701@ccbr.umn.edu> References: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Return-path: Received: from [140.186.70.92] (port=49016 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OtBHn-00081d-KP for emacs-orgmode@gnu.org; Tue, 07 Sep 2010 23:25:24 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OtBHl-0003Ke-SA for emacs-orgmode@gnu.org; Tue, 07 Sep 2010 23:25:23 -0400 Received: from pegasus.biostat.wisc.edu ([144.92.73.35]:43005) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OtBHl-0003KF-KF for emacs-orgmode@gnu.org; Tue, 07 Sep 2010 23:25:21 -0400 In-Reply-To: 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: Nick Parker Cc: emacs-orgmode@gnu.org On 09/07/2010 10:12 PM, Nick Parker wrote: > Hi John, > > I would actually like to plot different lines per distance, each > that correlate to a date and elapsed-time (x and y axis respectively). > I get an error with the :file notation, though I read that in a sample > babel gnuplot example for generating graphs of commit history on the > org-mode git repository. I tried to reference the variable data without > the quotes and $ sign without any success. I will continue to fiddle > with it, I am new to gnuplot. AFAIK, you can't break source code header argument lines across multiple lines. Is that how you actually have it in your org file? > #+begin_src gnuplot :var data=sessions > :file org-running.png :exports both > set title "Running Stats" > set auto x > set style data histogram > set style fill solid border -1 > set boxwidth .9 > set xlabel "Date" > set ylabel "Time" > plot "$data" using 1:2:3 notitle > #+end_src > > Nick Parker > www.developernotes.com > > _______________________________________________ > 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 > > > > > > _______________________________________________ > 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 From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nick Parker Subject: Re: org-babel and gnuplot Date: Wed, 8 Sep 2010 08:10:36 -0500 Message-ID: References: <4C870290.30701@ccbr.umn.edu> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1460418375==" Return-path: Received: from [140.186.70.92] (port=51022 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OtKQl-00041t-ET for emacs-orgmode@gnu.org; Wed, 08 Sep 2010 09:11:19 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OtKQj-00023C-4f for emacs-orgmode@gnu.org; Wed, 08 Sep 2010 09:11:15 -0400 Received: from mail-vw0-f41.google.com ([209.85.212.41]:33860) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OtKQi-000230-RF for emacs-orgmode@gnu.org; Wed, 08 Sep 2010 09:11:13 -0400 Received: by vws16 with SMTP id 16so27224vws.0 for ; Wed, 08 Sep 2010 06:11:12 -0700 (PDT) In-Reply-To: <4C870290.30701@ccbr.umn.edu> 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: Erik Iverson Cc: emacs-orgmode@gnu.org --===============1460418375== Content-Type: multipart/alternative; boundary=0014853d013013f729048fbf3f3c --0014853d013013f729048fbf3f3c Content-Type: text/plain; charset=ISO-8859-1 Erik, That was the issue, the :file reference needed to be on the line above. Thanks. Nick Parker www.developernotes.com On Tue, Sep 7, 2010 at 10:27 PM, Erik Iverson wrote: > On 09/07/2010 10:12 PM, Nick Parker wrote: > >> Hi John, >> >> I would actually like to plot different lines per distance, each >> that correlate to a date and elapsed-time (x and y axis respectively). >> I get an error with the :file notation, though I read that in a sample >> babel gnuplot example for generating graphs of commit history on the >> org-mode git repository. I tried to reference the variable data without >> the quotes and $ sign without any success. I will continue to fiddle >> with it, I am new to gnuplot. >> > > AFAIK, you can't break source code header argument lines across > multiple lines. Is that how you actually have it in your > org file? > > > #+begin_src gnuplot :var data=sessions >> :file org-running.png :exports both >> set title "Running Stats" >> set auto x >> set style data histogram >> set style fill solid border -1 >> set boxwidth .9 >> set xlabel "Date" >> set ylabel "Time" >> plot "$data" using 1:2:3 notitle >> #+end_src >> >> Nick Parker >> www.developernotes.com >> >> >> _______________________________________________ >> 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 >> >> >> >> >> >> _______________________________________________ >> 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 >> > > --0014853d013013f729048fbf3f3c Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Erik,

That was the issue, the :file reference needed to = be on the line above. =A0Thanks.

Nick Parker
www.developernotes.com


On Tue, Sep 7, 2010 at 10:27 PM, Erik Iv= erson <eriki@ccb= r.umn.edu> wrote:
On 09/07/2010 10:12 PM, Nick Parker wrote:
Hi John,

I would actually like to plot different lines per distance, each
that correlate to a date and elapsed-time (x and y axis respectively).
=A0I get an error with the :file notation, though I read that in a sample<= br> babel gnuplot example for generating graphs of commit history on the
org-mode git repository. =A0I tried to reference the variable data without<= br> the quotes and $ sign without any success. =A0I will continue to fiddle
with it, I am new to gnuplot.

AFAIK, you can't break source code header argument lines across
multiple lines. =A0Is that how you actually have it in your
org file?


=A0 =A0 =A0 =A0#+begin_src gnuplot :var data=3Dsessions
=A0 =A0 =A0 =A0 =A0 :file org-running.png :exports both
=A0 =A0 =A0 =A0 =A0 set title "Running Stats"
=A0 =A0 =A0 =A0 =A0 set auto x
=A0 =A0 =A0 =A0 =A0 set style data histogram
=A0 =A0 =A0 =A0 =A0 set style fill solid border -1
=A0 =A0 =A0 =A0 =A0 set boxwidth .9
=A0 =A0 =A0 =A0 =A0 set xlabel "Date"
=A0 =A0 =A0 =A0 =A0 set ylabel "Time"
=A0 =A0 =A0 =A0 =A0 plot "$data" using 1:2:3 notitle
=A0 =A0 =A0 =A0#+end_src

=A0 =A0 =A0 =A0Nick Parker
=A0 =A0 =A0 =A0www.developernotes.com <http://www.developernotes.com>

=A0 =A0 =A0 =A0_______________________________________________
=A0 =A0 =A0 =A0Emacs-orgmode mailing list
=A0 =A0 =A0 =A0Please use `Reply All' to send replies to the list.
=
=A0 =A0 =A0 =A0= Emacs-orgmode@gnu.org <mailto:Emacs-orgmode@gnu.org>


--0014853d013013f729048fbf3f3c-- --===============1460418375== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ 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 --===============1460418375==-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: John Hendy Subject: Re: org-babel and gnuplot Date: Wed, 8 Sep 2010 08:38:56 -0500 Message-ID: References: <4C870290.30701@ccbr.umn.edu> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1662331510==" Return-path: Received: from [140.186.70.92] (port=56225 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OtL2C-0004nR-UD for emacs-orgmode@gnu.org; Wed, 08 Sep 2010 09:49:59 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OtKsZ-0007aw-CE for emacs-orgmode@gnu.org; Wed, 08 Sep 2010 09:40:00 -0400 Received: from mail-fx0-f41.google.com ([209.85.161.41]:35298) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OtKsZ-0007QJ-2i for emacs-orgmode@gnu.org; Wed, 08 Sep 2010 09:39:59 -0400 Received: by fxm3 with SMTP id 3so53156fxm.0 for ; Wed, 08 Sep 2010 06:38:56 -0700 (PDT) In-Reply-To: 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: Nick Parker Cc: emacs-orgmode@gnu.org --===============1662331510== Content-Type: multipart/alternative; boundary=0016e6d7756a9a1681048fbfa2c1 --0016e6d7756a9a1681048fbfa2c1 Content-Type: text/plain; charset=ISO-8859-1 That's great! I actually figured that was from pasting it. A lot of pasted examples come in a bit jumbled. Glad you're on your way! John On Wed, Sep 8, 2010 at 8:10 AM, Nick Parker wrote: > Erik, > > That was the issue, the :file reference needed to be on the line above. > Thanks. > > > Nick Parker > www.developernotes.com > > > On Tue, Sep 7, 2010 at 10:27 PM, Erik Iverson wrote: > >> On 09/07/2010 10:12 PM, Nick Parker wrote: >> >>> Hi John, >>> >>> I would actually like to plot different lines per distance, each >>> that correlate to a date and elapsed-time (x and y axis respectively). >>> I get an error with the :file notation, though I read that in a sample >>> babel gnuplot example for generating graphs of commit history on the >>> org-mode git repository. I tried to reference the variable data without >>> the quotes and $ sign without any success. I will continue to fiddle >>> with it, I am new to gnuplot. >>> >> >> AFAIK, you can't break source code header argument lines across >> multiple lines. Is that how you actually have it in your >> org file? >> >> >> #+begin_src gnuplot :var data=sessions >>> :file org-running.png :exports both >>> set title "Running Stats" >>> set auto x >>> set style data histogram >>> set style fill solid border -1 >>> set boxwidth .9 >>> set xlabel "Date" >>> set ylabel "Time" >>> plot "$data" using 1:2:3 notitle >>> #+end_src >>> >>> Nick Parker >>> www.developernotes.com >>> >>> >>> _______________________________________________ >>> 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 >>> >>> >>> >>> >>> >>> _______________________________________________ >>> 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 >>> >> >> > --0016e6d7756a9a1681048fbfa2c1 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable That's great! I actually figured that was from pasting it. A lot of pas= ted examples come in a bit jumbled.

Glad you're on y= our way!

John

On= Wed, Sep 8, 2010 at 8:10 AM, Nick Parker <nickp@developernotes.com> wr= ote:
Erik,

That was the issue= , the :file reference needed to be on the line above. =A0Thanks.
= On Tue, Sep 7, 2010 at 10:27 PM, Erik Iverson <eriki@ccbr.umn.edu>= wrote:
On 09/07/2010 10:12 PM, Nick Parker wrote:
Hi John,

I would actually like to plot different lines per distance, each
that correlate to a date and elapsed-time (x and y axis respectively).
=A0I get an error with the :file notation, though I read that in a sample<= br> babel gnuplot example for generating graphs of commit history on the
org-mode git repository. =A0I tried to reference the variable data without<= br> the quotes and $ sign without any success. =A0I will continue to fiddle
with it, I am new to gnuplot.

AFAIK, you can't break source code header argument lines across
multiple lines. =A0Is that how you actually have it in your
org file?


=A0 =A0 =A0 =A0#+begin_src gnuplot :var data=3Dsessions
=A0 =A0 =A0 =A0 =A0 :file org-running.png :exports both
=A0 =A0 =A0 =A0 =A0 set title "Running Stats"
=A0 =A0 =A0 =A0 =A0 set auto x
=A0 =A0 =A0 =A0 =A0 set style data histogram
=A0 =A0 =A0 =A0 =A0 set style fill solid border -1
=A0 =A0 =A0 =A0 =A0 set boxwidth .9
=A0 =A0 =A0 =A0 =A0 set xlabel "Date"
=A0 =A0 =A0 =A0 =A0 set ylabel "Time"
=A0 =A0 =A0 =A0 =A0 plot "$data" using 1:2:3 notitle
=A0 =A0 =A0 =A0#+end_src

=A0 =A0 =A0 =A0Nick Parker
=A0 =A0 =A0 =A0www.developernotes.com <http://www.developernotes.com>


=A0 =A0 =A0 =A0_______________________________________________
=A0 =A0 =A0 =A0Emacs-orgmode mailing list
=A0 =A0 =A0 =A0Please use `Reply All' to send replies to the list.
=
=A0 =A0 =A0 =A0= Emacs-orgmode@gnu.org <mailto:Emacs-orgmode@gnu.org>



--0016e6d7756a9a1681048fbfa2c1-- --===============1662331510== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ 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 --===============1662331510==-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: John Hendy Subject: Re: org-babel and gnuplot Date: Wed, 8 Sep 2010 09:39:46 -0500 Message-ID: References: <4C870290.30701@ccbr.umn.edu> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1723920350==" Return-path: Received: from [140.186.70.92] (port=33053 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OtLoT-0000fc-R3 for emacs-orgmode@gnu.org; Wed, 08 Sep 2010 10:39:51 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OtLoS-0002Gc-D8 for emacs-orgmode@gnu.org; Wed, 08 Sep 2010 10:39:49 -0400 Received: from mail-bw0-f41.google.com ([209.85.214.41]:49474) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OtLoS-0002GR-5G for emacs-orgmode@gnu.org; Wed, 08 Sep 2010 10:39:48 -0400 Received: by bwz6 with SMTP id 6so191520bwz.0 for ; Wed, 08 Sep 2010 07:39:46 -0700 (PDT) In-Reply-To: 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: Nick Parker Cc: emacs-orgmode@gnu.org --===============1723920350== Content-Type: multipart/alternative; boundary=0016e6d7e93d2d269e048fc07cac --0016e6d7e93d2d269e048fc07cac Content-Type: text/plain; charset=ISO-8859-1 Nick, This got me curious to see the output. I tried to generate it on my computer and get this in the *gnuplot* buffer after running the code: ----- gnuplot> plot data using 1:2:3 notitle ^ warning: Skipping data file with no valid points ^ x range is invalid ----- This is working for you, though? #+tblname: sessions | Date | Time | Distance | |------------+-------+----------| | 09/02/2010 | 15:13 | 2.5 | | 09/01/2010 | 14:00 | 2.4 | #+begin_src gnuplot :var data=sessions :file org-running.png :exports both set title "Running Stats" set auto x set style data histogram set style fill solid border -1 set boxwidth .9 set xlabel "Date" set ylabel "Time" plot data using 1:2:3 notitle #+end_src John On Wed, Sep 8, 2010 at 8:10 AM, Nick Parker wrote: > Erik, > > That was the issue, the :file reference needed to be on the line above. > Thanks. > > > Nick Parker > www.developernotes.com > > > On Tue, Sep 7, 2010 at 10:27 PM, Erik Iverson wrote: > >> On 09/07/2010 10:12 PM, Nick Parker wrote: >> >>> Hi John, >>> >>> I would actually like to plot different lines per distance, each >>> that correlate to a date and elapsed-time (x and y axis respectively). >>> I get an error with the :file notation, though I read that in a sample >>> babel gnuplot example for generating graphs of commit history on the >>> org-mode git repository. I tried to reference the variable data without >>> the quotes and $ sign without any success. I will continue to fiddle >>> with it, I am new to gnuplot. >>> >> >> AFAIK, you can't break source code header argument lines across >> multiple lines. Is that how you actually have it in your >> org file? >> >> >> #+begin_src gnuplot :var data=sessions >>> :file org-running.png :exports both >>> set title "Running Stats" >>> set auto x >>> set style data histogram >>> set style fill solid border -1 >>> set boxwidth .9 >>> set xlabel "Date" >>> set ylabel "Time" >>> plot "$data" using 1:2:3 notitle >>> #+end_src >>> >>> Nick Parker >>> www.developernotes.com >>> >>> >>> _______________________________________________ >>> 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 >>> >>> >>> >>> >>> >>> _______________________________________________ >>> 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 >>> >> >> > --0016e6d7e93d2d269e048fc07cac Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Nick,


This got me curious to see the outp= ut. I tried to generate it on my computer and get this in the *gnuplot* buf= fer after running the code:

-----
gnuplot> plot data using 1:2:3 notitle
=A0=A0 =A0 =A0 =A0 =A0 = =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 ^
=A0=A0 =A0 =A0 =A0 warn= ing: Skipping data file with no valid points
=A0=A0 =A0 =A0 =A0 = =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0^
=A0= =A0 =A0 =A0 =A0 x range is invalid
-----

This is working for you, though?
<= br>
#+tblname: sessions
| Date =A0 =A0 =A0 | =A0Ti= me | Distance |
|------------+-------+----------|
| 09/= 02/2010 | 15:13 | =A0 =A0 =A02.5 |
| 09/01/2010 | 14:00 | =A0 =A0 =A02.4 |

#+beg= in_src gnuplot :var data=3Dsessions :file org-running.png :exports both
=A0=A0set title "Running Stats"
=A0=A0set auto x=
=A0=A0set style data histogram
=A0=A0set style fill solid border -1
=A0=A0set boxwidth .9
=A0=A0set xlabel "Date"
=A0=A0set ylabel "= ;Time"
=A0=A0plot data using 1:2:3 notitle
#+end_s= rc


John

On Wed, Sep 8, 2010 at 8:10 AM, Nick Parker <nickp@developernotes.com> wrote:
Erik,

That was the issue= , the :file reference needed to be on the line above. =A0Thanks.
= On Tue, Sep 7, 2010 at 10:27 PM, Erik Iverson <eriki@ccbr.umn.edu>= wrote:
On 09/07/2010 10:12 PM, Nick Parker wrote:
Hi John,

I would actually like to plot different lines per distance, each
that correlate to a date and elapsed-time (x and y axis respectively).
=A0I get an error with the :file notation, though I read that in a sample<= br> babel gnuplot example for generating graphs of commit history on the
org-mode git repository. =A0I tried to reference the variable data without<= br> the quotes and $ sign without any success. =A0I will continue to fiddle
with it, I am new to gnuplot.

AFAIK, you can't break source code header argument lines across
multiple lines. =A0Is that how you actually have it in your
org file?


=A0 =A0 =A0 =A0#+begin_src gnuplot :var data=3Dsessions
=A0 =A0 =A0 =A0 =A0 :file org-running.png :exports both
=A0 =A0 =A0 =A0 =A0 set title "Running Stats"
=A0 =A0 =A0 =A0 =A0 set auto x
=A0 =A0 =A0 =A0 =A0 set style data histogram
=A0 =A0 =A0 =A0 =A0 set style fill solid border -1
=A0 =A0 =A0 =A0 =A0 set boxwidth .9
=A0 =A0 =A0 =A0 =A0 set xlabel "Date"
=A0 =A0 =A0 =A0 =A0 set ylabel "Time"
=A0 =A0 =A0 =A0 =A0 plot "$data" using 1:2:3 notitle
=A0 =A0 =A0 =A0#+end_src

=A0 =A0 =A0 =A0Nick Parker
=A0 =A0 =A0 =A0www.developernotes.com <http://www.developernotes.com>


=A0 =A0 =A0 =A0_______________________________________________
=A0 =A0 =A0 =A0Emacs-orgmode mailing list
=A0 =A0 =A0 =A0Please use `Reply All' to send replies to the list.
=
=A0 =A0 =A0 =A0= Emacs-orgmode@gnu.org <mailto:Emacs-orgmode@gnu.org>



--0016e6d7e93d2d269e048fc07cac-- --===============1723920350== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ 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 --===============1723920350==-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nick Parker Subject: Re: org-babel and gnuplot Date: Wed, 8 Sep 2010 11:52:57 -0500 Message-ID: References: <4C870290.30701@ccbr.umn.edu> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0196987847==" Return-path: Received: from [140.186.70.92] (port=40212 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OtNuH-0003L2-UP for emacs-orgmode@gnu.org; Wed, 08 Sep 2010 12:54:34 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OtNu9-0000bI-Aq for emacs-orgmode@gnu.org; Wed, 08 Sep 2010 12:53:50 -0400 Received: from mail-pw0-f41.google.com ([209.85.160.41]:65068) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OtNu9-0000b0-0U for emacs-orgmode@gnu.org; Wed, 08 Sep 2010 12:53:49 -0400 Received: by pwj6 with SMTP id 6so236603pwj.0 for ; Wed, 08 Sep 2010 09:53:47 -0700 (PDT) In-Reply-To: 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: emacs-orgmode@gnu.org --===============0196987847== Content-Type: multipart/alternative; boundary=001636e0a83f744e50048fc25b31 --001636e0a83f744e50048fc25b31 Content-Type: text/plain; charset=ISO-8859-1 John, I am reworking the gnuplot script, it is not done at this point, but this is what I currently have: #+begin_src gnuplot :var data=sessions :file org-running.png :exports both set title "Running Stats" set xtics nomirror rotate by -45 set key noenhanced set style data linespoints plot "$data" using 2:xtic(1) title columnheader(1), \ for [i=2:3] '' using i title columnheader(i) #+end_src Nick Parker www.developernotes.com On Wed, Sep 8, 2010 at 9:39 AM, John Hendy wrote: > Nick, > > > This got me curious to see the output. I tried to generate it on my > computer and get this in the *gnuplot* buffer after running the code: > > ----- > gnuplot> plot data using 1:2:3 notitle > ^ > warning: Skipping data file with no valid points > ^ > x range is invalid > ----- > > This is working for you, though? > > #+tblname: sessions > | Date | Time | Distance | > |------------+-------+----------| > | 09/02/2010 | 15:13 | 2.5 | > | 09/01/2010 | 14:00 | 2.4 | > > #+begin_src gnuplot :var data=sessions :file org-running.png :exports both > set title "Running Stats" > set auto x > set style data histogram > set style fill solid border -1 > set boxwidth .9 > set xlabel "Date" > set ylabel "Time" > plot data using 1:2:3 notitle > #+end_src > > > John > > On Wed, Sep 8, 2010 at 8:10 AM, Nick Parker wrote: > >> Erik, >> >> That was the issue, the :file reference needed to be on the line above. >> Thanks. >> >> >> Nick Parker >> www.developernotes.com >> >> >> On Tue, Sep 7, 2010 at 10:27 PM, Erik Iverson wrote: >> >>> On 09/07/2010 10:12 PM, Nick Parker wrote: >>> >>>> Hi John, >>>> >>>> I would actually like to plot different lines per distance, each >>>> that correlate to a date and elapsed-time (x and y axis respectively). >>>> I get an error with the :file notation, though I read that in a sample >>>> babel gnuplot example for generating graphs of commit history on the >>>> org-mode git repository. I tried to reference the variable data without >>>> the quotes and $ sign without any success. I will continue to fiddle >>>> with it, I am new to gnuplot. >>>> >>> >>> AFAIK, you can't break source code header argument lines across >>> multiple lines. Is that how you actually have it in your >>> org file? >>> >>> >>> #+begin_src gnuplot :var data=sessions >>>> :file org-running.png :exports both >>>> set title "Running Stats" >>>> set auto x >>>> set style data histogram >>>> set style fill solid border -1 >>>> set boxwidth .9 >>>> set xlabel "Date" >>>> set ylabel "Time" >>>> plot "$data" using 1:2:3 notitle >>>> #+end_src >>>> >>>> Nick Parker >>>> www.developernotes.com >>>> >>>> >>>> _______________________________________________ >>>> 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 >>>> >>>> >>>> >>>> >>>> >>>> _______________________________________________ >>>> 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 >>>> >>> >>> >> > --001636e0a83f744e50048fc25b31 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable John,

I am reworking the gnuplot script, it is not done = at this point, but this is what I currently have:

=
#+begin_src gnuplot :var data=3Dsessions :file org-running.png :export= s both
=A0=A0set title "Running Stats"
=A0=A0set xtics no= mirror rotate by -45
=A0=A0set key noenhanced
=A0=A0set= style data linespoints
=A0=A0plot "$data" using 2:xtic= (1) title columnheader(1), \
=A0=A0for [i=3D2:3] '' using i title columnheader(i)
#+end_src

Nick Parker
www.developernotes.com


On Wed, Sep 8, 2010 at 9:39 AM, John Hen= dy <jw.hendy@gma= il.com> wrote:
Nick,


This got me curious to see the outp= ut. I tried to generate it on my computer and get this in the *gnuplot* buf= fer after running the code:

-----
gnuplot> plot data using 1:2:3 notitle
=A0=A0 =A0 =A0 =A0 =A0 = =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 ^
=A0=A0 =A0 =A0 =A0 warn= ing: Skipping data file with no valid points
=A0=A0 =A0 =A0 =A0 = =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0^
=A0= =A0 =A0 =A0 =A0 x range is invalid
-----

This is working for you, though?
<= br>
#+tblname: sessions
| Date = =A0 =A0 =A0 | =A0Time | Distance |
|------------+-------+--------= --|
| 09/02/2010 | 15:13 | =A0 =A0 =A02.5 |
| 09/01/2010 | 14:00 | =A0 =A0 =A02.4 |

#+begin_src gnuplot :var data=3Dsessions :file org-runni= ng.png :exports both
=A0=A0set title "Running Stats"
=A0=A0set auto x
=A0=A0set style data histogram
=A0=A0set style fill solid border -1
=A0=A0set boxwidth .9
=A0=A0set xlabel "Date"
=A0=A0set ylabel "= ;Time"
=A0=A0plot data using 1:2:3 notitle
#+end_s= rc


John

On Wed, Sep 8, 2010 at 8:10 AM,= Nick Parker <nickp@developernotes.com> wrote:
Erik,

That was the issue,= the :file reference needed to be on the line above. =A0Thanks.
On Tue, Sep 7= , 2010 at 10:27 PM, Erik Iverson <eriki@ccbr.umn.edu> wrote= :
On 09/07/2010 10:12 PM, Nick Parker wrote:
Hi John,

I would actually like to plot different lines per distance, each
that correlate to a date and elapsed-time (x and y axis respectively).
=A0I get an error with the :file notation, though I read that in a sample<= br> babel gnuplot example for generating graphs of commit history on the
org-mode git repository. =A0I tried to reference the variable data without<= br> the quotes and $ sign without any success. =A0I will continue to fiddle
with it, I am new to gnuplot.

AFAIK, you can't break source code header argument lines across
multiple lines. =A0Is that how you actually have it in your
org file?


=A0 =A0 =A0 =A0#+begin_src gnuplot :var data=3Dsessions
=A0 =A0 =A0 =A0 =A0 :file org-running.png :exports both
=A0 =A0 =A0 =A0 =A0 set title "Running Stats"
=A0 =A0 =A0 =A0 =A0 set auto x
=A0 =A0 =A0 =A0 =A0 set style data histogram
=A0 =A0 =A0 =A0 =A0 set style fill solid border -1
=A0 =A0 =A0 =A0 =A0 set boxwidth .9
=A0 =A0 =A0 =A0 =A0 set xlabel "Date"
=A0 =A0 =A0 =A0 =A0 set ylabel "Time"
=A0 =A0 =A0 =A0 =A0 plot "$data" using 1:2:3 notitle
=A0 =A0 =A0 =A0#+end_src

=A0 =A0 =A0 =A0Nick Parker
=A0 =A0 =A0 =A0www.developernotes.com <http://www.developernotes.com>


=A0 =A0 =A0 =A0_______________________________________________
=A0 =A0 =A0 =A0Emacs-orgmode mailing list
=A0 =A0 =A0 =A0Please use `Reply All' to send replies to the list.
=
=A0 =A0 =A0 =A0= Emacs-orgmode@gnu.org <mailto:Emacs-orgmode@gnu.org>




--001636e0a83f744e50048fc25b31-- --===============0196987847== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ 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 --===============0196987847==-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: John Hendy Subject: Re: org-babel and gnuplot Date: Wed, 8 Sep 2010 14:04:33 -0500 Message-ID: References: <4C870290.30701@ccbr.umn.edu> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary=0016e6d7787c1acd60048fc42fd7 Return-path: Received: from [140.186.70.92] (port=56959 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OtPwj-0008Qv-OG for emacs-orgmode@gnu.org; Wed, 08 Sep 2010 15:04:39 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OtPwh-0008PJ-6K for emacs-orgmode@gnu.org; Wed, 08 Sep 2010 15:04:37 -0400 Received: from mail-bw0-f41.google.com ([209.85.214.41]:53957) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OtPwg-0008Om-Np for emacs-orgmode@gnu.org; Wed, 08 Sep 2010 15:04:35 -0400 Received: by bwz6 with SMTP id 6so500690bwz.0 for ; Wed, 08 Sep 2010 12:04:33 -0700 (PDT) In-Reply-To: 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: Nick Parker Cc: emacs-orgmode@gnu.org --0016e6d7787c1acd60048fc42fd7 Content-Type: multipart/alternative; boundary=0016e6d7787c1acd57048fc42fd5 --0016e6d7787c1acd57048fc42fd5 Content-Type: text/plain; charset=ISO-8859-1 Nick, How about this?? Just fiddled around a little and wonder what you think. There might be a better way, but essentially, I've done the following: - Left y-axis = distance - Right y-axis = time - I couldn't get the xtic(1) option to work, so I replaced things with what I've found to work x:y:xticlabels(col#) - Beefed up the points to make them a little easier to see - Used your data to "calibrate" your speed --- The left y-axis is from 9-21min --- The right y-axis is from 1.5min - 3.5min --- This means the axes are 'calibrated' to 10mph What does the "calibration" do? It means that at a quick glance you can see your speed based on a target rate you set: - if speed/distance are on top of each other, you're right at your target - if speed (green) is higher than distance (red), you were faster than your target - if speed (green) is lower than distance (red), you were slower than your target Resetting your target is as easy as changing (in the code below): - Time: yrange [y1:y2] - Distance: y2range [y3:y4] All you have to do is make sure that y3/y1 = y4/y2 = target speed Also, remove the references to L/R and Red/Green if you'd like from the labels. I just tried to make the labels as easy as possible to follow so that no matter where you looked for a reference you would be forced to see what color/axis matched what value. I attached a sample graph. Sorry if I overstepped my bounds -- I realize it's *your* workout tracker. Take what you like and ditch the rest. I wanted to know how to do two different y axes anyway so it helped me learn. Code is here: ------------------- gnuplot code ----------------------- #+tblname: sessions | Date | ID | Time | Distance | |-------------+----+-------+----------| | 9/1/2010 | 1 | 14:00 | 2.4 | | 9/2/2010 | 2 | 15:13 | 2.5 | | 9/10/2010 | 3 | 13:45 | 2.3 | | 9/11 | 4 | 12:20 | 2.0 | | Spd > 10mph | 5 | 16:35 | 2.8 | | Spd = 10mph | 6 | 10 | 1.666 | | Spd < 10mph | 7 | 20 | 2.8 | #+begin_src gnuplot :var data=sessions :file org-running.png :exports both reset set title "Running Stats" set size ratio square set xlabel "Date" set xtics nomirror rotate by -45 set yrange [9:21] set ylabel "Time (min) -- Red" set ytics nomirror set y2range [1.5:3.5] set y2label "Distance (mi) -- Green" set y2tics 0,0.5,3.5 set style data points plot data u 2:3:xticlabels(1) axis x1y1 lw 3 title 'Time (L axis)', \ data u 2:4 axis x2y2 lw 3 title 'Distance (R axis)' #+end_src ------------------- end gnuplot code --------------------- Best regards, John On Wed, Sep 8, 2010 at 11:52 AM, Nick Parker wrote: > John, > > I am reworking the gnuplot script, it is not done at this point, but this > is what I currently have: > > #+begin_src gnuplot :var data=sessions :file org-running.png :exports both > set title "Running Stats" > set xtics nomirror rotate by -45 > set key noenhanced > set style data linespoints > plot "$data" using 2:xtic(1) title columnheader(1), \ > for [i=2:3] '' using i title columnheader(i) > #+end_src > > Nick Parker > www.developernotes.com > > > On Wed, Sep 8, 2010 at 9:39 AM, John Hendy wrote: > >> Nick, >> >> >> This got me curious to see the output. I tried to generate it on my >> computer and get this in the *gnuplot* buffer after running the code: >> >> ----- >> gnuplot> plot data using 1:2:3 notitle >> ^ >> warning: Skipping data file with no valid points >> ^ >> x range is invalid >> ----- >> >> This is working for you, though? >> >> #+tblname: sessions >> | Date | Time | Distance | >> |------------+-------+----------| >> | 09/02/2010 | 15:13 | 2.5 | >> | 09/01/2010 | 14:00 | 2.4 | >> >> #+begin_src gnuplot :var data=sessions :file org-running.png :exports both >> set title "Running Stats" >> set auto x >> set style data histogram >> set style fill solid border -1 >> set boxwidth .9 >> set xlabel "Date" >> set ylabel "Time" >> plot data using 1:2:3 notitle >> #+end_src >> >> >> John >> >> On Wed, Sep 8, 2010 at 8:10 AM, Nick Parker wrote: >> >>> Erik, >>> >>> That was the issue, the :file reference needed to be on the line above. >>> Thanks. >>> >>> >>> Nick Parker >>> www.developernotes.com >>> >>> >>> On Tue, Sep 7, 2010 at 10:27 PM, Erik Iverson wrote: >>> >>>> On 09/07/2010 10:12 PM, Nick Parker wrote: >>>> >>>>> Hi John, >>>>> >>>>> I would actually like to plot different lines per distance, each >>>>> that correlate to a date and elapsed-time (x and y axis respectively). >>>>> I get an error with the :file notation, though I read that in a sample >>>>> babel gnuplot example for generating graphs of commit history on the >>>>> org-mode git repository. I tried to reference the variable data >>>>> without >>>>> the quotes and $ sign without any success. I will continue to fiddle >>>>> with it, I am new to gnuplot. >>>>> >>>> >>>> AFAIK, you can't break source code header argument lines across >>>> multiple lines. Is that how you actually have it in your >>>> org file? >>>> >>>> >>>> #+begin_src gnuplot :var data=sessions >>>>> :file org-running.png :exports both >>>>> set title "Running Stats" >>>>> set auto x >>>>> set style data histogram >>>>> set style fill solid border -1 >>>>> set boxwidth .9 >>>>> set xlabel "Date" >>>>> set ylabel "Time" >>>>> plot "$data" using 1:2:3 notitle >>>>> #+end_src >>>>> >>>>> Nick Parker >>>>> www.developernotes.com >>>>> >>>>> >>>>> _______________________________________________ >>>>> 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 >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> _______________________________________________ >>>>> 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 >>>>> >>>> >>>> >>> >> > --0016e6d7787c1acd57048fc42fd5 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Nick,

How about this?? Just fiddled around a little and = wonder what you think. There might be a better way, but essentially, I'= ve done the following:

- Left y-axis =3D distance<= /div>
- Right y-axis =3D time
- I couldn't get the xtic(1) opt= ion to work, so I replaced things with what I've found to work x:y:xtic= labels(col#)
- Beefed up the points to make them a little easier = to see
- Used your data to "calibrate" your speed
--- The= left y-axis is from 9-21min
--- The right y-axis is from 1.5min = - 3.5min
--- This means the axes are 'calibrated' to 10mp= h

What does the "calibration" do? It means that= at a quick glance you can see your speed based on a target rate you set:
- if speed/distance are on top of each other, you're right at = your target
- if speed (green) is higher than distance (red), you were faster than= your target
- if speed (green) is lower than distance (red), you= were slower than your target

Resetting your targe= t is as easy as changing (in the code below):
- Time: yrange [y1:y2]
- Distance: y2range [y3:y4]

All you have to do is make sure that y3/y1 =3D y4/y2 =3D ta= rget speed

Also, remove the references to L/R and = Red/Green if you'd like from the labels. I just tried to make the label= s as easy as possible to follow so that no matter where you looked for a re= ference you would be forced to see what color/axis matched what value.

I attached a sample graph. Sorry if I overstepped my bo= unds -- I realize it's your=A0workout tracker. Take what you lik= e and ditch the rest. I wanted to know how to do two different y axes anywa= y so it helped me learn. Code is here:

------------------- gnuplot code ----------------------= -

#+tblname: sessions
| Date = =A0 =A0 =A0 =A0| ID | =A0Time | Distance |
|-------------+----+--= -----+----------|
| 9/1/2010 =A0 =A0| =A01 | 14:00 | =A0 =A0 =A02.4 |
| 9/2/20= 10 =A0 =A0| =A02 | 15:13 | =A0 =A0 =A02.5 |
| 9/10/2010 =A0 | =A0= 3 | 13:45 | =A0 =A0 =A02.3 |
| 9/11 =A0 =A0 =A0 =A0| =A04 | 12:20= | =A0 =A0 =A02.0 |
| Spd > 10mph | =A05 | 16:35 | =A0 =A0 =A0= 2.8 |
| Spd =3D 10mph | =A06 | =A0 =A010 | =A0 =A01.666 |
| Spd &l= t; 10mph | =A07 | =A0 =A020 | =A0 =A0 =A02.8 |

#+begin_src gnuplot :var data=3Dsessions :file org-running.png :exports = both
=A0=A0reset
=A0=A0set title "Running Stats"
=A0=A0set size rat= io square
=A0=A0
=A0=A0set xlabel "Date"
=A0=A0set xtics nomirror rotate by -45

=A0= =A0set yrange [9:21]
=A0=A0set ylabel "Time (min) -- Red"
=A0=A0set yti= cs nomirror

=A0=A0set y2range [1.5:3.5]
= =A0=A0set y2label "Distance (mi) -- Green"
=A0=A0set y2= tics 0,0.5,3.5

=A0=A0set style data points
=A0=A0plot data u= 2:3:xticlabels(1) axis x1y1 lw 3 title 'Time (L axis)', \
=A0=A0 =A0 =A0 data u 2:4 axis x2y2 lw 3 title 'Distance (R axis)'= ;
#+end_src

------------------- end gnuplot code --------= -------------


Best regards,
John

On Wed, Sep 8, 2010 at 11:= 52 AM, Nick Parker <nickp@developernotes.com> wrote:
John,

I am reworking the= gnuplot script, it is not done at this point, but this is what I currently= have:

#+begin_src gnuplot :var data=3D= sessions :file org-running.png :exports both
=A0=A0set title "Running Stats"
=A0=A0set xt= ics nomirror rotate by -45
=A0=A0set key noenhanced
=A0= =A0set style data linespoints
=A0=A0plot "$data" using = 2:xtic(1) title columnheader(1), \
=A0=A0for [i=3D2:3] '' using i title columnheader(i)
#+end_src

Nick Parker
www.developernotes.com


= On Wed, Sep 8, 2010 at 9:39 AM, John Hendy <jw.hendy@gmail.com> wrote:
Nick,


This got me curious to see the outp= ut. I tried to generate it on my computer and get this in the *gnuplot* buf= fer after running the code:

-----
gnuplot> plot data using 1:2:3 notitle
=A0=A0 =A0 =A0 =A0 =A0 = =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 ^
=A0=A0 =A0 =A0 =A0 warn= ing: Skipping data file with no valid points
=A0=A0 =A0 =A0 =A0 = =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0^
=A0= =A0 =A0 =A0 =A0 x range is invalid
-----

This is working for you, though?
<= br>
#+tblname: sessions
| Date =A0 =A0 =A0 | = =A0Time | Distance |
|------------+-------+----------|
| 09/02/2010 | 15:13 | =A0 =A0 =A02.5 |
| 09/01/2010 | 14:00 | =A0 =A0 =A02.4 |

#+begin_src gnuplot :var data=3Dsessions :file org-running.png :expor= ts both
=A0=A0set title "Running Stats"
=A0= =A0set auto x
=A0=A0set style data histogram
=A0=A0set style fill solid border -1
=A0=A0set boxwidth .9
=A0=A0set xlabel "Date"
=A0=A0set ylabel "= ;Time"
=A0=A0plot data using 1:2:3 notitle
#+end_s= rc


John
On Wed, Sep 8, 2010 at 8:10 AM, Nick Parker <nickp@developernotes.com> wrote:
Erik,

That was the issue,= the :file reference needed to be on the line above. =A0Thanks.
On Tue, Sep 7= , 2010 at 10:27 PM, Erik Iverson <eriki@ccbr.umn.edu> wrote= :
On 09/07/2010 10:12 PM, Nick Parker wrote:
Hi John,

I would actually like to plot different lines per distance, each
that correlate to a date and elapsed-time (x and y axis respectively).
=A0I get an error with the :file notation, though I read that in a sample<= br> babel gnuplot example for generating graphs of commit history on the
org-mode git repository. =A0I tried to reference the variable data without<= br> the quotes and $ sign without any success. =A0I will continue to fiddle
with it, I am new to gnuplot.

AFAIK, you can't break source code header argument lines across
multiple lines. =A0Is that how you actually have it in your
org file?


=A0 =A0 =A0 =A0#+begin_src gnuplot :var data=3Dsessions
=A0 =A0 =A0 =A0 =A0 :file org-running.png :exports both
=A0 =A0 =A0 =A0 =A0 set title "Running Stats"
=A0 =A0 =A0 =A0 =A0 set auto x
=A0 =A0 =A0 =A0 =A0 set style data histogram
=A0 =A0 =A0 =A0 =A0 set style fill solid border -1
=A0 =A0 =A0 =A0 =A0 set boxwidth .9
=A0 =A0 =A0 =A0 =A0 set xlabel "Date"
=A0 =A0 =A0 =A0 =A0 set ylabel "Time"
=A0 =A0 =A0 =A0 =A0 plot "$data" using 1:2:3 notitle
=A0 =A0 =A0 =A0#+end_src

=A0 =A0 =A0 =A0Nick Parker
=A0 =A0 =A0 =A0www.developernotes.com <http://www.developernotes.com>


=A0 =A0 =A0 =A0_______________________________________________
=A0 =A0 =A0 =A0Emacs-orgmode mailing list
=A0 =A0 =A0 =A0Please use `Reply All' to send replies to the list.
=
=A0 =A0 =A0 =A0= Emacs-orgmode@gnu.org <mailto:Emacs-orgmode@gnu.org>





--0016e6d7787c1acd57048fc42fd5-- --0016e6d7787c1acd60048fc42fd7 Content-Type: image/png; name="org-running.png" Content-Disposition: attachment; filename="org-running.png" Content-Transfer-Encoding: base64 X-Attachment-Id: f_gduk6bv90 iVBORw0KGgoAAAANSUhEUgAAAoAAAAHgCAMAAAACDyzWAAABNVBMVEX///9fX1+fn5+/v78/Pz8f Hx/f39++vr6g/yB8/0DNwLDB/8Ggts3w//DNt57//8D//4D/wMD/oHD/oGD/oED/gECAgACAYP+A YMCAQICAQBSAFBSAFABVay+QUEDdoN2UANPugu7/pQCggCD19dy4hgu9t2vw5ozplnr6gHL/RQDw gID/f1D/FJMAztH/AP8A//+HzusAAM0AAIAZGXAAAIsAAP8ui1ciiyIA/38AZAAA/wD/1wCv7u7/ tsHu3YLg///wVfCt2OaQ7pDwMjL////l5eXMzMzAwMCzs7OZmZl/f39mZmZNTU0zMzMaGhoAAABA 4ND//wClKip//9T/gP9AgACLAAAwYIDAgP8AgED/wCBBaeHIyADAQAAA7u7AAP8AgP8AwAD/AACg oKAAAAD////O26yIAAAAAXRSTlMAQObYZgAAGT5JREFUeJztnY22qiwQho8ic3PexW7h/V/CEfzN sNAZG7D3Wevrq11NnHhSGBD+dQAo8k+7AOC3gYBAFQgIVIGAQBUICFSBgEAVCAhUgYBAFQgIVIGA QBUICFSBgEAVCAhUgYBAFQgIVIGAQBUICFSBgEAVCAhUgYBAFQjYuYBtP7xq/ynTWGcb0997ivEh IAhAwFEtY+uT76+9e1T79z9Z+kZZMAMBJ1GMPfl+S+F/ZCHgCSDgLIob7/obV1vn6qc76we9rc7W 4xudmSP19Kfe/kUVjQ/q/rah7/1jigMCro+Ai4C9NPXznfUDY01n3PjGejl5+7+0/YuobaZgtX/B 9/4xxQEBB1FWbbigmnm5s35QeeWmI2B/x1a1mZ6zNAYZgs2HRxAF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yXFmgv+NjQfmhrsAfk6hIGCETGcmjDVNrmFfm5tPKAgYIc+ZCVNN28q0zMZbRqEgYATRbrUcFG5C hRvmLqr5hIKAMQS71cLMJ7y7hIKAUQS71aLMJ7yWnUbOJBQELIp6qWluGjmTUBCwPIaaFtlHVT8U BCyO8UgjsY9qBqEgYHGEmpbZRzWDUBCwOMxmH1XGqqUZhIKA5fG8j+o0caLQUBCwODb7qPKkUQ8F AUtjvY9qN5/3ig0FAYtj2Ue1407qyyAUBCyZcSaexKihVigIWDBT3kNg2qJaKAhYLvMQLP/iPb1Q ELBYbuEfBCwYCjciW4zphYKAZSMjjWIoCFg0xfsHAcumlls8RCkUBASqQECgCgQEqkBAoAoEBKpA QKAKBASqQECgCgQEqkBAoAoEBKpAQKAKBASqQECgCgQEqkBAoAoEBKpAQKAKBEzADTxNNM9oD5ui gYAJDIu/108GCqwtDzoImMQo25OBEFAGCJjAJFvt/HauzlUUzsp+BR6J5b1/GgiYgFvutA111DbD 3/wKUDILSv0uEDCBlYCWxj/4v4XluLPZ1LpMIGACbn3HmP4sPNy11PllAJRKdQ8gYAIrAY21VWtG Acf0jGLJygcCJrDqhIRVT2h9BAQsIGACqzSMG+6s2oA4BbOAgAmsEtFN2IzK+aMfhR4wcXe9/3Eg YAKroThqnGt8G7Cd8oDwjwUEBKpAQKAKBASqQECgCgQEqkBAoAoEBKpAQKAKBASq/Ad3JBBLXM8V 7QAAAABJRU5ErkJggg== --0016e6d7787c1acd60048fc42fd7 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ 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 --0016e6d7787c1acd60048fc42fd7-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nick Parker Subject: Re: org-babel and gnuplot Date: Wed, 8 Sep 2010 19:20:19 -0500 Message-ID: References: <4C870290.30701@ccbr.umn.edu> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1671442513==" Return-path: Received: from [140.186.70.92] (port=40595 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OtV82-0002II-RK for emacs-orgmode@gnu.org; Wed, 08 Sep 2010 20:36:46 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OtUsa-0006pG-Cq for emacs-orgmode@gnu.org; Wed, 08 Sep 2010 20:20:42 -0400 Received: from mail-vw0-f41.google.com ([209.85.212.41]:64809) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OtUsa-0006pA-3q for emacs-orgmode@gnu.org; Wed, 08 Sep 2010 20:20:40 -0400 Received: by vws16 with SMTP id 16so862016vws.0 for ; Wed, 08 Sep 2010 17:20:39 -0700 (PDT) In-Reply-To: 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: emacs-orgmode@gnu.org --===============1671442513== Content-Type: multipart/alternative; boundary=e0cb4e8878118c3eb1048fc89915 --e0cb4e8878118c3eb1048fc89915 Content-Type: text/plain; charset=ISO-8859-1 John, Thanks for you're input, I'll give it a whirl. Nick Parker www.developernotes.com On Wed, Sep 8, 2010 at 2:04 PM, John Hendy wrote: > Nick, > > How about this?? Just fiddled around a little and wonder what you think. > There might be a better way, but essentially, I've done the following: > > - Left y-axis = distance > - Right y-axis = time > - I couldn't get the xtic(1) option to work, so I replaced things with what > I've found to work x:y:xticlabels(col#) > - Beefed up the points to make them a little easier to see > - Used your data to "calibrate" your speed > --- The left y-axis is from 9-21min > --- The right y-axis is from 1.5min - 3.5min > --- This means the axes are 'calibrated' to 10mph > > What does the "calibration" do? It means that at a quick glance you can see > your speed based on a target rate you set: > - if speed/distance are on top of each other, you're right at your target > - if speed (green) is higher than distance (red), you were faster than your > target > - if speed (green) is lower than distance (red), you were slower than your > target > > Resetting your target is as easy as changing (in the code below): > - Time: yrange [y1:y2] > - Distance: y2range [y3:y4] > > All you have to do is make sure that y3/y1 = y4/y2 = target speed > > Also, remove the references to L/R and Red/Green if you'd like from the > labels. I just tried to make the labels as easy as possible to follow so > that no matter where you looked for a reference you would be forced to see > what color/axis matched what value. > > I attached a sample graph. Sorry if I overstepped my bounds -- I realize > it's *your* workout tracker. Take what you like and ditch the rest. I > wanted to know how to do two different y axes anyway so it helped me learn. > Code is here: > > ------------------- gnuplot code ----------------------- > > #+tblname: sessions > | Date | ID | Time | Distance | > |-------------+----+-------+----------| > | 9/1/2010 | 1 | 14:00 | 2.4 | > | 9/2/2010 | 2 | 15:13 | 2.5 | > | 9/10/2010 | 3 | 13:45 | 2.3 | > | 9/11 | 4 | 12:20 | 2.0 | > | Spd > 10mph | 5 | 16:35 | 2.8 | > | Spd = 10mph | 6 | 10 | 1.666 | > | Spd < 10mph | 7 | 20 | 2.8 | > > #+begin_src gnuplot :var data=sessions :file org-running.png :exports both > reset > set title "Running Stats" > set size ratio square > > set xlabel "Date" > set xtics nomirror rotate by -45 > > set yrange [9:21] > set ylabel "Time (min) -- Red" > set ytics nomirror > > set y2range [1.5:3.5] > set y2label "Distance (mi) -- Green" > set y2tics 0,0.5,3.5 > > set style data points > plot data u 2:3:xticlabels(1) axis x1y1 lw 3 title 'Time (L axis)', \ > data u 2:4 axis x2y2 lw 3 title 'Distance (R axis)' > #+end_src > > ------------------- end gnuplot code --------------------- > > > Best regards, > John > > On Wed, Sep 8, 2010 at 11:52 AM, Nick Parker wrote: > >> John, >> >> I am reworking the gnuplot script, it is not done at this point, but this >> is what I currently have: >> >> #+begin_src gnuplot :var data=sessions :file org-running.png :exports both >> set title "Running Stats" >> set xtics nomirror rotate by -45 >> set key noenhanced >> set style data linespoints >> plot "$data" using 2:xtic(1) title columnheader(1), \ >> for [i=2:3] '' using i title columnheader(i) >> #+end_src >> >> Nick Parker >> www.developernotes.com >> >> >> On Wed, Sep 8, 2010 at 9:39 AM, John Hendy wrote: >> >>> Nick, >>> >>> >>> This got me curious to see the output. I tried to generate it on my >>> computer and get this in the *gnuplot* buffer after running the code: >>> >>> ----- >>> gnuplot> plot data using 1:2:3 notitle >>> ^ >>> warning: Skipping data file with no valid points >>> ^ >>> x range is invalid >>> ----- >>> >>> This is working for you, though? >>> >>> #+tblname: sessions >>> | Date | Time | Distance | >>> |------------+-------+----------| >>> | 09/02/2010 | 15:13 | 2.5 | >>> | 09/01/2010 | 14:00 | 2.4 | >>> >>> #+begin_src gnuplot :var data=sessions :file org-running.png :exports >>> both >>> set title "Running Stats" >>> set auto x >>> set style data histogram >>> set style fill solid border -1 >>> set boxwidth .9 >>> set xlabel "Date" >>> set ylabel "Time" >>> plot data using 1:2:3 notitle >>> #+end_src >>> >>> >>> John >>> >>> On Wed, Sep 8, 2010 at 8:10 AM, Nick Parker wrote: >>> >>>> Erik, >>>> >>>> That was the issue, the :file reference needed to be on the line above. >>>> Thanks. >>>> >>>> >>>> Nick Parker >>>> www.developernotes.com >>>> >>>> >>>> On Tue, Sep 7, 2010 at 10:27 PM, Erik Iverson wrote: >>>> >>>>> On 09/07/2010 10:12 PM, Nick Parker wrote: >>>>> >>>>>> Hi John, >>>>>> >>>>>> I would actually like to plot different lines per distance, each >>>>>> that correlate to a date and elapsed-time (x and y axis respectively). >>>>>> I get an error with the :file notation, though I read that in a >>>>>> sample >>>>>> babel gnuplot example for generating graphs of commit history on the >>>>>> org-mode git repository. I tried to reference the variable data >>>>>> without >>>>>> the quotes and $ sign without any success. I will continue to fiddle >>>>>> with it, I am new to gnuplot. >>>>>> >>>>> >>>>> AFAIK, you can't break source code header argument lines across >>>>> multiple lines. Is that how you actually have it in your >>>>> org file? >>>>> >>>>> >>>>> #+begin_src gnuplot :var data=sessions >>>>>> :file org-running.png :exports both >>>>>> set title "Running Stats" >>>>>> set auto x >>>>>> set style data histogram >>>>>> set style fill solid border -1 >>>>>> set boxwidth .9 >>>>>> set xlabel "Date" >>>>>> set ylabel "Time" >>>>>> plot "$data" using 1:2:3 notitle >>>>>> #+end_src >>>>>> >>>>>> Nick Parker >>>>>> www.developernotes.com >>>>>> >>>>>> >>>>>> _______________________________________________ >>>>>> 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 >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> _______________________________________________ >>>>>> 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 >>>>>> >>>>> >>>>> >>>> >>> >> > --e0cb4e8878118c3eb1048fc89915 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable John,

Thanks for you're input, I'll give it a wh= irl.

Nick Parker
www.developernotes.com


On Wed, Sep 8, 2010 at 2:04 PM, John Hen= dy <jw.hendy@gma= il.com> wrote:
Nick,

How about this?? Just fiddled around a little and = wonder what you think. There might be a better way, but essentially, I'= ve done the following:

- Left y-axis =3D distance<= /div>
- Right y-axis =3D time
- I couldn't get the xtic(1) opt= ion to work, so I replaced things with what I've found to work x:y:xtic= labels(col#)
- Beefed up the points to make them a little easier = to see
- Used your data to "calibrate" your speed
--- The= left y-axis is from 9-21min
--- The right y-axis is from 1.5min = - 3.5min
--- This means the axes are 'calibrated' to 10mp= h

What does the "calibration" do? It means that= at a quick glance you can see your speed based on a target rate you set:
- if speed/distance are on top of each other, you're right at = your target
- if speed (green) is higher than distance (red), you were faster than= your target
- if speed (green) is lower than distance (red), you= were slower than your target

Resetting your targe= t is as easy as changing (in the code below):
- Time: yrange [y1:y2]
- Distance: y2range [y3:y4]

All you have to do is make sure that y3/y1 =3D y4/y2 =3D ta= rget speed

Also, remove the references to L/R and = Red/Green if you'd like from the labels. I just tried to make the label= s as easy as possible to follow so that no matter where you looked for a re= ference you would be forced to see what color/axis matched what value.

I attached a sample graph. Sorry if I overstepped my bo= unds -- I realize it's your=A0workout tracker. Take what you lik= e and ditch the rest. I wanted to know how to do two different y axes anywa= y so it helped me learn. Code is here:

------------------- gnuplot code ----------------------= -

#+tblname: sessions
| Date = =A0 =A0 =A0 =A0| ID | =A0Time | Distance |
|-------------+----+--= -----+----------|
| 9/1/2010 =A0 =A0| =A01 | 14:00 | =A0 =A0 =A02.4 |
| 9/2/20= 10 =A0 =A0| =A02 | 15:13 | =A0 =A0 =A02.5 |
| 9/10/2010 =A0 | =A0= 3 | 13:45 | =A0 =A0 =A02.3 |
| 9/11 =A0 =A0 =A0 =A0| =A04 | 12:20= | =A0 =A0 =A02.0 |
| Spd > 10mph | =A05 | 16:35 | =A0 =A0 =A0= 2.8 |
| Spd =3D 10mph | =A06 | =A0 =A010 | =A0 =A01.666 |
| Spd &l= t; 10mph | =A07 | =A0 =A020 | =A0 =A0 =A02.8 |

#+begin_src gnuplot :var data=3Dsessions :file org-run= ning.png :exports both
=A0=A0reset
=A0=A0set title "Running Stats"
=A0=A0set size rat= io square
=A0=A0
=A0=A0set xlabel "Date"
=A0=A0set xtics nomirror rotate by -45
=A0=A0set yrange [9:21]
=A0=A0set ylabel "Time (min) -- Red"
=A0=A0set yti= cs nomirror

=A0=A0set y2range [1.5:3.5]
= =A0=A0set y2label "Distance (mi) -- Green"
=A0=A0set y2= tics 0,0.5,3.5

=A0=A0set style data points
=A0=A0plot data u= 2:3:xticlabels(1) axis x1y1 lw 3 title 'Time (L axis)', \
=A0=A0 =A0 =A0 data u 2:4 axis x2y2 lw 3 title 'Distance (R axis)'= ;
#+end_src

------------------- end gnuplot code --------= -------------


Best regards,
John

On Wed, Sep 8, 2010 at 11:52 AM, Nick Parker <nickp@developernotes= .com> wrote:
John,

I am reworking the = gnuplot script, it is not done at this point, but this is what I currently = have:

#+begin_src gnuplot :var data=3Dsessions :fil= e org-running.png :exports both
=A0=A0set title "Running Stats"
=A0=A0set xt= ics nomirror rotate by -45
=A0=A0set key noenhanced
=A0= =A0set style data linespoints
=A0=A0plot "$data" using = 2:xtic(1) title columnheader(1), \
=A0=A0for [i=3D2:3] '' using i title columnheader(i)
#+end_src

Nick Parker
www.developernotes.com


On Wed, Sep 8= , 2010 at 9:39 AM, John Hendy <jw.hendy@gmail.com> wrote:
Nick,


This got me curious to see the outp= ut. I tried to generate it on my computer and get this in the *gnuplot* buf= fer after running the code:

-----
gnuplot> plot data using 1:2:3 notitle
=A0=A0 =A0 =A0 =A0 =A0 = =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 ^
=A0=A0 =A0 =A0 =A0 warn= ing: Skipping data file with no valid points
=A0=A0 =A0 =A0 =A0 = =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0^
=A0= =A0 =A0 =A0 =A0 x range is invalid
-----

This is working for you, though?
<= br>
#+tblname: sessions
| Date =A0 =A0 =A0 | = =A0Time | Distance |
|------------+-------+----------|
| 09/02/2010 | 15:13 | =A0 =A0 =A02.5 |
| 09/01/2010 | 14:00 | =A0 =A0 =A02.4 |

#+begin_src gnuplot :var data=3Dsessions :file org-running.png :expor= ts both
=A0=A0set title "Running Stats"
=A0= =A0set auto x
=A0=A0set style data histogram
=A0=A0set style fill solid border -1
=A0=A0set boxwidth .9
=A0=A0set xlabel "Date"
=A0=A0set ylabel "= ;Time"
=A0=A0plot data using 1:2:3 notitle
#+end_s= rc


John
On Wed, Sep 8, 2010 at 8:10 AM, Nick Parker <nickp@developernotes.com> wrote:
Erik,

That was the issue,= the :file reference needed to be on the line above. =A0Thanks.
On Tue, Sep 7= , 2010 at 10:27 PM, Erik Iverson <eriki@ccbr.umn.edu> wrote= :
On 09/07/2010 10:12 PM, Nick Parker wrote:
Hi John,

I would actually like to plot different lines per distance, each
that correlate to a date and elapsed-time (x and y axis respectively).
=A0I get an error with the :file notation, though I read that in a sample<= br> babel gnuplot example for generating graphs of commit history on the
org-mode git repository. =A0I tried to reference the variable data without<= br> the quotes and $ sign without any success. =A0I will continue to fiddle
with it, I am new to gnuplot.

AFAIK, you can't break source code header argument lines across
multiple lines. =A0Is that how you actually have it in your
org file?


=A0 =A0 =A0 =A0#+begin_src gnuplot :var data=3Dsessions
=A0 =A0 =A0 =A0 =A0 :file org-running.png :exports both
=A0 =A0 =A0 =A0 =A0 set title "Running Stats"
=A0 =A0 =A0 =A0 =A0 set auto x
=A0 =A0 =A0 =A0 =A0 set style data histogram
=A0 =A0 =A0 =A0 =A0 set style fill solid border -1
=A0 =A0 =A0 =A0 =A0 set boxwidth .9
=A0 =A0 =A0 =A0 =A0 set xlabel "Date"
=A0 =A0 =A0 =A0 =A0 set ylabel "Time"
=A0 =A0 =A0 =A0 =A0 plot "$data" using 1:2:3 notitle
=A0 =A0 =A0 =A0#+end_src

=A0 =A0 =A0 =A0Nick Parker
=A0 =A0 =A0 =A0www.developernotes.com <http://www.developernotes.com>


=A0 =A0 =A0 =A0_______________________________________________
=A0 =A0 =A0 =A0Emacs-orgmode mailing list
=A0 =A0 =A0 =A0Please use `Reply All' to send replies to the list.
=
=A0 =A0 =A0 =A0= Emacs-orgmode@gnu.org <mailto:Emacs-orgmode@gnu.org>






--e0cb4e8878118c3eb1048fc89915-- --===============1671442513== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ 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 --===============1671442513==-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carlos Russo Subject: org-babel and gnuplot Date: Fri, 7 Jun 2013 14:25:03 +0100 Message-ID: <65F625E6-49F6-4C96-800F-1F1CE6E115ED@ist.utl.pt> Mime-Version: 1.0 (Mac OS X Mail 6.5 \(1508\)) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:51885) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UkwfM-0001lj-7e for emacs-orgmode@gnu.org; Fri, 07 Jun 2013 09:25:19 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UkwfF-0000Ep-8K for emacs-orgmode@gnu.org; Fri, 07 Jun 2013 09:25:16 -0400 Received: from smtp2.ist.utl.pt ([193.136.128.22]:52103) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UkwfE-0000DQ-Vo for emacs-orgmode@gnu.org; Fri, 07 Jun 2013 09:25:09 -0400 Received: from localhost (localhost.localdomain [127.0.0.1]) by smtp2.ist.utl.pt (Postfix) with ESMTP id DFC1370004A1 for ; Fri, 7 Jun 2013 14:25:04 +0100 (WEST) Received: from smtp2.ist.utl.pt ([127.0.0.1]) by localhost (smtp2.ist.utl.pt [127.0.0.1]) (amavisd-new, port 10025) with LMTP id GAma3OW5CEIG for ; Fri, 7 Jun 2013 14:25:04 +0100 (WEST) Received: from mail2.ist.utl.pt (mail.ist.utl.pt [IPv6:2001:690:2100:1::8]) by smtp2.ist.utl.pt (Postfix) with ESMTP id B69B7700049F for ; Fri, 7 Jun 2013 14:25:04 +0100 (WEST) Received: from [IPv6:2001:690:2100:1c:1dbf:5cf5:23c0:c5ac] (unknown [IPv6:2001:690:2100:1c:1dbf:5cf5:23c0:c5ac]) (Authenticated sender: ist31313) by mail2.ist.utl.pt (Postfix) with ESMTPSA id 9EBE4200CB23 for ; Fri, 7 Jun 2013 14:25:04 +0100 (WEST) 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: emacs-orgmode@gnu.org Hi I was trying a gnuplot source block, and was stricken by "No = org-babel-execute function for gnuplot!" when I tried to execute the = block. I made sure the variable org-babel-load-languages contained (gnuplot . = t) , so I was quite puzzled. It turns out that I needed to explicitly add=20 (require 'ob-gnuplot) to my .emacs file. According to the documentation, this line should not be needed for = org-mode 8.03 (my current version). It this a bug in the documentation? Cheers, Carlos= From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric Schulte Subject: Re: org-babel and gnuplot Date: Fri, 07 Jun 2013 10:48:13 -0600 Message-ID: <8738stvpde.fsf@gmail.com> References: <65F625E6-49F6-4C96-800F-1F1CE6E115ED@ist.utl.pt> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:56831) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ukzqa-0004Mu-Iw for emacs-orgmode@gnu.org; Fri, 07 Jun 2013 12:49:05 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UkzqZ-0003YZ-DW for emacs-orgmode@gnu.org; Fri, 07 Jun 2013 12:49:04 -0400 Received: from mail-pb0-x22d.google.com ([2607:f8b0:400e:c01::22d]:54503) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UkzqZ-0003YM-7O for emacs-orgmode@gnu.org; Fri, 07 Jun 2013 12:49:03 -0400 Received: by mail-pb0-f45.google.com with SMTP id mc8so4926894pbc.4 for ; Fri, 07 Jun 2013 09:49:02 -0700 (PDT) In-Reply-To: <65F625E6-49F6-4C96-800F-1F1CE6E115ED@ist.utl.pt> (Carlos Russo's message of "Fri, 7 Jun 2013 14:25:03 +0100") 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: Carlos Russo Cc: emacs-orgmode@gnu.org Carlos Russo writes: > Hi > > I was trying a gnuplot source block, and was stricken by "No org-babel-execute function for gnuplot!" when I tried to execute the block. > I made sure the variable org-babel-load-languages contained (gnuplot . t) , so I was quite puzzled. > > It turns out that I needed to explicitly add > (require 'ob-gnuplot) > to my .emacs file. > > According to the documentation, this line should not be needed for org-mode 8.03 (my current version). > It this a bug in the documentation? > > Cheers, > Carlos There are instructions for enabling language in the following page of the manual. http://orgmode.org/manual/Languages.html#Languages -- Eric Schulte http://cs.unm.edu/~eschulte