emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Nick Parker <nickp@developernotes.com>
To: John Hendy <jw.hendy@gmail.com>
Cc: emacs-orgmode@gnu.org
Subject: Re: org-babel and gnuplot
Date: Wed, 8 Sep 2010 11:52:57 -0500	[thread overview]
Message-ID: <AANLkTi=hJrkNrTGED5MWJAhJS_uLMLWertU-75yTz1+s@mail.gmail.com> (raw)
In-Reply-To: <AANLkTi=d0S=-UJB0qWNSSya7=U7koRyXmZwfCeqcoQvf@mail.gmail.com>


[-- Attachment #1.1: Type: text/plain, Size: 3538 bytes --]

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 <jw.hendy@gmail.com> 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 <nickp@developernotes.com>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 <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).
>>>>  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 <http://www.developernotes.com>
>>>>
>>>>
>>>>        _______________________________________________
>>>>        Emacs-orgmode mailing list
>>>>        Please use `Reply All' to send replies to the list.
>>>>        Emacs-orgmode@gnu.org <mailto: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
>>>>
>>>
>>>
>>
>

[-- Attachment #1.2: Type: text/html, Size: 5936 bytes --]

[-- Attachment #2: Type: text/plain, Size: 201 bytes --]

_______________________________________________
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

  reply	other threads:[~2010-09-08 16:54 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-09-08  1:29 org-babel and gnuplot Nick Parker
2010-09-08  1:54 ` John Hendy
2010-09-08  3:12   ` Nick Parker
2010-09-08  3:27     ` Erik Iverson
2010-09-08 13:10       ` Nick Parker
2010-09-08 13:38         ` John Hendy
2010-09-08 14:39         ` John Hendy
2010-09-08 16:52           ` Nick Parker [this message]
2010-09-08 19:04             ` John Hendy
2010-09-09  0:20               ` Nick Parker
  -- strict thread matches above, loose matches on Subject: below --
2013-06-07 13:25 Carlos Russo
2013-06-07 16:48 ` Eric Schulte

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='AANLkTi=hJrkNrTGED5MWJAhJS_uLMLWertU-75yTz1+s@mail.gmail.com' \
    --to=nickp@developernotes.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=jw.hendy@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).