gnuplot: subtitle with smaller fontsize

后端 未结 2 1243
深忆病人
深忆病人 2021-02-08 05:24

Does somebody know how you can insert a subtitle with a smaller fontsize in gnuplot?

Currently, the way I create a subtitle is by using \\n in the title. A

相关标签:
2条回答
  • 2021-02-08 05:58

    This works for the postscript terminal at least (for some reason x11 didn't want to scale my font. Perhaps it is a bug...):

    set term <whatever> enhanced
    set output "<whatever.ext>"
    set title "Big Title\n{/*0.5 subtitle}"
    

    The {/*0.5} scales the fontsize to be half of the current active fontsize. You can also specify fontsizes explicitly:

    set title "{/=20 Big} Medium {/=5 Small}"
    

    Or you can change the font for a region of text:

    set title "{/Helvetica foo} {/Symbol G}"
    

    These forms can be combined to change the font and size in a particular region of text as well:

    set title "This is a big gamma {/Symbol=20 G}"
    

    For more information about enhanced text, see help enhanced.

    0 讨论(0)
  • 2021-02-08 06:10

    You can use label. You have to experiment a bit with its proper placement by at:

    set title "Big Title"
    set label "Subtitle" at screen 0.5, 0.9 font "Arial,8"
    plot sin(x)
    
    0 讨论(0)
提交回复
热议问题