Taking figures made in RATS into latex

For questions and discussion related to graphs, reports, and other output, including issues related to presenting or publishing results.
indrani_5
Posts: 50
Joined: Tue Apr 12, 2016 10:09 pm

Taking figures made in RATS into latex

Unread post by indrani_5 »

How do I take the figures or impulse response figures made in RATS into latex? I tried adobe and EPS formats (those are the options thrown up when we try to save any figure in RATS) but with no success.
TomDoan
Posts: 7814
Joined: Wed Nov 01, 2006 4:36 pm

Re: Taking figures made in RATS into latex

Unread post by TomDoan »

I use PDF all the time.
\begin{figure}[tbp]
	\centering
		\includegraphics[width=4.5in,height=2.8in]{gr_TrendOverfit.pdf}
	\caption{Local Trend Overfit}
	\label{fig:LocalTrendOverfit}
\end{figure}
indrani_5
Posts: 50
Joined: Tue Apr 12, 2016 10:09 pm

Re: Taking figures made in RATS into latex

Unread post by indrani_5 »

When I tried to save the figure in pdf format, it says 'error in ghostscript'. How do I resolve this?
TomDoan
Posts: 7814
Joined: Wed Nov 01, 2006 4:36 pm

Re: Taking figures made in RATS into latex

Unread post by TomDoan »

Unfortunately "error in Ghostscript" is an error in Ghostscript, which isn't our program. You should check that you have a recent version of Ghostscript and that the GHOSTSCRIPT environment variable is pointed to the correct console version of that.

You can also save as an EPS file and use either Ghostscript directly or something like EPS2PDF to translate it to PDF.
Post Reply