unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Alexander Klimov <alserkli@inbox.ru>
To: jay.p.belanger@gmail.com
Cc: emacs-devel@gnu.org
Subject: calc-graph: "data style" is rejected by gnuplot 4.3.0
Date: Wed, 28 Apr 2010 18:19:08 +0300	[thread overview]
Message-ID: <TheMailAgent.1a5cb6e28a5cfa6@1b7049d1b8b53b8048124> (raw)

Hi.

With

 $ gnuplot --version
 gnuplot 4.3 patchlevel 0

it is impossible to plot from Calc with `g f' (calc-graph-fast). The
reason is that the long-deprecated syntax is not accepted by this
version of gnuplot:

 gnuplot> set data style linespoints
              ^
         valid set options:  [] = choose one, {} means optional

         [...] 'style', 'surface', 'terminal', 'tics', [...]

The following patch fixes the problem:

=== modified file 'lisp/calc/calc-graph.el'
--- lisp/calc/calc-graph.el     2010-01-13 08:35:10 +0000
+++ lisp/calc/calc-graph.el     2010-04-28 15:09:39 +0000
@@ -345,7 +345,7 @@
                     "set xlabel\nset ylabel\nset title\n"
                     "set noclip points\nset clip one\nset clip two\n"
                     "set format \"%g\"\nset tics\nset xtics\nset ytics\n"
-                    "set data style linespoints\n"
+                    "set style data linespoints\n"
                     "set nogrid\nset nokey\nset nopolar\n"))
         (if (>= ver 3)
             (insert "set surface\nset nocontour\n"

-- 
Regards,
ASK




             reply	other threads:[~2010-04-28 15:19 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-04-28 15:19 Alexander Klimov [this message]
2010-04-28 16:57 ` calc-graph: "data style" is rejected by gnuplot 4.3.0 Jay Belanger

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.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=TheMailAgent.1a5cb6e28a5cfa6@1b7049d1b8b53b8048124 \
    --to=alserkli@inbox.ru \
    --cc=emacs-devel@gnu.org \
    --cc=jay.p.belanger@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.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).