From mboxrd@z Thu Jan 1 00:00:00 1970 From: JBash Subject: org-plot questions Date: Wed, 22 Oct 2008 10:27:30 -0400 Message-ID: <407c66ac0810220727qd861245p47bbece859899da9@mail.gmail.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1673468365==" Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KsegU-0001aD-Kb for emacs-orgmode@gnu.org; Wed, 22 Oct 2008 10:27:38 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KsegS-0001Xx-S0 for emacs-orgmode@gnu.org; Wed, 22 Oct 2008 10:27:37 -0400 Received: from [199.232.76.173] (port=47926 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KsegS-0001Xf-Iu for emacs-orgmode@gnu.org; Wed, 22 Oct 2008 10:27:36 -0400 Received: from mail-gx0-f10.google.com ([209.85.217.10]:45321) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KsegS-0004LI-6T for emacs-orgmode@gnu.org; Wed, 22 Oct 2008 10:27:37 -0400 Received: by gxk3 with SMTP id 3so7932118gxk.18 for ; Wed, 22 Oct 2008 07:27:31 -0700 (PDT) List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org --===============1673468365== Content-Type: multipart/alternative; boundary="----=_Part_29585_8342311.1224685650768" ------=_Part_29585_8342311.1224685650768 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi, First of all, thanks to all for the work on org-mode and org-plot. A question about org-plot... Question 1: When I include an index column in the first column of the table, I am getting evenly spaced data points, with the xtic labels being coming from the 'ind:' column (2, in the first data set here). The behavior I expected was to use the second column (Frequency) as the independent variable, and to get a plot with 3 groups of 3 points, near frequencies of 1, 10, and 20. as I get with the 'Data Set B' group. Is this expected and correct? I know that this will also include the first column in the plot, which leads to my next question. Question 2: When I try to use the deps option, I either get an error or an undesired result. For example, if I include a "deps:3,4", I get a "Wrong type argument" error. If I enclose the 3,4 in single quotes (eg. deps:'3,4'), I get only the third column plotted, and not both third and fourth as I expected. What am I doing wrong? A comment - enclosing the argument for deps in single quotes, if that is the intention, seems inconsistent with the arguments for other options of that type (ind, for example). Question 3: Is there a way to produce 2 different plots from the same table data? Thanks again for the help. Jerry ** Data Set A #+PLOT: ind:2 | Index | Frequency | Amplitude | Phase | Delta | Peak | | 1 | 0.9 | 9 | 6 | 5 | 198 | | 2 | 1.0 | 10 | 9 | 7 | 212 | | 3 | 1.1 | 11 | 8 | 3 | 144 | | 4 | 9.9 | 19 | 12 | 9 | 235 | | 5 | 10.0 | 18 | 7 | 12 | 222 | | 6 | 10.1 | 22 | 14 | 4 | 187 | | 7 | 19.9 | 14 | 11 | 6 | 220 | | 8 | 20.0 | 20 | 15 | 14 | 213 | | 9 | 20.1 | 18 | 16 | 11 | 201 | ** Data Set B #+PLOT: ind:1 | 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 | ------=_Part_29585_8342311.1224685650768 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi,

First of all, thanks to all for the work on org-mode and org-plot.

A question about org-plot...

Question 1:
When I include an index column in the first column of the table,  I am getting evenly spaced data points, with the xtic labels being coming from the 'ind:' column (2, in the first data set here).

The behavior I expected was to use the second column (Frequency) as the independent variable, and to get a plot with 3 groups of 3 points, near frequencies of 1, 10, and 20. as I get with the 'Data Set B' group.

Is this expected and correct?

I know that this will also include the first column in the plot, which leads to my next question.

Question 2:
When I try to use the deps option, I either get an error or an undesired result.  For example, if I include a "deps:3,4", I get a "Wrong type argument" error.  If I enclose the 3,4 in single quotes (eg. deps:'3,4'), I get only the third column plotted, and not both third and fourth as I expected.  What am I doing wrong?
A comment - enclosing the argument for deps in single quotes, if that is the intention, seems inconsistent with the arguments for other options of that type (ind, for example).

Question 3:
Is there a way to produce 2 different plots from the same table data?

Thanks again for the help.
Jerry

** Data Set A
#+PLOT: ind:2
| Index | Frequency |  Amplitude | Phase | Delta | Peak |
|     1 |       0.9 |          9 |     6 |     5 |  198 |
|     2 |       1.0 |         10 |     9 |     7 |  212 |
|     3 |       1.1 |         11 |     8 |     3 |  144 |
|     4 |       9.9 |         19 |    12 |     9 |  235 |
|     5 |      10.0 |         18 |     7 |    12 |  222 |
|     6 |      10.1 |         22 |    14 |     4 |  187 |
|     7 |      19.9 |         14 |    11 |     6 |  220 |
|     8 |      20.0 |         20 |    15 |    14 |  213 |
|     9 |      20.1 |         18 |    16 |    11 |  201 |

** Data Set B
#+PLOT: ind:1
| 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 |

------=_Part_29585_8342311.1224685650768-- --===============1673468365== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ 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 --===============1673468365==--