Most output terminals of gnuplot draw different lines in a plot in different colors.
I'm trying to create a plot inside my PDF document using gnuplot's LaTeX terminal and the lines are only distinguishable by linestyle.
What do I need to do to get the lines colored?
I use pdflatex.
From this example:
\documentclass{scrreprt}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{lmodern}
\usepackage[miktex]{gnuplottex}
\usepackage{graphicx}
\begin{document}
\begin{figure}[htbp]
\centering
\begin{gnuplot}[terminal=latex]
plot [0:2*pi] sin(x) title 'Sine', cos(x) title 'Cosine'
\end{gnuplot}
\end{figure}
\end{document}
I get this result:

@texenthusiast provides part of the solution: set the options [terminal=epslatex,terminaloptions=color] when using gnuplot.
And don't forget to load epstopdf in your preamble:
\usepackage{epstopdf}
The lines in the plot will now be colored but still have different styles.

To give them the same style you can now use something like
set style line 1 linecolor rgb '#0060ad' linetype 1 linewidth 2
set style line 2 linecolor rgb '#dd181f' linetype 1 linewidth 2
plot [0:2*pi] sin(x) with lines ls 1 title 'Sine', cos(x) with lines ls 2 title 'Cosine'


terminal=pdfshould give default gnuplot colors – texenthusiast Aug 23 '13 at 15:16[terminal=epslatex,terminaloptions=color]which can get TeX typset the labels and title as @Marco said. – texenthusiast Aug 23 '13 at 15:32latexterminal export it gives out picture environment without any colors and does not understand the default colors of gnuplot. I will have to see if gnuplot can do it or exported .tex file has to manually edited to add color packages and userdefined colors – texenthusiast Aug 23 '13 at 16:49solidterminal option, i.e.[terminal=epslatex, terminaloptions=color solid]. And in case you ever want colored text, for theepslatexterminal there is an additionalcolortextoption to enable this. – Christoph Aug 23 '13 at 22:34