* calc-graph: "data style" is rejected by gnuplot 4.3.0
@ 2010-04-28 15:19 Alexander Klimov
2010-04-28 16:57 ` Jay Belanger
0 siblings, 1 reply; 2+ messages in thread
From: Alexander Klimov @ 2010-04-28 15:19 UTC (permalink / raw)
To: jay.p.belanger; +Cc: emacs-devel
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
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: calc-graph: "data style" is rejected by gnuplot 4.3.0
2010-04-28 15:19 calc-graph: "data style" is rejected by gnuplot 4.3.0 Alexander Klimov
@ 2010-04-28 16:57 ` Jay Belanger
0 siblings, 0 replies; 2+ messages in thread
From: Jay Belanger @ 2010-04-28 16:57 UTC (permalink / raw)
To: emacs-devel; +Cc: jay.p.belanger, Alexander Klimov
> With
>
> $ gnuplot --version
> gnuplot 4.3 patchlevel 0
>
> it is impossible to plot from Calc with `g f' (calc-graph-fast).
...
> The following patch fixes the problem:
...
Thanks! I'll install it in the trunk as soon as I get home.
Also, since the current gnuplot release is 4.4.0, I'd like permission to
install this patch in the Emacs 23.2 branch.
Jay
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2010-04-28 16:57 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-04-28 15:19 calc-graph: "data style" is rejected by gnuplot 4.3.0 Alexander Klimov
2010-04-28 16:57 ` Jay Belanger
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).