[Univ of Cambridge] [Dept of Engineering]
next up previous contents
Up: Graphics Previous: Bitmaps

Graphs

Probably the easiest way to put complicated graphs into LATEX is to use gnuplot or Matlab, and produce encapsulated postscript output.

The ebar package (a local version of the bar package) is ok for simpler graphs. See The LATEX Companion for more details.

\begin{center}
\textbf{CUED Gopher Usage, 1994}

\begin{figure}[htbp]
\begin{barenv}
% set the 'z' axis depth
\setdepth{10}
%Scale the height
\setstretch{.01} 
% Put the numbers above the bars. Other options include 'empty', 
\setnumberpos{up}
% Set type of x labels (numbers by default) but could also be 'days'
\setxvaluetyp{month}
% Set the x origin, end, and step size
\setxaxis{1}{3}{1}\setxname{Activity}
% Set the y origin, end, and step size
\setyaxis{0}{10000}{1000}\setyname{Accesses}
\ebar{6768}{1}
\ebar{9917}{2}
\ebar{8306}{3}
\end{barenv}
\end{figure}
\end{center}

CUED Gopher Usage, 1994


\begin{figure}
\begin{barenv}
\setdepth{10}
\setstretch{.01}
\setnumberpos{up}
...
...{Accesses}
\ebar{6768}{1}
\ebar{9917}{2}
\ebar{8306}{3}
\end{barenv}\end{figure}



Tim Love
1999-08-05