Re: [Orgmode] Export plots made with org-plot

2009-07-31 Thread Eric Schulte
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 n142...@gmail.com 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.2493 |   0.2838 |
| 0.4 |   0.275 |  0.28125 |
| 0.5 |0.26 | 0.27 |
| 0.6 |  0.2588 |   0.2493 |
| 0.7 |  0.24642845 |   0.23928553 |
| 0.8 | 0.23125 |   0.2375 |
| 0.9 |  0.2323 |0.232 |
|   1 |  0.2225 | 0.22 |
| 1.1 |  0.20909075 |   0.22272708 |
| 1.2 |  0.1998 |   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



___
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


[Orgmode] Export plots made with org-plot

2009-07-28 Thread Daniel Clemente

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