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 <ni...@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 <er...@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
>>>
>>
>>
>
_______________________________________________
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 via email to