The pgfplots manual consistently crashes both my Preview.app and my Skim.app. A quick google search yields a closed bug report on the pgfplots Sourceforge page and a related question on apple.stackexchange.com, showing that this is a known issue. It doesn't happen on every page; it seems to prefer pages with more elaborate plots. Though this is not technically a TeX question it will only affect TeX users; according to the closed bug report it is Apple's bug and there's not much that can be done about it, I wanted to check if anyone else has encountered this problem and figured out a way—any way—around it for long enough to work through one of the examples in the manual (or am I doomed to screen-capturing it?!).
Edit
As per Christian Feuersänger's suggestion, here are some Minimal Crashing Examples. On another note Adobe Reader (version 9) works with all of these plots, though compared to Skim or Preview, it is slow and choppy; you can almost feel it strain to get the job done.
Parametrized plot crash
% pgfplots manual, page 121
% parametrized plot #4
% Compiled: 2012-11-02
% This one crashes unceremoniously.
\documentclass{standalone}
\usepackage{pgfplots}
\pgfplotsset{width=7cm,compat=1.7}
\begin{document}
\begin{tikzpicture}
\begin{axis}[view={60}{30}]
\addplot3[surf,shader=interp,z buffer=sort,
samples=30,domain=-1:0,y domain=0:2*pi]
({sqrt(1-x^2) * cos(deg(y))},
{sqrt( 1-x^2 ) * sin(deg(y))},
x);
\end{axis}
\end{tikzpicture}
\end{document}
%%% Local Variables:
%%% mode: latex
%%% TeX-engine: xetex
%%% TeX-master: t
%%% End:
Patch Plot, biquadratic
% pgfplots manual, page 343
% patch type, biquadratic
% Compiled: 2012-11-02
% This one renders the axes and then hangs before plotting.
\documentclass{standalone}
\usepackage{pgfplots}
\pgfplotsset{width=7cm,compat=1.7}
\usepgfplotslibrary{patchplots}
\begin{document}
\begin{tikzpicture}
\begin{axis}[
title={Mesh on top of patches (i): obscured}]
\addplot3[patch,patch type=biquadratic,shader=interp,
patch refines=3]
coordinates {
(0,0,1) (6,1,1.6) (5,5,1.3) (-1,5,0)
(3,1,0) (6,3,0.4) (2,6,1.1) (0,3,0.9)
(3,3.75,0.5)
};
\addplot3[patch,patch type=biquadratic,mesh,black,
patch refines=3]
coordinates {
(0,0,1) (6,1,1.6) (5,5,1.3) (-1,5,0)
(3,1,0) (6,3,0.4) (2,6,1.1) (0,3,0.9)
(3,3.75,0.5)
};
\end{axis}
\end{tikzpicture}
\end{document}
%%% Local Variables:
%%% mode: latex
%%% TeX-engine: xetex
%%% TeX-master: t
%%% End:
Patch plot, bilinear
% pgfplots manual, page 343
% patch type, biliniear
% Compiled: 2012-11-02
% Not the same as the bilinear example on the pgfplots manual because that one
% reads data from a file I don't have.
% This one renders the axes and then hangs before plotting.
\documentclass{standalone}
\usepackage{pgfplots}
\pgfplotsset{width=7cm,compat=1.7}
\usepgfplotslibrary{patchplots}
\begin{document}
\begin{tikzpicture}
\begin{axis}[
title={Mesh on top of patches (i): obscured}]
\addplot3[patch,patch type=bilinear,shader=interp,
patch refines=3]
coordinates {
(0,0,1) (6,1,1.6) (5,5,1.3) (-1,5,0)
(3,1,0) (6,3,0.4) (2,6,1.1) (0,3,0.9)
(3,3.75,0.5)
};
\addplot3[patch,patch type=biquadratic,mesh,black,
patch refines=3]
coordinates {
(0,0,1) (6,1,1.6) (5,5,1.3) (-1,5,0)
(3,1,0) (6,3,0.4) (2,6,1.1) (0,3,0.9)
(3,3.75,0.5)
};
\end{axis}
\end{tikzpicture}
\end{document}
%%% Local Variables:
%%% mode: latex
%%% TeX-engine: xetex
%%% TeX-master: t
%%% End:
Patch plot, bicubic
% pgfplots manual, page 336
% patch type, bicubic
% Compiled: 2012-11-02
% This one renders differently than in the manual. Uglier.
\documentclass{standalone}
\usepackage{pgfplots}
\pgfplotsset{width=7cm,compat=1.7}
\usepgfplotslibrary{patchplots}
\begin{document}
% Preamble: \pgfplotsset{width=7cm,compat=1.7}
\begin{tikzpicture}
\begin{axis}[nodes near coords={(\coordindex)},
title=Single Bicubic Quadrilateral]
\addplot3[patch,patch type=bicubic,shader=interp]
coordinates {
(0,0,1) (1,0,0) (2,0,0) (3,0,0)
(0,1,0) (1,1,0) (2,1,0) (3,1,0)
(0,2,0) (1,2,0) (2,2,0) (3,2,0)
(0,3,0) (1,3,0) (2,3,0) (3,3,0)
};
\end{axis}
\end{tikzpicture}
\end{document}
%% Switched to pdflatex engine because of this error:
% ERROR: Package pgfplots Error: Sorry, surface shading (shader=interp) is NOT
% available for the selected driver `pgfsys-xetex.def'. I will use 'shader=flat'
% if you continue now.
%% Output is not as expected or as shown in the manual
%%% Local Variables:
%%% mode: latex
%%% TeX-engine: default
%%% TeX-master: t
%%% End:
Patch plot, bicubic (a crashing one)
% pgfplots manual, page 337
% patch type, bicubic
% Compiled: 2012-11-02
% This one renders axes and then hangs.
\documentclass{standalone}
\usepackage{pgfplots}
\pgfplotsset{width=7cm,compat=1.7}
\usepgfplotslibrary{patchplots}
\begin{document}
\begin{tikzpicture}
\begin{axis}[
title=Two Bicubic Patches]
\addplot3[patch,patch type=bicubic,shader=interp,point
meta=explicit]
coordinates {
(0,0,1)[1] (1,0,0)[0] (2,0,0)[0] (3,0,0)[0]
(0,1,0)[0] (1,1,0)[0] (2,1,0)[0] (3,1,0)[0]
(0,2,0)[0] (1,2,0)[0] (2,2,0)[0] (3,2,0)[0]
(0,3,0)[0] (1,3,0)[0] (2,3,0)[0] (3,3,0)[0]
(3,0,0)[0] (4,0,0)[0] (5,0,0)[0] (6,0,0)[0.7]
(3,1,0)[0] (4,1,.5)[1](5,1,0)[0] (6,1,0)[0]
(3,2,0)[0] (4,2,0)[0] (5,2,0)[0] (6,2,0)[0]
(3,3,0)[0] (4,3,0)[0] (5,3,0)[0] (6,3,0)[0.1]
};
\end{axis}
\end{tikzpicture}
\end{document}
%% Switched to pdflatex engine because of this error:
% ERROR: Package pgfplots Error: Sorry, surface shading (shader=interp) is NOT
% available for the selected driver `pgfsys-xetex.def'. I will use 'shader=flat'
% if you continue now.
%%% Local Variables:
%%% mode: latex
%%% TeX-engine: default
%%% TeX-master: t
%%% End:
Patch plot, coons
% pgfplots manual, page 337-338
% patch type, coons
% Compiled: 2012-11-02
% This one renders differently than in the manual
\documentclass{standalone}
\usepackage{pgfplots}
\pgfplotsset{width=7cm,compat=1.7}
\usepgfplotslibrary{patchplots}
\begin{document}
\begin{tikzpicture}
\begin{axis}[nodes near coords={(\coordindex)},
width=12cm,
title=A Coons Patch]
\addplot[mark=*,patch,patch type=coons,
shader=interp,point meta=explicit]
coordinates {
(0,0) [0] % first corner
(1,-1) [0] % Bezier control point between (0) and (3)
(4,0.7) [0] % Bezier control point between (0) and (3)
%
(3,2) [1] % second corner
(4,3.5) [1] % Bezier control point between (3) and (6)
(7,2) [1] % Bezier control point between (3) and (6)
%
(7,1) [2] % third corner
(6,0.6) [2] % Bezier control point between (6) and (9)
(4.5,-0.5) [2] % Bezier control point between (6) and (9)
%
(5,-2) [3] % fourth corner
(4,-2.5) [3] % Bezier control point between (9) and (0)
(-1,-2) [3] % Bezier control point between (9) and (0)
};
\end{axis}
\end{tikzpicture}
\end{document}
%% Switched to pdflatex engine because of this error:
% ERROR: Package pgfplots Error: Sorry, surface shading (shader=interp) is NOT
% available for the selected driver `pgfsys-xetex.def'. I will use 'shader=flat'
% if you continue now.
%%% Local Variables:
%%% mode: latex
%%% TeX-engine: default
%%% TeX-master: t
%%% End:

pgfplotsmanual. Perhaps, you could try Acrobat. – Peter Grill Nov 1 '12 at 1:57shader=interpforsurfplots and all shadings of thepatchplotslibrary. Apparently, free viewers use bad implementations. I have implemented the shader forlibpopplerand the implementation has been accepted. Perhaps Skim and preview rely on some related buggy library (pdfkit?). Can you confirm that it happens on specific pages - like those containing smooth surface plots with shadings? – Christian Feuersänger Nov 1 '12 at 8:12