Subject: | Should set font and encoding preliminarily |
The following works well:
gnuplot({'title' => 'Google positions',
'xdata' => 'time',
'timefmt' => '%Y-%m-%d',
'x-axis label' => 'Date',
'y-axis label' => 'Position',
'output file' => undef,
'output type' => 'png',
'yrange' => "[$min:$max] reverse",
'extra_opts' => join "\n", ('set encoding utf8', 'set format x
"%d-%b-%Y"', 'set ytics 1', 'set xtics 86400', 'set term png font
"Arial,12"', 'set key font
"/usr/local/lib/X11/fonts/webfonts/arial.ttf"', 'unset mxtics'),
},
@graphs);
But when I replace 'x-axis label' and 'y-axis label' with strings in
Russian language it shows a nonsense in the labels. I am unsure but
suppose that extra_opts setting Russian encoding runs after setting the
labels and thus has no effect.