Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do you use gnuplot's built-in fonts?

Tags:

gnuplot

The gnuplot docs have this to say about fonts:

    Five basic fonts are supported directly by the gd library. These are
    `tiny` (5x8 pixels), `small` (6x12 pixels), `medium`, (7x13 Bold), 
    `large` (8x16) or `giant` (9x15 pixels).

But when i try to use one:

    gnuplot> set terminal png font tiny

I get:

    Could not find/open font when opening font tiny, using default

How do I use these seemingly built-in fonts?

like image 444
raldi Avatar asked Oct 15 '22 18:10

raldi


1 Answers

The problem was that, for these fonts for some reason, you don't use the standard syntax I tried above:

gnuplot> set terminal png font tiny

But instead, you drop the word "font" for these five special fonts:

gnuplot> set terminal png tiny
like image 53
raldi Avatar answered Oct 18 '22 12:10

raldi