It looks like when the points are not given in a “square manner”, the 2d contour plot looks strange.

When 6 points (0,0) (1,0) (2,0) (0,1) (1,1) (2,1) are given, the plot looks perfect.

However, when the 6 points are (0,0) (1,0.001) (2,0) (0,1.001) (1,1) (2,2), the plot look much too different than the previous one.

Is it using linear interpolation to generate the contour plot?

Where does Plotly handle the plot contour algorithm?

I would appreciate any help you offer.

Thank you.

Here is the code I used: