gnuplot - 行0:予期しないまたは認識できないトークン

gnuplot - 行0:予期しないまたは認識できないトークン

パスワード:

#!/usr/bin/env bash
# download death data
wget -O Deaths.txt http://www.randomservices.org/random/data/Deaths.txt
wget -O Pumps.txt http://www.randomservices.org/random/data/Pumps.txt
# Delete the first line
sed 1d Deaths.txt > tempfile1
sed 1d Pumps.txt > tempfile2
# mv tempfile1 Deaths.txt
# mv tempfile2 Pumps.txt
gnuplot -persist -e "set terminal canvas;set xlabel 'x' font 'sans,15';
set ylabel 'y' font ',15';
set title 'Relationship between Deaths and Pumps' font 'sans, 20';
show title;
set label "Most of the deaths is near the pump located in 12.6,11.7" at 16,16;
show label;
set output 'death_pump_relation.html';
plot 'Pumps.txt' with points pt 7 ,'Deaths.txt' with dots;"

エラーがあります:line 0: unexpected or unrecognized token

何の出力も得られない

しかし、実際に私のスクリプトにはline0はありません。

これは何の問題ですか?

バージョン: gnuplot V5.2

システム: MacOS

ベストアンサー1

これはジョブスクリプトです

#!/usr/bin/env bash
# download death data
wget -O Deaths.txt http://www.randomservices.org/random/data/Deaths.txt
wget -O Pumps.txt http://www.randomservices.org/random/data/Pumps.txt
# Delete the first line
sed 1d Deaths.txt > tempfile1
sed 1d Pumps.txt > tempfile2
mv tempfile1 Deaths.txt
mv tempfile2 Pumps.txt
gnuplot -persist -e "set terminal canvas;set xlabel 'x' font 'sans,15';
set ylabel 'y' font ',15';
set title 'Relationship between Deaths and Pumps' font 'sans, 20';
show title;
set label 'Most of the deaths is near the pump located in 12.6,11.7' at 16,16;
show label;
set output 'death_pump_relation.html';
plot 'Pumps.txt' with points pt 7 ,'Deaths.txt' with dots;"

出力はDeath_pump_relation.htmlにあります。

おすすめ記事