gnuplot返回正确的图形,但也返回多个CGContext错误

gnuplot返回正确的图形,但也返回多个CGContext错误,gnuplot,Gnuplot,下面是我使用gnuplot生成图形的代码: set terminal pngcairo size 500,650 enhanced font 'Verdana,10' set yrange [0:100] set xrange [10:100] set title "angles set 1" font "Arial,12" set output 'angles.png' set style line 1 lc rgb '#0060ad' lt 1 lw 2 pt 7 ps 1.5 plot '

下面是我使用gnuplot生成图形的代码:

set terminal pngcairo size 500,650 enhanced font 'Verdana,10'
set yrange [0:100]
set xrange [10:100]
set title "angles set 1" font "Arial,12"
set output 'angles.png'
set style line 1 lc rgb '#0060ad' lt 1 lw 2 pt 7 ps 1.5
plot 'angfreqs.csv' with impulses lw 2
它精确地绘制了我想要的图形,但也返回了以下错误:

gnuplot[92995] <Error>: CGContextSetFont: invalid context 0x0
gnuplot[92995] <Error>: CGContextSetFontSize: invalid context 0x0
gnuplot[92995] <Error>: CGContextSetTextMatrix: invalid context 0x0
gnuplot[92995] <Error>: CGContextSaveGState: invalid context 0x0
gnuplot[92995] <Error>: CGContextSetCompositeOperation: invalid context 0x0
gnuplot[92995] <Error>: CGContextFillRects: invalid context 0x0
gnuplot[92995] <Error>: CGContextRestoreGState: invalid context 0x0
gnuplot[92995] <Error>: CGContextSetRGBFillColor: invalid context 0x0
gnuplot[92995] <Error>: CGContextShowGlyphsAtPoint: invalid context 0x0
gnuplot[92995] <Error>: CGContextSetFont: invalid context 0x0
gnuplot[92995] <Error>: CGContextSetFontSize: invalid context 0x0
gnuplot[92995] <Error>: CGContextSetTextMatrix: invalid context 0x0
gnuplot[92995] <Error>: CGContextSaveGState: invalid context 0x0
gnuplot[92995] <Error>: CGContextSetCompositeOperation: invalid context 0x0
gnuplot[92995] <Error>: CGContextFillRects: invalid context 0x0
gnuplot[92995] <Error>: CGContextRestoreGState: invalid context 0x0
gnuplot[92995] <Error>: CGContextSetRGBFillColor: invalid context 0x0
gnuplot[92995] <Error>: CGContextShowGlyphsAtPoint: invalid context 0x0
gnuplot[92995]:CGContextSetFont:无效的上下文0x0
gnuplot[92995]:CGContextSetFontSize:无效的上下文0x0
gnuplot[92995]:CGContextSetTextMatrix:无效的上下文0x0
gnuplot[92995]:CGContextSaveGState:无效的上下文0x0
gnuplot[92995]:CGContextSetCompositeOperation:上下文0x0无效
gnuplot[92995]:CGContextFillRects:无效的上下文0x0
gnuplot[92995]:CGContextRestoreGState:无效的上下文0x0
gnuplot[92995]:CGContextSetRGBFillColor:无效上下文0x0
gnuplot[92995]:CGContextShowGlyphsAtPoint:无效上下文0x0
gnuplot[92995]:CGContextSetFont:无效的上下文0x0
gnuplot[92995]:CGContextSetFontSize:无效的上下文0x0
gnuplot[92995]:CGContextSetTextMatrix:无效的上下文0x0
gnuplot[92995]:CGContextSaveGState:无效的上下文0x0
gnuplot[92995]:CGContextSetCompositeOperation:上下文0x0无效
gnuplot[92995]:CGContextFillRects:无效的上下文0x0
gnuplot[92995]:CGContextRestoreGState:无效的上下文0x0
gnuplot[92995]:CGContextSetRGBFillColor:无效上下文0x0
gnuplot[92995]:CGContextShowGlyphsAtPoint:无效上下文0x0

是否需要设置更多的参数,或者我定义的参数不正确?

gnuplot脚本看起来不错,错误与
libcairo
有关。您有哪些版本的
gnuplot
libcairo
以及哪些操作系统?我正在OsX 10.7.5上使用
gnuplot
4.6。我似乎不知道如何确定我有哪个版本的
libcairo
我也不知道,我不在OSX上工作。也许你的问题与你的工作有关?