I am trying to generate a vector graphics video in Mathematica. I stumbled upon SWF format (PNG are raster images which I'm not interested in). SWF format works fine for me but the axes and the numbers are still in raster.
Following is the minimal code in Mathematica
m = Manipulate[
Plot3D[Sin[x y + a], {x, 0, 6}, {y, 0, 6}, Mesh -> False,
ColorFunction -> "StarryNightColors"], {a, 0, 4}]
Export["C:\\animated curves\\image-.swf", m,
"Scalable" -> True, "ControlAppearance" -> None,
ImageResolution -> 300]
and to view in $\LaTeX$
\documentclass{beamer}
\usepackage{media9}
\begin{document}
\begin{frame}
\begin{center}
\includemedia[activate=onclick, width=0.5\textwidth]
{\includegraphics{image-1.png}}{image-.swf} % generate image-1.png too
\end{center}
\end{frame}
\end{document}
I could see a long list in $ExportFormats, which Mathematica supports. However, there are not a handful of vector-graphics format for which "VideoFrames" works in Export. For instance
Export["C:\\Users\\Hawk\\Desktop\\animated curves\\image-.svg", m, "VideoFrames"];
generates following warning
Export::imgseqfmt: SVG is not an export format supported by "VideoFrames." >>
Similar warning appear for EPS format. If there might exist a better solution than SWF from the big pool available in Export, please let me inform.
Exportindividual files and use an extrnal tool to assemble – george2079 Dec 07 '15 at 12:47Exportworks fine (I usedTableinstead ofManipulate). Unfortunately the whole thing appears to be rasterized. You cannot export a single frame asswfso strike my earlier comments. – george2079 Dec 07 '15 at 14:43pdfand useswftoolson that (You will I think need yet another tool to assemble the pdf's into a single document.) – george2079 Dec 07 '15 at 14:52