gnuplot:如何更改超文本的字体大小?

gnuplot:如何更改超文本的字体大小?,gnuplot,Gnuplot,到目前为止,我找不到任何关于如何更改超文本字体大小的文档 来自帮助超文本,其中没有任何关于字体大小的说明 以下使用font“,30”没有任何效果: plot 'data' using 1:2:0 with labels font ",30" hypertext point pt 7 除此之外,帮助标签列出了以下语法的可能性 但是,这项测试和下面的所有测试并没有得到预期的结果:标签和tics的大小是标准的,而只有超文本的大小是更大的 最后一次测试的结果是大的超文本和小的标签/

到目前为止,我找不到任何关于如何更改超文本字体大小的文档

来自
帮助超文本
,其中没有任何关于字体大小的说明

以下使用
font“,30”
没有任何效果:

plot 'data' using 1:2:0 with labels font ",30" hypertext point pt 7
除此之外,
帮助标签
列出了以下语法的可能性

但是,这项测试和下面的所有测试并没有得到预期的结果:标签和tics的大小是标准的,而只有超文本的大小是更大的

最后一次测试的结果是大的超文本和小的标签/图片,但图形的比例很难看。有什么解决办法吗

代码:

### hypertext font size

# Test1: 
reset session
set title "default terminal "   # in my case wxt
plot '+' u 1:($1**2):($1**2) w labels font ",30" hypertext point pt 7 ps 3 lc rgb "red" notitle
pause -1

# Test2: 
reset session
set term wxt font ",10"
set title "explicitely set wxt terminal" font ",10"
plot '+' u 1:($1**2):($1**2) w labels font ",30" hypertext point pt 7 ps 3 lc rgb "red" notitle
pause -1

# Test3: 
reset session
set title "only labels without hypertext using {/=30 } syntax"
plot '+' u 1:($1**2):(sprintf("{/=30 %d}",$1**2)) w labels hypertext point pt 7 ps 3 lc rgb "red" notitle
pause -1

# Test4: 
reset session
set term wxt font ",30"
set title "setting terminal font to 30"
plot '+' u 1:($1**2):($1**2) w labels hypertext point pt 7 ps 3 lc rgb "red" notitle
pause -1

# Test5: 
reset session
set term wxt font ",30"
set title "setting terminal font to 30 and the labels to 10 again" font ",10"
set xlabel font ",10"
set ylabel  font ",10"
set xtics font ",10"
set ytics font ",10"
plot '+' u 1:($1**2):($1**2) w labels hypertext point pt 7 ps 3 lc rgb "red" notitle
### end of code

这是分布式演示“hypertext.dem”在修改绘图命令(如图所示)以指定与默认字体分开的超文本字体后,qt终端上显示的屏幕截图:

gnuplot> load 'hypertext.dem'
gnuplot> ^C
gnuplot> plot 'cities.dat' using 5:4:(City(1,3)):(Scale(3)) with labels hypertext \
                     point pt 7 ps var lc rgb "#ffee99" font "VladimirScript,20", \
              'cities.dat' using 5:4:(strcol(1)) with labels font ",5"

相同的命令适用于wxt终端


该命令或多或少也适用于svg终端,但我从未想到如何调整svg超文本的边框以适应更改后的字体大小。

hmmm,不,不适用于我。添加例如
font“Arial,20”
或类似的内容不会改变我上面的示例1和示例2中的任何内容。gnuplot 5.2.8,Windows,wxt终端。我只测试了5.4,所以是的,这可能是自5.2.8以来的一次更改/修复。谢谢!我懂了。我不知道如何从Windows的源代码和5.4的Windows二进制文件生成版本。目前还没有。我将在它们可用时进行测试。我下载了5.4 Windows测试二进制文件,它似乎在那里工作。非常感谢。
### hypertext font size

# Test1: 
reset session
set title "default terminal "   # in my case wxt
plot '+' u 1:($1**2):($1**2) w labels font ",30" hypertext point pt 7 ps 3 lc rgb "red" notitle
pause -1

# Test2: 
reset session
set term wxt font ",10"
set title "explicitely set wxt terminal" font ",10"
plot '+' u 1:($1**2):($1**2) w labels font ",30" hypertext point pt 7 ps 3 lc rgb "red" notitle
pause -1

# Test3: 
reset session
set title "only labels without hypertext using {/=30 } syntax"
plot '+' u 1:($1**2):(sprintf("{/=30 %d}",$1**2)) w labels hypertext point pt 7 ps 3 lc rgb "red" notitle
pause -1

# Test4: 
reset session
set term wxt font ",30"
set title "setting terminal font to 30"
plot '+' u 1:($1**2):($1**2) w labels hypertext point pt 7 ps 3 lc rgb "red" notitle
pause -1

# Test5: 
reset session
set term wxt font ",30"
set title "setting terminal font to 30 and the labels to 10 again" font ",10"
set xlabel font ",10"
set ylabel  font ",10"
set xtics font ",10"
set ytics font ",10"
plot '+' u 1:($1**2):($1**2) w labels hypertext point pt 7 ps 3 lc rgb "red" notitle
### end of code
gnuplot> load 'hypertext.dem'
gnuplot> ^C
gnuplot> plot 'cities.dat' using 5:4:(City(1,3)):(Scale(3)) with labels hypertext \
                     point pt 7 ps var lc rgb "#ffee99" font "VladimirScript,20", \
              'cities.dat' using 5:4:(strcol(1)) with labels font ",5"