I am plotting graphs in gnuplot with epslatex terminal. Here is my .plt script :
set terminal epslatex size 2.5,2.5 color blacktext
set output 'xxx.tex'
set format x '$10^{%T}$'
set format y '${%1.1t}^{*}10^{%T}$'
set ytics add ('0' 0)
set xlabel "xxx"
set ylabel "xxx"
set logscale x
set key below
plot "xxx.dat" using 1:2 title 'xxx' pt 4 ps 2 lc 1
set output
And here is my .tex file where it is embedded :
\documentclass[10pt]{article}
\usepackage[pdftex]{graphicx}
\usepackage{epstopdf}
\usepackage[cp1252]{inputenc}
\usepackage{color}
\begin{document}
\begin{figure}[h!]
\fontsize{6}{2}\selectfont
\input{xxx.tex}
\end{figure}
The resulting graph is fine, but with additional white space due to the reduced font size : plot
I tried the command "ylabel offset", but it just moves the white space to the left and does not resize the actual plot.
I also tried lmargin, but then the ylabel exits the figure space.
Putting \footnotesize in ylabel gave a worst result (ytics were poorly placed above y axis).
Would anyone have any tips on how to set the white space to a minimal value and optimize the plot? Ideally, it would be a command to set the spacing between ytics and ylabel to a fixed value...
Thank you
lmargin
smaller so that the is less space to the left of the y-axis, and then useylabel offset
to move the y axis label to the right. - user8153terminal epslatex standalone font ",6"
- Christoph