This problem does not occur if you are using pdflatex, but if, like me, you are using latex followed by dvipdf or dvips, you'll need to fix the .eps files to prevent them overriding the global document settings (which you may have set using the hyperref package).
The issue was discussed on a mailing list in 2007 and I've created a bug report about it in the gnuplot bug tracker. As a quick fix I've written a small shell script which will remove a line to set the docinfo and prevent the problem occuring, which you can see below.
#!/bin/bash
for epsFile in "$@"
do
sed '/\/DOCINFO pdfmark/d ' ${epsFile} > ${epsFile}.tmp
mv ${epsFile}.tmp ${epsFile}
done
It works!
ReplyDeleteThank you man!
You helped me a lot!