Gnuplot: vertical space between series titles

▼魔方 西西 提交于 2020-01-15 07:51:19

问题


How to change the vertical space between series titles. Is it possible to separate the series titles into two groups and have a gap between them, like this one:

Thanks.


回答1:


You can insert some kind of 'dummy' plot where you want to have the white space:

set xrange [0:4]
set key left
plot x, \
     2*x t '2x', \
     NaN title ' ' lt -3,\
     3*x t '3x',\
     4*x t '4x'

The special linetype -3 doesn't draw any line at all, using linewidth 0 wouldn't work for all terminals (e.g. postscript). And the title must contain one space character, otherwise the key entry would be dismissed.



来源:https://stackoverflow.com/questions/23022770/gnuplot-vertical-space-between-series-titles

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!