From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Eric Schulte" Subject: Re: Export plots made with org-plot Date: Wed, 29 Jul 2009 10:29:57 -0600 Message-ID: References: <87my6p82q4.fsf@CPU107.opentrends.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MWvFb-0004Lu-Gu for emacs-orgmode@gnu.org; Fri, 31 Jul 2009 12:46:35 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MWvFY-0004Ji-20 for emacs-orgmode@gnu.org; Fri, 31 Jul 2009 12:46:35 -0400 Received: from [199.232.76.173] (port=51833 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MWvFX-0004JP-Je for emacs-orgmode@gnu.org; Fri, 31 Jul 2009 12:46:31 -0400 Received: from mail-ew0-f211.google.com ([209.85.219.211]:58526) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MWvFX-0006gC-4d for emacs-orgmode@gnu.org; Fri, 31 Jul 2009 12:46:31 -0400 Received: by mail-ew0-f211.google.com with SMTP id 7so1529224ewy.42 for ; Fri, 31 Jul 2009 09:46:30 -0700 (PDT) List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Daniel Clemente Cc: Org-mode ml Hi Dan, org-plot does not have support for automatic generation of plots on export. Currently to include plots in an exported document you must manually plot the data to a file using the 'file' argument in your plot string, then include the generated file into your org-mode document as you would any other image. Cheers -- Eric side note: If you are feeling bold, I have recently added gnuplot as a supported language to org-babel [1]. With org-babel it is possible to setup a plot which will be automatically generated and included in an org-mode document upon export to html. Here is an example of a plot using the new org-babel syntax [2]. To preview the graph before export press C-c C-c with the point on the block. Daniel Clemente writes: > Hi, > org-plot shows a plot from a table's data, via: M-x org-plot/gnuplot RET. For instance: > > #+PLOT: type:3d with:pm3d > | 0 | 0 | 0 | 0 | 0 | 0 | 0 | > | 0 | 2 | 2 | 2 | 2 | 2 | 0 | > | 0 | 2 | 3 | 3 | 3 | 2 | 0 | > | 0 | 2 | 3 | 4 | 3 | 2 | 0 | > | 0 | 2 | 3 | 3 | 3 | 2 | 0 | > | 0 | 2 | 2 | 2 | 2 | 2 | 0 | > | 0 | 0 | 0 | 0 | 0 | 0 | 0 | > > > However there must probably be a way to export the whole .org document to HTML (via C-c C-e b) including plots (exported as .png images in the same directory). > Now only the table is exported. org-plot's documentation [1] doesn't refer to plot exporting; am I missing something? > > -- Daniel > > [1]: http://orgmode.org/worg/org-tutorials/org-plot.php > > > _______________________________________________ > Emacs-orgmode mailing list > Remember: use `Reply All' to send replies to the list. > Emacs-orgmode@gnu.org > http://lists.gnu.org/mailman/listinfo/emacs-orgmode Footnotes: [1] http://github.com/eschulte/org-babel/tree/master [2] #+TBLNAME: gnuplot-data | independent var | first dependent var | second dependent var | |-----------------+---------------------+----------------------| | 0.1 | 0.425 | 0.375 | | 0.2 | 0.3125 | 0.3375 | | 0.3 | 0.24999993 | 0.28333338 | | 0.4 | 0.275 | 0.28125 | | 0.5 | 0.26 | 0.27 | | 0.6 | 0.25833338 | 0.24999993 | | 0.7 | 0.24642845 | 0.23928553 | | 0.8 | 0.23125 | 0.2375 | | 0.9 | 0.23333323 | 0.2333332 | | 1 | 0.2225 | 0.22 | | 1.1 | 0.20909075 | 0.22272708 | | 1.2 | 0.19999998 | 0.21458333 | | 1.3 | 0.19615368 | 0.21730748 | #+srcname: gnuplot-example #+begin_src gnuplot :var data=gnuplot-data :exports results set title "Gnuplot Example" plot data using 1:2 with lines #+end_src