You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
I need to plot a velocity magnitude distribution over a 2D triangular mesh, hence I have used patch plot as follows using the jet colormap. I used the shader=interp to have a smooth color variation over the domain but there is an issue in the color interpolation because there are some "darker edges" in the picture as shown in the attached image.
Using shader=flat, everything is fine.
Is it an issue of the Gouraud shading?
Best regards,
Luca
\begin{tikzpicture}[font=\small, scale=0.9]
\begin{axis}[
every axis/.append style={font=\normalsize},
hide axis,
scale only axis,
axis equal image,
colorbar horizontal,
colormap/jet,
point meta min=0,
point meta max=2300,
]
\addplot [
patch,
shader=interp,
patch table with individual point meta={tri.dat}
]
table
{points.dat};
\end{axis}
\end{tikzpicture}
The text was updated successfully, but these errors were encountered:
In the uploaded the following tex file which contains a minimal working example which creates a figure that highlights the issue. To avoid too long execution time, I have plot only the region that has the problem.
Zooming in the output pdf file, the "bad colored" triangle are visible between the cyan and yellow region. These triangles seem to have a darker edge and a lighter ones.
Hi,
I need to plot a velocity magnitude distribution over a 2D triangular mesh, hence I have used patch plot as follows using the jet colormap. I used the shader=interp to have a smooth color variation over the domain but there is an issue in the color interpolation because there are some "darker edges" in the picture as shown in the attached image.
Using shader=flat, everything is fine.
Is it an issue of the Gouraud shading?
Best regards,
Luca
The text was updated successfully, but these errors were encountered: