[OS X TeX] Preview showing a pdf generated with pfgplots
Richard Koch
koch at math.uoregon.edu
Wed Jan 16 14:19:07 EST 2013
Juan Luis,
On Jan 15, 2013, at 7:06 PM, Juan Luis Varona <jvarona at unirioja.es> wrote:
> 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):
> 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}
Experiments show that the line "shader=interp" causes the problem.
Changing to "shader=flat" causes no crash, but a lousy illustration.
I also submitted a bug report to Apple.
Dick Koch
More information about the MacOSX-TeX
mailing list