I want to publish a PDF with a print-on-demand service, but the resulting hard copy has errors in the printed colorbars.
The colorbar is generated with TikZ by
\begin{tikzpicture}
\begin{axis}[
scale only axis, width=0pt, height=0pt, hide axis,
tick label style={/pgf/number format/.cd, fixed},
colorbar,colormap/jet,
point meta min=0,
point meta max=0.05,
colorbar horizontal,
colorbar style={
width=0.8\textwidth,
xtick={0, 0.01,..., 0.05},
},
]
{
};
\end{axis}
\end{tikzpicture}
and the resulting PDF looks like this
but the printout is this

Asking the publisher I was advised to check transparency. As far as I checked it's not (explicitly) included in the PDF, see f.i. includegraphics: How to check if PDF/PNG are transparent?
Now, I have several options, like using gs and optional force PDF version 1.4 or 1.3, but since I still don't know why it fails, it would be an expensive try and error.
So my question is, why is the color gradient printed wrongly and how can I prevent this within LaTeX?
\usepackage[cmyk]{xcolor}to your preamble? Thats how your original version should look printed – Ktree Dec 18 '15 at 12:17colorbar sampled,colorbar style={samples=80}}to your plot options. – Max Sep 03 '18 at 06:59