Thursday, September 11, 2008

Setting fonts for gnuplot

Gnuplot is very useful tool to plot graphs and other related things.
There are plently of tutorials and how-tos everywhere.

One issue i faced while generating png images was changing fonts.

I wanted to change the font type to "vera" and increase the size.

First check if this font is installed.

$yum install bitstream-vera-font

Search for where it is installed

$rpm -ql bitstream-vera-font

/usr/share/fonts/bitstream-vera

$export GDFONTPATH=/usr/share/fonts/bitstream-vera

Now in either on the gnuplot terminal or your script file just add this.

set terminal png truecolor nocrop enhanced font Vera 20



Powered by ScribeFire.

No comments: