[pstricks] problems with animate

Cyrille Piatecki cyrille.piatecki at univ-orleans.fr
Fri Dec 28 21:12:36 CET 2012


On my computer, the file
\documentclass[pstricks,border=0pt]{report}
\usepackage{pstricks,pst-plot,pst-blur,pstricks-add}
\usepackage{animate,animfp}

\begin{document}

\def\f1{%
  \psgrid
  \psline{<->}(4,4)(4,1)(10,1)
  \rput(3.8,4){\tiny $C_1$}
  \rput(10.4,1){\tiny $C_0$}}
  \def\f1{
  \psgrid
  \psline{<->}(4,4)(4,1)(10,1)
  \rput(3.8,4){\tiny $C_1$}
  \rput(10.4,1){\tiny $C_0$}}
\newcommand{\cdi}[1]{\psplot[linecolor=red,linewidth=2pt,algebraic]{.5}{4.5}{#1 
* x^(-0.43)}}

%\begin{center}
\begin{animateinline}[poster=first,controls,step]{20}
%frame0
\begin{pspicture}(0,0)(14,5)
\rput(0,0){\f1}
%\rput(0,0){\cdi{1}}
\psset{origin={4,1}}
\end{pspicture}
%frame1
\multiframe{10}{rvalue=.5+.5}{
\begin{pspicture}(0,0)(14,5)
\rput(0,0){\f1}
\psset{origin={4,1}}
%\psplot[linecolor=red,linewidth=1pt,algebraic]{1}{4}{2*x^(0.43)}
\cdi{\rvalue}
\end{pspicture}}
\end{animateinline}
%\end{center}

\end{document}


doesn't work correctly since it create some deformation of the grid and 
the function. Also, i have tried to use the star version of pspicture 
but it seems not to work

Thanks

Cyrille Piatecki


More information about the PSTricks mailing list