Display underscore rather than subscript in gnuplot titles

前端 未结 5 1531
终归单人心
终归单人心 2021-02-04 01:36

Short question: How do I display the _ (underscore) character in a title in gnuplot that is assigned from a variable name in gnuplot?

5条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2021-02-04 02:03

    I had the same problem about the underscore in the title: such as I needed to write 4_3 subframe and I needed the enhanced postscript. The SIMPLEST way turned out to be from the adjacent post: ``If you are using the enhanced eps terminal, that is the reason you need to escape the underscore in the first place. There was another related question today which explains the issue a bit." - How is @ produced in gnuplot? So, I followed their advice and this worked:

    plot 'LC.stats' u 3:4 ti "{/=15 1350 stars in C18 4\_3 subframe}" - Double escape character before the underscore.

提交回复
热议问题