Editing Enable UTF-8 text support for Gnuplot's x11 terminal
Jump to navigation
Jump to search
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 1: | Line 1: | ||
By default, Gnuplot's X11 terminal does not support UTF-8 characters when displaying text labels or setting plot titles. | |||
To enable support for UTF-8, add the lines below to your {{Codeline|~/.Xdefaults}}. | |||
<code> | |||
! gnuplot settings | |||
gnuplot*font: mbfont:-misc-fixed-medium-r-normal-*-*-*-100-100-*-*-iso10646-* | |||
gnuplot*encoding: utf-8 | |||
</code> | |||
To enable these settings, type the following command at the shell prompt. | |||
<code> | |||
xrdb -merge .Xdefaults | |||
</code> | |||
To avoid having to type this command repeatedly, the command may be placed in your shell script resource file, {{Codeline|~/.profile}} for example. | |||
[[Category:Plotting tutorials]] |