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}
Learn LaTeX easily with newest books:
The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis
The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more
LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis
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}
Learn LaTeX easily with newest books:
The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis
The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more
LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis