[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Orgmode] Export plots made with org-plot
From: |
Eric Schulte |
Subject: |
Re: [Orgmode] Export plots made with org-plot |
Date: |
Wed, 29 Jul 2009 10:29:57 -0600 |
User-agent: |
Gnus/5.110011 (No Gnus v0.11) Emacs/23.1.50 (darwin) |
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 <address@hidden> 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.
> address@hidden
> 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