emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: John Hendy <jw.hendy@gmail.com>
To: Nick Parker <nickp@developernotes.com>
Cc: emacs-orgmode@gnu.org
Subject: Re: org-babel and gnuplot
Date: Tue, 7 Sep 2010 20:54:20 -0500	[thread overview]
Message-ID: <AANLkTi=AyuOQQPC-PuPjZiOB6GhDRYOTVz1==5kf_VoR@mail.gmail.com> (raw)
In-Reply-To: <AANLkTik81-MnBY1YXk24ZPGbQjUeK=2VvDLRh6nvWdro@mail.gmail.com>


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

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 <nickp@developernotes.com>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
>
>

[-- Attachment #1.2: Type: text/html, Size: 3313 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  1: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 [this message]
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
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=AyuOQQPC-PuPjZiOB6GhDRYOTVz1==5kf_VoR@mail.gmail.com' \
    --to=jw.hendy@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=nickp@developernotes.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).