I would like to graph functions and datasets from calc-mode. (That's a reasonable thing to do in 2021, right?)
Following the directions at Basic Graphics and Vectors as Lists, I started calc-mode, created two vectors, and typed g f
:
--- Emacs Calculator Mode ---
2: [0, 1, 2, 3]
1: [0, 1, 3, 9]
.
g f
No graph is produced. In the *Gnuplot Trail*
buffer that is created, I can see that I've got gnuplot v5.4 installed.
(BTW, TIL that the 'gnu' in 'gnuplot' has nothing to do with 'GNU', How did it come about and why is it called gnuplot?)
Also in the trail buffer, there are these error messages:
Terminal type is now 'qt'
gnuplot>
Terminal type is now 'unknown'
^
unknown or ambiguous terminal type; type just 'set terminal' for a list
gnuplot> gnuplot>
gnuplot> set notime
^
"/var/folders/cj/hmr0n_q91kd7lg4jsqb8w9100000gn/T/calcAkJV7MZ" line 23: Unrecognized option. See 'help unset'.
This makes me think I am using too new a version of gnuplot for the version of Calc I have installed. I am running vanilla Emacs 27.1. I couldn't figure out how to get Calc to tell me what version of calc-mode I have installed (including reading the source).
Searching site:emacs.stackexchange.com calc-mode gnuplot
produced nothing of relevance.
I have once gotten the contents of various buffers like *Gnuplot Temp*
, *Gnuplot Temp-2*
, and *Gnuplot Commands*
, saved them into independent local files, and run gnuplot
from the command line and gotten a chart created, but I would like to figure out how to get things to work the normal way.
What should I do next?
g D default
andg f
again.g D qt
, and THAT gotg f
to work. Now I will try to figure out how to set that terminal type as my default, to see if that results in calc graphing without further twiddlingC-u g D qt
should set it permanently according to the doc.