emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: ian martins <ianxm@jhu.edu>
To: Org-Mode mailing list <emacs-orgmode@gnu.org>
Subject: Bug: org-plot gives Invalid function error
Date: Mon, 26 Apr 2021 12:49:48 -0400	[thread overview]
Message-ID: <CAC=rjb6=4GBEAQL0HNTcUc9ufw7knVm4kyG+ooJ=Lt7eP8pTHA@mail.gmail.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 1521 bytes --]

I went to test the "Refresh inline" patch [1] and found that org-plot is
broken for me. it
seems to have broken in 1ac45d76e. I tested with =emacs -Q= (but loaded
Org from master and gnuplot.el manually).  I was running the example from
 the doc [2]. I tested on linux and mac, both using emacs 26.3, and got the
same result.

The error message is:

    org-plot/gnuplot: Invalid function: (dump-func (plist-get type

But if I manually load =org-plot.el= it doesn't give that error, but
still doesn't produce a plot.  I'm not sure what manually loading
=org-plot.el= does since I'd just done a "make clean; make" and restarted.

In the second case (after manually loading =org-plot.el=), this is what is
the *gnuplot* buffer:

    Terminal type is now 'qt'
    gnuplot> reset
    gnuplot> set term GNUTERM

    Terminal type is now 'qt'
    Options are '0 font "Sans,9"'
    gnuplot> set title 'Citas'
    gnuplot> set yrange [0:]
    gnuplot> set yrange [0:]
    gnuplot> set datafile separator "\t"
    gnuplot> plot '/tmp/org-plotiPs0To' using 1:3 with histograms title
             warning: Skipping data file with no valid points

             x range is invalid

this is the data file:

    "Chile" 257.72 21.39
    "Leeds" 165.77 19.68
    "Sao Paolo" 71.00 11.50
    "Stockholm" 134.19 14.33
    "Morelia" 257.56 17.67

I'll try to look into it more later.

[1] https://orgmode.org/list/87r1j0mg56.fsf@gmail.com/
[2] https://orgmode.org/manual/Org-Plot.html#Org-Plot

[-- Attachment #2: Type: text/html, Size: 2248 bytes --]

             reply	other threads:[~2021-04-26 16:51 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-04-26 16:49 ian martins [this message]
2021-04-26 17:04 ` Bug: org-plot gives Invalid function error Timothy
2021-04-27  3:33   ` Ihor Radchenko
2021-04-27  3:50     ` Timothy
2021-04-27  4:47       ` Ihor Radchenko
2021-05-01 17:13         ` Bastien
2021-05-01 17:18           ` Timothy
2021-05-01 17:24             ` Bastien
2021-05-09 15:54         ` Timothy
2021-05-12 14:07           ` Ihor Radchenko

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:

  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='CAC=rjb6=4GBEAQL0HNTcUc9ufw7knVm4kyG+ooJ=Lt7eP8pTHA@mail.gmail.com' \
    --to=ianxm@jhu.edu \
    --cc=emacs-orgmode@gnu.org \


* 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


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