在gnuplot绘制期间收到错误

时间:2013-11-22 18:35:06

标签: ubuntu csv utf-8 character-encoding gnuplot

我尝试使用带有gnuplot的csv绘制图形。我的代码是:

#!/usr/bin/gnuplot -persist
set datafile separator ":"
set terminal pngcairo font ",8" size 1500,1000
set output '/path_to/mychart.png'
set style data histograms
set format y '%.0f'
set xtics right rotate by 45 font ',8'
set bmargin 10
set title "some graph title"
set xlabel "some x axis name"
set ylabel "some y axis name"
plot "/path_to/my.csv" using 2:xticlabels(1) notitle

在脚本运行期间,我收到一条错误消息,如:

无法转换“某些网络参数名称 W-”:当前字符集(UTF-8)中的序列无效,回退到iso_8859_1

实际上,它正在为csv文件中的每个参数(实际上是图形的xtics)重复相同的消息。我在Windows 7主机上的VirtualBox客户端上使用Ubuntu 13.04。

脚本以某种方式绘制图形,但x轴上出现奇怪的字符。 Y轴(由数字组成)很好。图表本身也很好。

这是OS中的错误还是一些缺少的字符集?

感谢。

0 个答案:

没有答案