Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I include greek letter in gnuplot?

Tags:

gnuplot

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

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

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

like image 774
user42298 Avatar asked Jul 09 '14 07:07

user42298


People also ask

How do you type a Greek letter?

To create any of these Greek letters using the Alt codes, simply press the "Alt" key while simultaneously typing the listed number. For example, to create the Greek letter Alpha (α), press the "Alt" key and type 224 using the keypad at the right side of your keyboard.

How do you type the Greek letter sigma?

You can press the Alt key in combination with numbers on the numeric keypad to insert the Sigma symbol: Press Alt + 229 to enter lower case Sigma (σ) Press Alt + 228 to enter upper case or capital letter Sigma (Σ)

How do I put Greek letters on a Matlab plot?

Display a superscript in the title using the ^ character. The ^ character modifies the character immediately following it. Include multiple characters in the superscript by enclosing them in curly braces {} . Include the Greek letters α and μ in the text using the TeX markups \alpha and \mu , respectively.


1 Answers

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

  1. When setting the terminal

    set terminal ... enhanced
    
  2. After setting the terminal with

    set termoption enhanced
    
  3. Explicitely for a single label

    set xlabel '{/Symbol a}' enhanced
    

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 'α'
like image 173
Christoph Avatar answered Nov 14 '22 04:11

Christoph