gnuplot,输出图形大小

gnuplot,输出图形大小,plot,size,gnuplot,Plot,Size,Gnuplot,我曾尝试用png或ps设置输出图形大小,但都不起作用。我在终端上得到了随机的表情符号和符号(gnuplot v.5.2) 我在wxt终端中通过load scriptname执行的脚本: reset set term png size 800,400 set ylabel "name1" set xlabel font ",16" set ylabel font ",16" set xtics font ",16"

我曾尝试用png或ps设置输出图形大小,但都不起作用。我在终端上得到了随机的表情符号和符号(gnuplot v.5.2)

我在wxt终端中通过
load scriptname
执行的脚本:

reset
set term png size 800,400
set ylabel "name1" 
set xlabel  font ",16"
set ylabel  font ",16"
set xtics font ",16"
set ytics font ",16"
set title "title" offset 0,-3.5
set title font ",16"
set key font ",14"
set xlabel "name 2" 
set ytics (11, 12, 13, 14)
set xtics 0.5
#set nokey
set key left 

如果没有
set term png size 800400
line(值仅用于示例),它将完美地执行绘图,如果我通过鼠标展开绘图,它也可以工作,但我希望生成许多大小相同但大于默认值的绘图。每次用鼠标展开都无法生成相同大小的绘图。

获取PNG文件基本上有两种方法:

  • 在wxt终端中显示图形(并对其进行优化,直到您喜欢为止)。然后将其另存为文件(在我的例子中,我有PNG、PDF、SVG或EMF选项)

  • 设置PNG终端并设置输出文件名。输出将直接写入文件,而不会显示在wxt终端中

  • 在wxt终端中输出并手动另存为PNG

    reset session
    set term wxt size 1000,500   # or any other size you want
    plot sin(x)
    
    reset session
    set term pngcairo size 1000,500   # or any other size you want
    set output "myOutput.png"
    plot sin(x)
    set output
    

    直接输出到PNG

    reset session
    set term wxt size 1000,500   # or any other size you want
    plot sin(x)
    
    reset session
    set term pngcairo size 1000,500   # or any other size you want
    set output "myOutput.png"
    plot sin(x)
    set output
    

    你想要什么?wxt终端中的图形,您可以将其保存为PNG或直接保存PNG文件,而无需在交互式wxt终端中显示图形?