How to 3D rotate figures in display

Do you mean something like this? The z-axis is slanted 10°, you can compute bigger values if you like.

Code

\documentclass[parskip]{scrartcl}
\usepackage[margin=15mm]{geometry}
\usepackage{tikz}
\usetikzlibrary{3d}

\begin{document}

\begin{tikzpicture}[x={(1cm,0cm)},y={(0cm,1cm)},z={(0.985cm,0.174cm)}]
    \foreach \x in {1,...,5}
    \node[canvas is zy plane at x=3*\x,draw,fill=white] at (0,0) {\includegraphics{book}};
\end{tikzpicture}

\end{document}

Output

enter image description here


Edit 1: Now with different pictures of different sizes which are automatically spaced correctly, and easily changable orientation and length of the z-axis:

Code

\documentclass[parskip]{scrartcl}
\usepackage[margin=15mm]{geometry}
\usepackage{tikz}
\usetikzlibrary{3d}

\begin{document}

\newcommand{\zangle}{20}
\newcommand{\zlength}{0.707}

\pgfmathsetmacro{\zx}{\zlength*cos(\zangle)}
\pgfmathsetmacro{\zy}{\zlength*sin(\zangle)}

\xdef\nextx{0}

\begin{tikzpicture}[x={(1cm,0cm)},y={(0cm,1cm)},z={(\zx cm,\zy cm)}]
    \foreach \f [count=\x] in {book,book2,book03,bookfour,book5}
    {   \pgfmathsetmacro{\scalef}{1-\x/10}
        \node[canvas is zy plane at x=\nextx,draw,fill=white,above right] (temp) at (0,0) {\includegraphics[scale=\scalef]{\f}};
        \path (temp.east);
        \pgfgetlastxy{\tempx}{\tempy}
        \pgfmathsetmacro{\newx}{(\tempx+3)/28.453}
        \xdef\nextx{\newx}
    }   
\end{tikzpicture}

\end{document}

Output

enter image description here


works only with latex->dvips->ps2pdf

\documentclass{article}
\usepackage{pst-3d,graphicx,multido}
\pagestyle{empty}
\begin{document}

\pspicture(12,5)
\multirput[lb](0.25,0)(2.5,0){5}{%
    
  \psAffinTransform{0.7 0.3 0 1 0 0}{\includegraphics[scale=0.5]{xyz}}}

\endpspicture

\end{document}

enter image description here

0.7 0.3 0 1 0 0 are the six values for the transformation matrix. See http://en.wikipedia.org/wiki/Transformation_matrix


Introducing \multirput instead of \multido that has been used in Herbert's answer.

enter image description here

\documentclass[pstricks,border=0pt]{standalone}
\usepackage{pst-3d,graphicx,multido}

\begin{document}

\multido{\n=1+1}{5}
{
\begin{pspicture}(4,3)
  \multirput[bl](0,0)(0.62,0){\n}{\psAffinTransform{0.7 0.3 0 1 0 0}{\includegraphics[scale=0.246]{parishilton}}}
\end{pspicture}
}

\end{document}

Tags:

3D

Floats