gnuplot 给出了关于大小的错误,但包括了约束
gnuplot gives error about size but the constraints are included
我正在使用 gnuplot 创建一个从 powershell 调用它的图表。
我执行以下操作作为脚本的开头
reset
set term windows color enhanced size 22cm, 12cm font 10
但是每次我尝试加载文件时都会出错
gnuplot> load 'draw.sh'
gnuplot> set terminal windows color enhanced size 22cm, 12cm font 10
^
"draw.sh" line 2: size requires 'width,heigth'
为什么会出现错误以及如何解决?
原剧本包括:
reset
set term postscript enhanced color size 22cm, 12cm font 10
而这个并没有报错。我需要 windows 的终端,原始脚本是 Mac 上的 运行。我不知道为什么这不起作用。
来自help term windows
... size defines the width and height of the window's drawing area in
pixels, ...
因此,因为显示器单位是像素,去掉单位厘米。
set terminal windows color enhanced size 640, 320 font 10
我正在使用 gnuplot 创建一个从 powershell 调用它的图表。 我执行以下操作作为脚本的开头
reset
set term windows color enhanced size 22cm, 12cm font 10
但是每次我尝试加载文件时都会出错
gnuplot> load 'draw.sh'
gnuplot> set terminal windows color enhanced size 22cm, 12cm font 10
^
"draw.sh" line 2: size requires 'width,heigth'
为什么会出现错误以及如何解决?
原剧本包括:
reset
set term postscript enhanced color size 22cm, 12cm font 10
而这个并没有报错。我需要 windows 的终端,原始脚本是 Mac 上的 运行。我不知道为什么这不起作用。
来自help term windows
... size defines the width and height of the window's drawing area in pixels, ...
因此,因为显示器单位是像素,去掉单位厘米。
set terminal windows color enhanced size 640, 320 font 10