Open ghost opened 8 years ago
Hi AleksandrIanevski,
You are right, saveLatex()
can only generate 1 gif plot in one page.
The fastest way to save two gif plots in one pdf with 2 pages is merging the two pdf files (on Windows).
On linux, we can put two brownian.motion()
gif plots in a tex file and compile it with pdftex.
\documentclass{article}
%use geometry and animate package
\usepackage[papersize={7in,7in},margin=0.3in]{geometry}
\usepackage{animate}
\begin{document}
% figure 1
\begin{figure}
\begin{center}
\animategraphics[controls,loop,width=0.95\textwidth]{10}{BM}{0}{9}
\end{center}
\end{figure}
% figure 2
\begin{figure}
\begin{center}
\animategraphics[controls,loop,width=0.95\textwidth]{10}{BM}{0}{9}
\end{center}
\end{figure}
\end{document}
We need implement another function to support 'one pdf multiple animation'. We will add this feature in the future, as more users request for it.
Dear Yihui Xie,
I have not found a possibility to save two gif plots in one pdf with 2 pages (plot per page) in the saveLatex function. The only solution I came up with is merging of two resulting pdfs (each comprises one plot). Is it the only way?
Thank you very much indeed.