Hello, I have a simple pgfplot file that is not compiling under v0.8.2
. Here is the error:
Running TeX ...
Fontconfig error: Cannot load default config file: No such file: (null)
warning: logo.tex:39: runsystem(gnuplot "logo_contourtmp0.script")...disabled.
error: logo.tex:39: Package pgfplots Error: sorry, plot file{logo_contourtmp0.table} could not be opened.
I tried providing the -Z shell-scape
flag as suggested here but I get the following error:
error: Invalid value for '-Z <option>...': Unknown unstable option 'shell-scape'
Is it possible to use pgfplots somehow?
Tex file
\documentclass{standalone}
\pdfoutput=0
\usepackage{pgfplots}
\pgfplotsset{ticks=none}
\pgfplotsset{
% this *defines* a custom colormap ...
colormap={logo}{
rgb255=(0,180,228)
rgb255=(255, 210, 0)
rgb255=(255,0,70)
},
}
\begin{document}
\begin{tikzpicture}
\begin{axis}[
domain=-2:2,
domain y=0.01:2*pi,
% hide x axis,
% hide y axis,
% hide z axis,
view/h=45,
view/v=30,
]
\newcommand\expr[2]{exp(-#1^2) * sin(-deg(#2))}
\addplot3[
contour gnuplot={
% cdata should not be affected by z filter:
output point meta=rawz,
number=10,
labels=false,
},
line width=1pt,
samples=100,
z filter/.code=\def\pgfmathresult{-1.6},
]
{\expr{x}{y}};
\addplot3[
samples=500,
samples y=6,
domain=0:2*pi,
domain y=-2:2,
% we want 1d (!) individually colored mesh segments:
mesh, patch type=line,
x filter/.code=\def\pgfmathresult{-2.5},
]
(y,x,{\expr{y}{x}});
\addplot3[
samples=100,
samples y=6,
% we want 1d (!) individually colored mesh segments:
mesh, patch type=line,
y filter/.code=\def\pgfmathresult{8},
]
{\expr{x}{y}};
\addplot3[surf,
fill opacity=0.95,
line width=0.1pt,
%shader=faceted interp, % looks like shit when exported
%samples=60 % num de cuadritos
mesh/ordering=y varies,
]
{\expr{x}{y}};
\end{axis}
\end{tikzpicture}
\end{document}