Gnuplottex allows you to specify code for the gnuplot?
plotting utility within LaTeX
files. The code is extracted to intermediate files and converted to something which can be included in TeX
documents. In theory, you can use all the terminals gnuplot provides with it, so it's possible to get high quality graphs regardless of your target document format.
This package can be found at CTAN?