From: "Eric Schulte" <schulte.eric@gmail.com>
To: Daniel Clemente <n142857@gmail.com>
Cc: Org-mode ml <emacs-orgmode@gnu.org>
Subject: Re: Export plots made with org-plot
Date: Wed, 29 Jul 2009 10:29:57 -0600 [thread overview]
Message-ID: <m2ws5qdsdh.fsf@gmail.com> (raw)
In-Reply-To: 87my6p82q4.fsf@CPU107.opentrends.net
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
prev parent reply other threads:[~2009-07-31 16:46 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-07-28 11:29 Export plots made with org-plot Daniel Clemente
2009-07-29 16:29 ` Eric Schulte [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=m2ws5qdsdh.fsf@gmail.com \
--to=schulte.eric@gmail.com \
--cc=emacs-orgmode@gnu.org \
--cc=n142857@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).