I've got some issues using the matlab2tikz script by Nico Schlömer. In Matlab I created a 3d plot including a bunch of patches. Some scalar values are highlighted using the jet colormap (see the attached *.png file).
I then translated this figure into a tikzpicture by invoking matlab2tikz('Test6.tex'). Matlab printed the information
> Found colormap/jet to be a pretty good match for your color map (||diff||=0.0280337).
Compiling the rather huge tikz file by
\usetikzlibrary{external} \tikzset{external/system call={lualatex
\tikzexternalcheckshellescape -halt-on-error
-interaction=batchmode -jobname "\image" "\texsource"}}
\tikzexternalize[prefix=autofigs/]
and
\begin{figure}[h]
\input{Bilder/Test6.tex}%
\caption{\label{fig:1}Our figure}
\end{figure}
using pdflatex produces this results (screenshot of corresponding pdf)
[![Resulting output[2]](../../images/01277417e974f5dd705ba49385c42db8.webp)
Both, the colormap and the colorbar are obviously completely different to the original plot. Can anyone help me fixing this issue?

matlab2tikzdoing the wrong thing, and that is something that should be reported at https://github.com/matlab2tikz/matlab2tikz/issues if you haven't already. Bug reports like that are off-topic here. It would also be great if you could give some feedback to Jonas, whether his answer helped or not. (Leave a comment and/or upvote/accept.) – Torbjørn T. Sep 05 '16 at 13:33