Graphics, Figures & Tables ⇒ .JPG and .eps images in the same file.
Re: .JPG and .eps images in the same file.
In addition to what has been suggested, I would like to add a suggestion : try the pslatex terminal in gnuplot. With that your legends, axes labels can be typeset as in LaTeX.
Regards,
sridhar
Regards,
sridhar
OS: Debian/GNU Linux; LaTeX System : TeXLive; Editor : Vim
NEW: TikZ book now 40% off at Amazon.com for a short time.

.JPG and .eps images in the same file.
Sorry I have been away for a while...localghost wrote: Usually GnuPlot sets the right bounding box. But I don't know which terminal you are using for the output. When I used it to get my data sets plotted, I set the terminal to postscript.The GnuPlot manual shows that there are many more terminals (also pdf). The job is simplified by using the gnuplottex package. Nowadays I use pgfplots (based on pgf/tikZ) or pstricks to generate plots. The advantage is a better consistency of the whole document since the default font is used.Code: Select all
set term post eps enhanced
I am using:
Code: Select all
set term post eps enhanced
Re: .JPG and .eps images in the same file.
Hello,
I am trying to use gnoplottex for my graphs. I have a problem. When I compile I get the error Shell escape not enabled. I am using the --enable-write18 in the field 'Command line arguments to pass to the compiler' for the output profile I am using (LaTeX to pdf).
any suggestions?
thanks
I am trying to use gnoplottex for my graphs. I have a problem. When I compile I get the error Shell escape not enabled. I am using the --enable-write18 in the field 'Command line arguments to pass to the compiler' for the output profile I am using (LaTeX to pdf).
any suggestions?
thanks
- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
.JPG and .eps images in the same file.
Make sure that you prepared the gnuplottex package for usage with MikTeX.
See the manual for details. For direct compilation to PDF you should use the pdf terminal instead of postscript. See the Gnuplot manual for details.
There is some preliminary work to do before everything works fine. These steps require that you know how to handle your operating system. The file REAMDE.Windows in the Gnuplot archive suggests to use the pgnuplot.exe executable for external calls. Rename this file to gnuplot.exe so that the compiler can find it. But that is not enough. The path to the Gnuplot executables has to be added to the PATH environment variable of your system.
Code: Select all
\usepackage[miktex]{gnuplottex}
There is some preliminary work to do before everything works fine. These steps require that you know how to handle your operating system. The file REAMDE.Windows in the Gnuplot archive suggests to use the pgnuplot.exe executable for external calls. Rename this file to gnuplot.exe so that the compiler can find it. But that is not enough. The path to the Gnuplot executables has to be added to the PATH environment variable of your system.
How to make a "Minimal Example"
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
.JPG and .eps images in the same file.
Hi,
I did everything you said. Renamed pgnuplot.exe to gnuplot.exe, set the environment variable path to the bin folder of gnuplot.
I have a doubt about the terminal. I set the terminal as follows in my .tex file:
Is that correct or do I need to do something in gnuplot itself?
I still get the following warning:
"package gnuplottex Waring:Conversion of thesys-gnuplottex-fig1.gnuplot failed. please convert thesys-gnuplottex-fig1.gnuplot manually".
At least I don't get the "shell escape not enabled" warning any more.
I did everything you said. Renamed pgnuplot.exe to gnuplot.exe, set the environment variable path to the bin folder of gnuplot.
I have a doubt about the terminal. I set the terminal as follows in my .tex file:
Code: Select all
\begin{gnuplot}[terminal=pdf]
plot sin(x)
\end{gnuplot}
I still get the following warning:
"package gnuplottex Waring:Conversion of thesys-gnuplottex-fig1.gnuplot failed. please convert thesys-gnuplottex-fig1.gnuplot manually".
At least I don't get the "shell escape not enabled" warning any more.
- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
Re: .JPG and .eps images in the same file.
Belated reply because I forgot this topic and now stumbled upon it. I get the same error. That's very strange. Obviously the package doesn't work with every Gnuplot terminal. I suggest to contact the author of the package.
How to make a "Minimal Example"
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10