Code: Select all
\documentclass{article}
\usepackage{gnuplottex}
\begin{document}
\begin{gnuplot}
set key left
plot [-2:2] x,x**2
\end{gnuplot}
\end{document}
Does anyone know of a way I can get the graph to have color?
Code: Select all
\documentclass{article}
\usepackage{gnuplottex}
\begin{document}
\begin{gnuplot}
set key left
plot [-2:2] x,x**2
\end{gnuplot}
\end{document}
NEW: TikZ book now 40% off at Amazon.com for a short time.
I've heard there's a way to do it with PSTricks. I'll keep a lookout.terminal "latex" does not support continuous colors.
Code: Select all
\documentclass{article}
\usepackage{gnuplottex}
\begin{document}
\begin{gnuplot}
set terminal epslatex color
set title 'Color graphs with gnuplottex'
set key left
plot [0:3*pi][-2:2] sin(x), cos(x)
\end{gnuplot}
\end{document}
NEW: TikZ book now 40% off at Amazon.com for a short time.