I draw a surface.
And I draw a contour that directly calculated on it by scatter3d.
However, there is a difference in quality compared to the contours drawn by plotly directly.
Attach a picture and code explaining the problem.
Is there a way to anti-aliasing a contour overlapped on surface?
Thanks a lot.
var surface = {
z: Z, x: X, y: Y,
type: ‘surface’, showscale:false,
colorscale: ‘Portland’, opacity:1.0, hoverinfo:‘x+y+z’,
name: ‘surface’,
contours: { x:{ show:false, highlight:false, },
y:{ show:false, highlight:false, },
z:{ show:true, highlight:true, color:’#a60628’,
highlightcolor:’#0072b2’, highlightwidth:5,
project:{z:true}
}
}
}
var contour_trace = {
x:contour_x, y: contour_y, z: contour_z,
mode: ‘lines’,
type: ‘scatter3d’,
name: ‘isoline’+i,
line: {width:4, color:’#009E73’}
};
var data = [surface, contour_trace]