<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//en">

<!–Converted with LaTeX2HTML 2022 (Released January 1, 2022) –> <HTML lang="en"> <HEAD> <TITLE>Contents of Summary &mdash; Use with LATEX</TITLE>

<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=utf-8"> <META NAME="viewport" CONTENT="width=device-width, initial-scale=1.0"> <META NAME="Generator" CONTENT="LaTeX2HTML v2022">

<LINK REL="STYLESHEET" HREF="tutorial.css">

<LINK REL="previous" HREF="node2_mn.html"> <LINK REL="up" HREF="node2_mn.html"> <LINK REL="next" HREF="node10_mn.html"> </HEAD>

<BODY bgcolor="#ffffff" text="#000000" link="#9944EE" vlink="#0000ff" alink="#00ff00">

<H2><A ID="SECTION00021000000000000000"> Summary &mdash; Use with L<SUP><SMALL>A</SMALL></SUP>T<SMALL>E</SMALL>X</A> </H2> In summary, to use the L<SUP><SMALL>A</SMALL></SUP>T<SMALL>E</SMALL>X facilities of GNUPLOT, the first command to GNUPLOT should be <BLOCKQUOTE> <TT>set terminal latex </TT></BLOCKQUOTE>and the output of GNUPLOT should be directed to a file, for example, <PRE> set output "plot.tex" </PRE> This may be anything you like but it should have a <TT>.tex</TT> extension, of course. Then the size of the plot should be given. For example, the command <PRE> set size 1,2 </PRE> tells GNUPLOT to use a 5 inch wide by 6 inch high box for the plot. The numbers given are <EM>scale factors</EM>, not the actual size. The default is 5 inches by 3 inches. This is the size of the complete plot, including all labels.

<P> When finished, the file will contain all of the plots you have specified (you probably only want one plot per file). This file can then be used in a L<SUP><SMALL>A</SMALL></SUP>T<SMALL>E</SMALL>X document, <EM>e.g.</EM>,

<P>

<PRE>

\begin{figure}\begin{center}
%
\input{plot}
\end{center} \end{figure}
</PRE>

This puts the plot into a figure.

<P> You will also want to read about the following commands: <TT>set title, set xlabel, set ylabel, set key, set label, set xtics, set ytics</TT>, and <TT>set clip</TT>. These are all described in the regular GNUPLOT manual.

<P>

<HR>

</BODY> </HTML>