victor
victor

Reputation: 685

how to set key font size in gnuplot?

How to set key(legend) font size in gnuplot?

I read the gnuplot introduction file and find no related configuration about this property. I can set font type and size for labels, tics, but only key can not be set the font?

Upvotes: 38

Views: 97786

Answers (3)

Boo
Boo

Reputation: 1

You can also set and unset key font depending on your needs, for example, I needed a title and label bigger than the sizes of the tag labels inside the plot:

set terminal svg size 300, 480\
set termoption enhanced\
set key font "Times New Roman, 18"\
....\
unset key\
set key font "Times New Roman, 14"\
plot ''  ... title "Cd-4d". **<--**  This is smaller than the other labels

Upvotes: 0

phlyming
phlyming

Reputation: 71

For older gnuplot versions like 4.2, you can do:

set terminal enhanced font "Helvetica,18"

It will apply to any textual labels in the terminal.

Upvotes: 7

Woltan
Woltan

Reputation: 14023

The font for the key can be set in gnuplot 4.4. For example:

set key font ",20"

would set the size of the font to 20.

Upvotes: 57

Related Questions