[OS X TeX] Preview showing a pdf generated with pfgplots

Juan Luis Varona jvarona at unirioja.es
Wed Jan 16 04:06:48 CET 2013


Dear texfriends,

(sorry for my bad English)

If you open page 331 in the manual of pgfplots 1.7, Apple Preview hangs.
However, Adober Reader shows the page.

The problem is this code (copied and pasted from page 331):
----
\documentclass{article}

\usepackage{pgfplots}

\pgfplotsset{width=7cm,compat=1.7}

\usepgfplotslibrary{patchplots}

\title{Brief Article}
\author{The Author}

\begin{document}
\maketitle

p. 331 in manual of pgfplots 1.7

\begin{tikzpicture}
\begin{axis}
\addplot3[surf,shader=interp,
patch type=bicubic,
patch type sampling,
samples=5,domain=-3:3]
{exp(-x^2-y^2)};
% show the generated grid on top:
\addplot3[
mark=*,mark size=1pt,only marks,scatter,
samples=5,domain=-3:3,
patch type=bicubic,
patch type sampling,
point meta={exp(-x^2-y^2)}
]
{1.1};
\end{axis}
\end{tikzpicture}

\end{document}
----

TeXShop generates the pdf file (with pdflates), 
but it hangs showing the pdf in the preview window.
Also Preview app hangs. However, Adobe reader shows the pdf.

With pgfplots 1.5, the same happens with the corresponding example in page 313.

I have checked it with several versions of OSX (including 10.8.2).

This seems to be a Apple bug showing the pdf.

Yours,

Juan Luis





More information about the macostex-archives mailing list