emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: "Eric Schulte" <schulte.eric@gmail.com>
To: JBash <bashveank@gmail.com>
Cc: emacs-orgmode@gnu.org
Subject: Re: org-plot questions
Date: Wed, 22 Oct 2008 15:43:33 -0700	[thread overview]
Message-ID: <8763nkl08a.fsf@gmail.com> (raw)
In-Reply-To: <407c66ac0810221039m6a8015b9x1d2b76c8960e06d2@mail.gmail.com> (JBash's message of "Wed, 22 Oct 2008 13:39:59 -0400")

JBash <bashveank@gmail.com> writes:

> Thanks, Eric!
>
> It's a great tool... I like how it, within org, makes it easy to keep the data organized an yet easily
> accessible.
>

Thanks, I'm happy it's proving useful.

>
> Another quick org-plot question...
>
> I found that to turn on the grid, I use:
> #+PLOT: set:grid
>
> So, to set an axis label, I tried
> #+PLOT: set:xlabel("Frequency")
> and
> #+PLOT: set:xlabel "Frequency"
> and a few other things, but didn't hit on the right combination.  What's the correct syntax?
>

try 

#+PLOT: set:"xlabel 'Frequency'"

You need the double " quotes for any argument that contains spaces, and
gnuplot requires quotes (in this case using single ' quotes) around the
argument to xlabel.

I agree this isn't obvious, if you have a suggestion for improving the
syntax please let me know.

>     Currently no there is not.  In the current setup all of the plot lines
>     adjacent to a table are collected and used to generate a single plot for
>     the table.  I does seem like a good idea to allow multiple plots from a
>     single table.  Two ideas that come to mind are...
>    
>     1) keep all of the plot lines adjacent with the table, but number them
>       into any number of different plots.  For example the following would
>       specify plots 1 and 2 for a table
>    
>     #+PLOT1: title:"the first plot"
>     #+PLOT1: ind:1 with:points
>     #+PLOT2: title:"the second plot on the same table"
>     #+PLOT2: ind:2 deps:(3 4) with:lines
>     | 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 |
>    
>     2) the only other mechanism which occurs to me is to somehow label the
>       table with a unique ID, and then allow the plot lines to be located
>
> This feature (multiple plots from a single table) would be a very nice
> addition, with either approach.

I agree, if I find time I will look at implementing it.

Thanks -- Eric

  reply	other threads:[~2008-10-22 22:43 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-10-22 14:27 org-plot questions JBash
2008-10-22 15:35 ` Eric Schulte
2008-10-22 17:39   ` JBash
2008-10-22 22:43     ` Eric Schulte [this message]
2008-10-23  1:14       ` Samuel Wales

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=8763nkl08a.fsf@gmail.com \
    --to=schulte.eric@gmail.com \
    --cc=bashveank@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    /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).