-
-
Notifications
You must be signed in to change notification settings - Fork 8.1k
Open
Description
Bug summary
The plot_surface will give a really weird issue if the value if of high precision.
Code for reproduction
import numpy as np
import matplotlib.pyplot as plt
from mpl_toolkits.mplot3d import Axes3D # noqa
Z = np.array([[0.1,0.100000001],[0.100000000001,0.100000000]])
ny, nx = Z.shape
x = np.arange(nx)
y = np.arange(ny)
X, Y = np.meshgrid(x, y)
print(Z.min(), Z.max())
print(Z.shape, X.shape)
fig = plt.figure()
ax = fig.add_subplot(111, projection='3d')
ax.plot_surface(X, Y, Z)
plt.show()Actual outcome
Expected outcome
Additional information
No response
Operating system
No response
Matplotlib Version
3.10.0
Matplotlib Backend
No response
Python version
No response
Jupyter version
No response
Installation
None