gnuplot - adjust size of key/legend

后端 未结 1 1779
执笔经年
执笔经年 2021-01-31 17:44

How do I adjust the size of the legend in gnuplot (4.6.0)? By this I mean the size of the lines and not just the font size. When I switched from the pdf to pdfcairo ter

相关标签:
1条回答
  • 2021-01-31 18:08

    To adjust the length of the samples:

    set key samplen X
    

    (default is 4)

    To adjust the vertical spacing of the samples:

    set key spacing X
    

    (default is 1.25)

    and (for completeness), to adjust the fontsize:

    set key font "<face>,<size>"
    

    (default depends on the terminal)

    And of course, all these can be combined into one line:

    set key samplen 2 spacing .5 font ",8"
    

    Note that you can also change the position of the key using set key at <position> or any one of the pre-defined positions (which I'll just defer to help key at this point)

    0 讨论(0)
提交回复
热议问题