emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* org-plot figure - writing to a file
@ 2008-10-24 19:50 JBash
  2008-10-25  0:00 ` Eric Schulte
  0 siblings, 1 reply; 2+ messages in thread
From: JBash @ 2008-10-24 19:50 UTC (permalink / raw)
  To: emacs-orgmode


[-- Attachment #1.1: Type: text/plain, Size: 255 bytes --]

Hi,

Can I get org-plot to write the plot to a file?  I've tried:

#+PLOT: set:"term eps"
#+PLOT: file:"plot1.eps"

and similar things for png files, but I end up with an empty file, named
plot1.eps (or plot1.png) in the current directory.

Thanks,
Jerry

[-- Attachment #1.2: Type: text/html, Size: 319 bytes --]

[-- Attachment #2: Type: text/plain, Size: 204 bytes --]

_______________________________________________
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

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: org-plot figure - writing to a file
  2008-10-24 19:50 org-plot figure - writing to a file JBash
@ 2008-10-25  0:00 ` Eric Schulte
  0 siblings, 0 replies; 2+ messages in thread
From: Eric Schulte @ 2008-10-25  0:00 UTC (permalink / raw)
  To: JBash; +Cc: emacs-orgmode

JBash <bashveank@gmail.com> writes:

> Hi,
>
> Can I get org-plot to write the plot to a file?  I've tried:
>
> #+PLOT: set:"term eps"
> #+PLOT: file:"plot1.eps"
>
> and similar things for png files, but I end up with an empty file, named plot1.eps (or plot1.png) in the
> current directory.
>

the following works for me...

#+PLOT: file:"plot1.png"
#+PLOT: title:"first plot"
#+PLOT: ind:1 with:points
| Frequency | Amplitude | Phase | Delta | Peak |
|-----------+-----------+-------+-------+------|
|       0.9 |         9 |     6 |     5 |  198 |
|       1.0 |        10 |     9 |     7 |  212 |
|       1.1 |        11 |     8 |     3 |  144 |
|       9.9 |        19 |    12 |     9 |  235 |
|      10.0 |        18 |     7 |    12 |  222 |
|      10.1 |        22 |    14 |     4 |  187 |
|      19.9 |        14 |    11 |     6 |  220 |
|      20.0 |        20 |    15 |    14 |  213 |
|      20.1 |        18 |    16 |    11 |  201 |

When you use the file option you don't need to set the term, org-plot
will do that for you.  When I tried the same with a .eps file I also
received an empty image file, not sure what the issue is there...

Thanks -- Eric

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2008-10-25  0:00 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-10-24 19:50 org-plot figure - writing to a file JBash
2008-10-25  0:00 ` Eric Schulte

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).