emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* org-bable and gnuplot
@ 2011-09-01 16:59 Marvin Doyley
  2011-09-01 18:13 ` Eric Schulte
  0 siblings, 1 reply; 4+ messages in thread
From: Marvin Doyley @ 2011-09-01 16:59 UTC (permalink / raw)
  To: emacs-orgmode

[-- Attachment #1: Type: text/plain, Size: 710 bytes --]

Hi there,

I am planning to use gnuplot to plot some data that I have in org table.
Everything is set-up correctly and gnuplot is installed my mac.
Unfortunately, when I run the following org file I get a zero byte file --
everything seems to run ok, except nothing is written to the output file.
Does anybody know what I am doing wrong ?

#+tblname: testing
| x |  y |
|---+----|
| 1 |  2 |
| 2 |  4 |
| 3 |  6 |
| 4 |  8 |
| 5 | 10 |
| 6 | 12 |
| 7 | 14 |
| 8 | 16 |
#+begin_src gnuplot :var data=testing :file output.eps :exports both
set title "test"
set auto x
set style data histogram
set style fill solid border -1
set boxwidth 0.9
plot data using 1:2
#+end_src

#+results:
[[file:output.eps]]
cheers
M

[-- Attachment #2: Type: text/html, Size: 815 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: org-bable and gnuplot
  2011-09-01 16:59 org-bable and gnuplot Marvin Doyley
@ 2011-09-01 18:13 ` Eric Schulte
  2011-09-01 18:21   ` John Hendy
  0 siblings, 1 reply; 4+ messages in thread
From: Eric Schulte @ 2011-09-01 18:13 UTC (permalink / raw)
  To: Marvin Doyley; +Cc: emacs-orgmode

Marvin Doyley <marvinpas@gmail.com> writes:

> Hi there,
>
> I am planning to use gnuplot to plot some data that I have in org table.
> Everything is set-up correctly and gnuplot is installed my mac.
> Unfortunately, when I run the following org file I get a zero byte file --
> everything seems to run ok, except nothing is written to the output file.
> Does anybody know what I am doing wrong ?
>
> #+tblname: testing
> | x |  y |
> |---+----|
> | 1 |  2 |
> | 2 |  4 |
> | 3 |  6 |
> | 4 |  8 |
> | 5 | 10 |
> | 6 | 12 |
> | 7 | 14 |
> | 8 | 16 |
> #+begin_src gnuplot :var data=testing :file output.eps :exports both
> set title "test"
> set auto x
> set style data histogram
> set style fill solid border -1
> set boxwidth 0.9
> plot data using 1:2
> #+end_src
>
> #+results:
> [[file:output.eps]]
> cheers
> M

Hi Marvin,

I just tried your example locally, and I also got an empty .eps file.  I
then jumped to the *gnuplot* buffer where I saw the following.

,----
| gnuplot> data = "/tmp/babel-4592fc8/gnuplot-4592Pna"
| gnuplot> set term eps
|                   ^
|          unknown or ambiguous terminal type; type just 'set terminal' for a list
| 
| gnuplot> set output "output.eps"
| gnuplot> set title "test"
| gnuplot> set auto x
| gnuplot> set style data histogram
| gnuplot> set style fill solid border -1
| gnuplot> set boxwidth 0.9
| gnuplot> plot data using 1:2
|               ^
|          use 'set term' to set terminal type first
| 
| gnuplot> 
`----

so if your gnuplot is like my gnuplot then "eps" is not a known terminal
type.  I'd suggest trying the following.  Also, notice that I changed
your "plot" line -- histograms are not intuitive in gnuplot.

#+tblname: gnuplot-testing
| x |  y |
|---+----|
| 1 |  2 |
| 2 |  4 |
| 3 |  6 |
| 4 |  8 |
| 5 | 10 |
| 6 | 12 |
| 7 | 14 |
| 8 | 16 |

#+begin_src gnuplot :var data=gnuplot-testing :file output.eps :exports both
set term postscript
set title "test"
set auto x
set style data histogram
set style fill solid border -1
set boxwidth 0.9
plot data using 2:xtic(1)
#+end_src

Cheers -- Eric

-- 
Eric Schulte
http://cs.unm.edu/~eschulte/

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: org-bable and gnuplot
  2011-09-01 18:13 ` Eric Schulte
@ 2011-09-01 18:21   ` John Hendy
  2011-09-01 20:20     ` Marvin Doyley
  0 siblings, 1 reply; 4+ messages in thread
From: John Hendy @ 2011-09-01 18:21 UTC (permalink / raw)
  To: Eric Schulte; +Cc: Marvin Doyley, emacs-orgmode

On Thu, Sep 1, 2011 at 1:13 PM, Eric Schulte <schulte.eric@gmail.com> wrote:
>
> Marvin Doyley <marvinpas@gmail.com> writes:
>
> > Hi there,
> >
> > I am planning to use gnuplot to plot some data that I have in org table.
> > Everything is set-up correctly and gnuplot is installed my mac.
> > Unfortunately, when I run the following org file I get a zero byte file --
> > everything seems to run ok, except nothing is written to the output file.
> > Does anybody know what I am doing wrong ?
> >

<snip>

>
> so if your gnuplot is like my gnuplot then "eps" is not a known terminal
> type.  I'd suggest trying the following.  Also, notice that I changed
> your "plot" line -- histograms are not intuitive in gnuplot.
>

<snip>

>
> #+begin_src gnuplot :var data=gnuplot-testing :file output.eps :exports both
> set term postscript
> set title "test"
> set auto x
> set style data histogram
> set style fill solid border -1
> set boxwidth 0.9
> plot data using 2:xtic(1)
> #+end_src
>

Shameless plug: this and more is available at the orgmode gnuplot
babel documentation on Worg. Check it out if you're interested.
--- Top level: http://orgmode.org/worg/org-contrib/babel/languages/ob-doc-gnuplot.html
--- This in particular (generating eps files):
http://orgmode.org/worg/org-contrib/babel/languages/ob-doc-gnuplot.html#sec-7_2

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: org-bable and gnuplot
  2011-09-01 18:21   ` John Hendy
@ 2011-09-01 20:20     ` Marvin Doyley
  0 siblings, 0 replies; 4+ messages in thread
From: Marvin Doyley @ 2011-09-01 20:20 UTC (permalink / raw)
  To: John Hendy; +Cc: emacs-orgmode

[-- Attachment #1: Type: text/plain, Size: 1539 bytes --]

Thanks,
set terminal did the trick

cheers
M

On Thu, Sep 1, 2011 at 2:21 PM, John Hendy <jw.hendy@gmail.com> wrote:

> On Thu, Sep 1, 2011 at 1:13 PM, Eric Schulte <schulte.eric@gmail.com>
> wrote:
> >
> > Marvin Doyley <marvinpas@gmail.com> writes:
> >
> > > Hi there,
> > >
> > > I am planning to use gnuplot to plot some data that I have in org
> table.
> > > Everything is set-up correctly and gnuplot is installed my mac.
> > > Unfortunately, when I run the following org file I get a zero byte file
> --
> > > everything seems to run ok, except nothing is written to the output
> file.
> > > Does anybody know what I am doing wrong ?
> > >
>
> <snip>
>
> >
> > so if your gnuplot is like my gnuplot then "eps" is not a known terminal
> > type.  I'd suggest trying the following.  Also, notice that I changed
> > your "plot" line -- histograms are not intuitive in gnuplot.
> >
>
> <snip>
>
> >
> > #+begin_src gnuplot :var data=gnuplot-testing :file output.eps :exports
> both
> > set term postscript
> > set title "test"
> > set auto x
> > set style data histogram
> > set style fill solid border -1
> > set boxwidth 0.9
> > plot data using 2:xtic(1)
> > #+end_src
> >
>
> Shameless plug: this and more is available at the orgmode gnuplot
> babel documentation on Worg. Check it out if you're interested.
> --- Top level:
> http://orgmode.org/worg/org-contrib/babel/languages/ob-doc-gnuplot.html
> --- This in particular (generating eps files):
>
> http://orgmode.org/worg/org-contrib/babel/languages/ob-doc-gnuplot.html#sec-7_2
>

[-- Attachment #2: Type: text/html, Size: 2425 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2011-09-01 20:20 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-09-01 16:59 org-bable and gnuplot Marvin Doyley
2011-09-01 18:13 ` Eric Schulte
2011-09-01 18:21   ` John Hendy
2011-09-01 20:20     ` Marvin Doyley

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).