The following MWE induces quite a lot of head-scratching for me:
Code: Select all
% Compile using
%
% latex <filename>.tex
% dvips -Ppdf -D1200 <filename>.dvi
% ps2pdf <filename>.ps
%
% and open with Adobe Reader.
\documentclass{article}
\usepackage{pst-func}
\usepackage{animate}
\def\total{8}
\newcommand*{\binomdist}[1]{%
\def\succesP{#1}
\psset{xunit=1cm,yunit=10cm}
\begin{pspicture}(-1.2,-0.1)(9.3,0.75)%
\psaxes[labels=y,ticks=y,Dy=0.1,dy=0.1\psyunit]{->}(-0.5,0)(-0.5,0)(8.8,0.69)[$k$,0][$P(X = k)$,90]
\psaxes[labels=x,ticks=x,xlabelOffset=0.5](-0.5,0)(-0.5,0)(8,0.69)
\psBinomial[markZeros,printValue,comma,fillstyle=solid,fillcolor=blue!40,opacity=0.4,linestyle=solid,linecolor=black]{\total}{\succesP}
\psBinomial[markZeros,fillstyle=solid,fillcolor=blue!40,opacity=0.4,linestyle=solid,linecolor=red]{\total}{\succesP}
\rput(5,0.6){$p = \succesP$}
\end{pspicture}
}
\begin{document}
\begin{figure}[htbp]
\centering
\begin{animateinline}[poster=first,controls,palindrome]{1}
\multiframe{7}{rA=0.2+0.1}{\binomdist{\rA}}
\end{animateinline}
\end{figure}
\newpage
Test
\end{document}

Thank you in advance!
Update
I have come to the conclusion that the problem has something to do with
ps2pdf
because the page is not turned sideways in the PS file.Update 2
I found a solution: If I compile using
Code: Select all
latex <filename>.tex
dvips -Ppdf -D1200 <filename>.dvi
ps2pdf -dAutoRotatePages=/None <filename>.ps