我们如何使用gnuplot的内置字体?
时间:2020-03-05 18:55:15 来源:igfitidea点击:
gnuplot文档中有关于字体的说法:
Five basic fonts are supported directly by the gd library. These are `tiny` (5x8 pixels), `small` (6x12 pixels), `medium`, (7x13 Bold), `large` (8x16) or `giant` (9x15 pixels).
但是当我尝试使用一个时:
gnuplot> set terminal png font tiny
我得到:
Could not find/open font when opening font tiny, using default
如何使用这些看似内置的字体?
解决方案
回答
问题是,由于某种原因,这些字体不使用我上面尝试过的标准语法:
gnuplot> set terminal png font tiny
但是,我们可以为这五种特殊字体添加单词" font":
gnuplot> set terminal png tiny