如何在gnuplot中包含希腊字母? [英] How do I include greek letter in gnuplot?

查看:658
本文介绍了如何在gnuplot中包含希腊字母?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用ubuntu 14.04和gnuplot-x11,发现对于希腊字母alpha,

I'm using ubuntu 14.04 and gnuplot-x11, and found that for greek letter alpha,

{/symbol a}可以工作,但这只是向我显示{/symbol a},而不是希腊字母alpha.

{/symbol a} will work, but that just shows me {/symbol a}, not greek letter alpha.

我尝试了{\ symbol a}或其他选项,但这不起作用.

I tried {\symbol a} or other options, but that does not work..

推荐答案

使用语法{/Symbol a}要求您启用enhanced模式.这可以通过几种方式完成:

Using the syntax {/Symbol a} requires that you enable the enhanced mode. This can be done in several ways:

  1. 设置终端时

  1. When setting the terminal

set terminal ... enhanced

  • 将终端设置为

  • After setting the terminal with

    set termoption enhanced
    

  • 明确表示单个标签

  • Explicitely for a single label

    set xlabel '{/Symbol a}' enhanced
    

  • 根据您使用的输出终端,最好的选择是使用utf-8编码并直接输入字符:

    Depending on the output terminal you are using, the best option is to use utf-8 encoding and directly input the characters:

    set encoding utf8
    set xlabel 'α'
    

    这篇关于如何在gnuplot中包含希腊字母?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

    查看全文
    登录 关闭
    扫码关注1秒登录
    发送“验证码”获取 | 15天全站免登陆