Graphics, Figures & TablesGnuplot + subfigure

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
bagbyte
Posts: 3
Joined: Tue Nov 09, 2010 1:54 pm

Gnuplot + subfigure

Post by bagbyte »

Hi everybody,
i'm using gnuplot with latex terminal to generate .tex file with graph.
I need to put 2 graph side by side, like subfigure environment.
How can i do it? Should i resize the figure generated from gnuplot in latex?

The gnuplot generated file start with:

Code: Select all

\setlength{\unitlength}{0.240900pt}
\ifx\plotpoint\undefined\newsavebox{\plotpoint}\fi
\sbox{\plotpoint}{\rule[-0.200pt]{0.400pt}{0.400pt}}%
\begin{picture}(1500,900)(0,0)
\sbox{\plotpoint}{\rule[-0.200pt]{0.400pt}{0.400pt}}%
\put(191.0,131.0){\rule[-0.200pt]{300.643pt}{0.400pt}}
And in latex i use the \input{filename} to recall it

Please help me!
Thank you!
Last edited by bagbyte on Thu Nov 11, 2010 11:35 am, 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.

php1ic
Posts: 192
Joined: Wed Jan 28, 2009 8:17 pm

Gnuplot + subfigure

Post by php1ic »

You could use gnuplot to create the subfigures

Code: Select all

set multiplot
set size 0.5,1
set origin 0,0
plot x**2
set origin 0.5,0
plot x**3
unset multiplot
Then you can include the output in latex like a single figure.
bagbyte
Posts: 3
Joined: Tue Nov 09, 2010 1:54 pm

Re: Gnuplot + subfigure

Post by bagbyte »

thank you!
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Gnuplot + subfigure

Post by localghost »

Now that the problem seems to be solved (in some way), please be so kind and mark the topic (not the last post) accordingly as clearly written in Section 3 of the Board Rules (to be read before posting). Please keep that in mind for the future so that further reminders will not be necessary.


Best regards and welcome to the board
Thorsten
Post Reply