From: Kevin K. <kk...@gm...> - 2016-10-26 04:40:38
|
It is not completely clear to me how to use utf-8 symbols in my plots. Through web searching I have determined the following: 1. I need to use an enhanced output format 2. I need to set character encoding to utf-8 3. I need to ensure the gnuplot command file itself is in utf-8 Given the above, here are the commands I am using for 1. and 2.: set term png size 1600x1200 enhanced set encoding utf-8 Here is the linux command I use for part 3: iconv -f iso-8859-1 -t utf-8 -o <utf-8_file> <original_file> I want to use greek characters in my xlabels. Every example I find online says to simply copy the greek character from somewhere else and directly paste it into my gnuplot command file. The problem I have is that the text editor I am using (Nedit) does not seem to support these symbols and they appear as '?' when I try to paste them from somewhere else. This then produces a '?' character in my plot. Is there a way to specify the character using its hex code? For example, the lowercase Greek 'mu' has code 0x3BC. I tried using all of the following to reference this character: 03BC "03BC" "U+03BC" "\UO3BC" "\u03BC" But all of these strings end up being interpreted literally and do not produce a 'mu' character. Is there some specific syntax I can use to display a unicode character using its hex code? |