* Export plots made with org-plot
@ 2009-07-28 11:29 Daniel Clemente
2009-07-29 16:29 ` Eric Schulte
0 siblings, 1 reply; 2+ messages in thread
From: Daniel Clemente @ 2009-07-28 11:29 UTC (permalink / raw)
To: Org-mode ml
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
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Export plots made with org-plot
2009-07-28 11:29 Export plots made with org-plot Daniel Clemente
@ 2009-07-29 16:29 ` Eric Schulte
0 siblings, 0 replies; 2+ messages in thread
From: Eric Schulte @ 2009-07-29 16:29 UTC (permalink / raw)
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 <n142857@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.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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2009-07-31 16:46 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-07-28 11:29 Export plots made with org-plot Daniel Clemente
2009-07-29 16:29 ` Eric Schulte
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.