I'm trying to use Gnuplot and package gnuplottex to create plots directly in LaTeX. Started with the following simple example
\documentclass[a4paper]{article}
\usepackage[shell]{gnuplottex}
\begin{document}
\begin{gnuplot}[terminal=pdf,terminaloptions={font ",10" linewidth 3}]
plot sin(x), cos(x)
\end{gnuplot}
\end{document}
When I run
pdflatex -synctex=1 -interaction=nonstopmode --enable-shell %.tex
I get the following warning messages:
Package gnuplottex Warning:Shell escape not enabled
Package gnuplottex Warning:Please convert example1-gnuplottex-fig1.gnuplot manually
...
No pages of output.
I'm using MikTeX, TeXmaker and Gnuplot 4.5. Any help will be much appreciated!

pdflatex -synctex=1 -interaction=nonstopmode -enable-write18 %.tex? – Jake Jan 19 '12 at 22:56--enable-write18or--shell-escape, not--enable-shell. – egreg Jan 19 '12 at 22:56pgfplotspackage? It's a very user friendly and powerful plotting package that creates plots that integrate perfectly with your document, and it can use Gnuplot as a backend (you can use raw Gnuplot code if you wish). – Jake Jan 19 '12 at 23:00\usepackage[miktex]{gnuplottex}. – Jake Jan 19 '12 at 23:07