Graphics, Figures & TablesGnuplot LaTeX Output

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
User avatar
devilsadvocate
Posts: 13
Joined: Thu Jun 16, 2011 10:21 pm

Gnuplot LaTeX Output

Post by devilsadvocate »

Hi,

I am using gnuplot latex mode of writing. While I am plotting in gnuplot, I am getting my ylabel oriented correctly (text parallel to y-axis). But when I am writing out the .tex file, the text is not rotated. Did anybody face this. How to solve this ?

Regards,
Last edited by devilsadvocate on Fri Jun 17, 2011 8:53 pm, edited 1 time in total.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

User avatar
shadgrind
Posts: 140
Joined: Thu Jul 16, 2009 12:39 am

Gnuplot LaTeX Output

Post by shadgrind »

I've never had that problem. See if my post here helps you.
System: TeX Live 2012, Fedora 18 x86_64, GNU Emacs 24.2
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Gnuplot LaTeX Output

Post by localghost »

Think about alternatives by LaTeX packages [1,2]. So you could evade these problems.

[1] View topic: Axis Labels of EPS File missing?
[2] View topic: Math formatting in Gnuplot Graph


Thorsten
User avatar
devilsadvocate
Posts: 13
Joined: Thu Jun 16, 2011 10:21 pm

Gnuplot LaTeX Output

Post by devilsadvocate »

Thanks Everybody for help! It worked out. The issue was I was using terminal latex instead of epslatex.

Now another come. I am including generated files in my dokument, like as follows:

Code: Select all

\begin{figure}[!ht]
\centering
\input{RESULTS/myGoat.tex}
\caption{Get a Free Goat!}
\label{img:this_goat_is_free}
\end{figure}
There is now no control in size of my figure. Any solution ?
I am gonna include these as sub-figures.

Regards,
User avatar
shadgrind
Posts: 140
Joined: Thu Jul 16, 2009 12:39 am

Gnuplot LaTeX Output

Post by shadgrind »

Put your \input command inside a \scalebox command. For example, to make the graph 75% its original size:

Code: Select all

\begin{figure}[!ht]
\centering
\scalebox{0.75}{\input{RESULTS/myGoat.tex}}
\caption{Get a Free Goat!}
\label{img:this_goat_is_free}
\end{figure}
System: TeX Live 2012, Fedora 18 x86_64, GNU Emacs 24.2
User avatar
devilsadvocate
Posts: 13
Joined: Thu Jun 16, 2011 10:21 pm

Re: Gnuplot LaTeX Output

Post by devilsadvocate »

This worked!
I can now get rid of my MATLAB plot outputs.
Thanks for the help

Regards,
Post Reply