YaY
YaY

Reputation: 333

Gnuplot Eps file axis cut

When I use gnuplot for some eps files I can get the some axis labels. That works. When I want to implement them into my latex document the axis discription gets cut away at the borders of the figure. It doesnt matter how large the figure is, the label letters gets cut away at the borders anyway.

How can I fix this?

Upvotes: 2

Views: 1768

Answers (2)

andyras
andyras

Reputation: 15930

Gnuplot doesn't usually size .eps files perfectly, especially if there is something going on at the margins. Thanks to this post I learned that there is a simple command to correct the bounding box to adjust to the content of the .eps:

ps2epsi input.eps output.eps

This works fine for me. There is also the fixbb script on the gnuplot homepage.

Upvotes: 1

YaY
YaY

Reputation: 333

okay, here you go:

Latex Code:

\begin{figure}[H]
    \centering
\includegraphics[scale=1] {picture.eps}
\caption{caption}
\label{fig:picture}
\end{figure}

Gnuplot

set terminal postscript enhanced portrait "Times Italic" 12 size 14cm,12cm                 #Key Character Size                           
set output 'picture.eps'
set multiplot layout 2,2

set border
set tics font "Times Italic, 10" 

set xlabel "{/Symbol e} %" font "Times Italic, 10" 
set ylabel "{/Symbol s}[MPa]" font "Times Italic, 10" rotate by -0

plot       plot exp(-x**2 / 2)
plot       plot exp(-x**2 / 2)
plot       plot exp(-x**2 / 2) 
plot       plot exp(-x**2 / 2) 

something like this should work. Then the {/Symbol s}[MPa] isnt displayed properly in the latex document.

Upvotes: 0

Related Questions