Reputation: 13
I generated an image with gnuplot using epslatex as terminal.
set term epslatex "enhanced"
Two files are created, a .tex file and a .eps file. When I insert the image in my LaTex document, and I build latex->pdf, everything is very nice but the fonts are too big, the following fonts:
1. xlabel, ylabel, zlabel
2. xtics, ytics, ztics
3. title
4. key
are all too big, they are basically the same size (and type) of the LaTex document (10pt). How could I make them smaller? I am sure it is not changing each of them in the gnuplot file, it needs to be something in the terminal options. I tried (removing "enhanced")
set terminal epslatex font ',8'
but nothing change, same fonts as before. In the Warnings in LaTex I get:
pdflatex> LaTeX Font Warning: Font shape `OT1/enhanced/m/n' undefined
pdflatex> (Font) using `OT1/cmr/m/n' instead on input line 8
and then also:
pdflatex> LaTeX Font Warning: Some font shapes were not available, defaults substituted.
what can I do? Thanks
Upvotes: 1
Views: 801
Reputation: 971
You can use one of the following ways to control the size of the text in the plot
set xlabel "\\begin{<size>} <your_label> \\end{<size>}"
you can use the common size
identifiers of LaTeX \tiny \scriptsize \footnotesize \small \normalsize \large \Large \LARGE \huge \Huge
, which gives you control and uniformity of the font size over the whole document.
You can also use set ylabel "\\scalebox{<factor>}{ <your_label> }"
where factor is a real number, the thing with this method is that it can be a little hard to predict the final font size without testing it several times and adjusting the value of factor.
And the double backslash is to escape the backslash itself in gnuplot
Upvotes: 1