我有一个包含以下数据的CSV文件:
name,age
raju,23
anju,34
manju,56
sanju,56
Run Code Online (Sandbox Code Playgroud)
我正在尝试使用gnuplot生成饼图.这是我正在执行的命令:
#!/usr/bin/gnuplot -persist
reset
set terminal wxt
unset key
set datafile separator ","
set xlabel "USERS"
set ylabel "AGE"
plot 'file.csv' using ($0):2:($0):xticlabels(1) with circles lc variable notitle
Run Code Online (Sandbox Code Playgroud)
我究竟做错了什么?
gnuplot ×1