1,847
edits
(Fix font spec) |
No edit summary |
||
Line 1: | Line 1: | ||
By default, Gnuplot's X11 terminal does not support UTF-8 characters when displaying text labels or setting plot titles. | 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 {{ | To enable support for UTF-8, add the lines below to your {{Path|~/.Xdefaults}}. | ||
< | <syntaxhighlight> | ||
! gnuplot settings | ! gnuplot settings | ||
gnuplot*font: mbfont:-misc-fixed-medium-r-normal-*-*-*-100-100-*-*-iso10646-* | gnuplot*font: mbfont:-misc-fixed-medium-r-normal-*-*-*-100-100-*-*-iso10646-* | ||
gnuplot*encoding: utf-8 | gnuplot*encoding: utf-8 | ||
</ | </syntaxhighlight> | ||
To enable these settings, type the following command at the shell prompt. | To enable these settings, type the following command at the shell prompt. | ||
< | <syntaxhighlight> | ||
xrdb -merge .Xdefaults | xrdb -merge .Xdefaults | ||
</ | </syntaxhighlight> | ||
To avoid having to type this command repeatedly, the command may be placed in your shell script resource file, {{ | To avoid having to type this command repeatedly, the command may be placed in your shell script resource file, {{Path|~/.profile}} for example. | ||
[[Category:Plotting tutorials]] | [[Category:Plotting tutorials]] |