From mboxrd@z Thu Jan 1 00:00:00 1970 From: Marvin Doyley Subject: Re: org-bable and gnuplot Date: Thu, 1 Sep 2011 16:20:54 -0400 Message-ID: References: <87fwkgf7wb.fsf@gmail.com> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=00151747c38e5f274e04abe6fb0f Return-path: Received: from eggs.gnu.org ([140.186.70.92]:43144) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QzDkv-00009E-Lq for emacs-orgmode@gnu.org; Thu, 01 Sep 2011 16:20:58 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QzDku-0007LQ-A0 for emacs-orgmode@gnu.org; Thu, 01 Sep 2011 16:20:57 -0400 Received: from mail-fx0-f41.google.com ([209.85.161.41]:44698) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QzDku-0007LI-0D for emacs-orgmode@gnu.org; Thu, 01 Sep 2011 16:20:56 -0400 Received: by fxg9 with SMTP id 9so1196831fxg.0 for ; Thu, 01 Sep 2011 13:20:55 -0700 (PDT) In-Reply-To: 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: John Hendy Cc: emacs-orgmode@gnu.org --00151747c38e5f274e04abe6fb0f Content-Type: text/plain; charset=ISO-8859-1 Thanks, set terminal did the trick cheers M On Thu, Sep 1, 2011 at 2:21 PM, John Hendy wrote: > On Thu, Sep 1, 2011 at 1:13 PM, Eric Schulte > wrote: > > > > Marvin Doyley 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 ? > > > > > > > > > > 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. > > > > > > > > > #+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 > --00151747c38e5f274e04abe6fb0f Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable 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.e= ric@gmail.com> wrote:
>
> Marvin Doyley <marvinpas@gma= il.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 byt= e file --
> > everything seems to run ok, except nothing is written to the outp= ut file.
> > Does anybody know what I am doing wrong ?
> >

<snip>

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

<snip>

>
> #+begin_src gnuplot :var data=3Dgnuplot-testing :file output.eps :expo= rts 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-contr= ib/babel/languages/ob-doc-gnuplot.html
--- This in particular (generating eps files):
http://orgmode.org/worg/org-contrib/babe= l/languages/ob-doc-gnuplot.html#sec-7_2

--00151747c38e5f274e04abe6fb0f--