emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

calc-graph: "data style" is rejected by gnuplot 4.3.0


From: Alexander Klimov
Subject: calc-graph: "data style" is rejected by gnuplot 4.3.0
Date: Wed, 28 Apr 2010 18:19:08 +0300

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 via email to

[Prev in Thread] Current Thread [Next in Thread]