-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Surface plots do not quite follow the data #2713
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Here is another demo to illustrate this issue. |
One of the best illustrations for this bug is |
Here is a simpler demo for debugging this issue. |
An extreme example of the problem - spiky data like |
See https://codepen.io/alexcjohnson/pen/gKLBgR?editors=0010

I was trying to get the contour lines to exactly match the data, but notice that the line at

y=1.3
(last black line in the red) is not quite straight (even though the data aty=1.3
is uniformly1.0
) and the line aty=1.4
(first black line in the green) does not quite reach the correct value of0.898
like its neighbors at largery
do. Digging in a bit deeper, it seems like the contours are following the surface very closely - perhaps not precisely, there are still a few spots where they seem to disappear behind the surface, but it's pretty close. But the surface itself seems to disagree a little bit with the data, which you can see by zooming in near one of these corners:It looks like either a) the surface is smoothing a little bit around these sharp corners, or b) the surface is actually creating a finer mesh than the data points, and this mesh is not aligned with the data so it misses the corners. Either way it's not doing the right thing.
cc @etpinard as mentioned in #2712
The text was updated successfully, but these errors were encountered: