Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork8.1k
Open
Description
Bug summary
The plot_surface will give a really weird issue if the value if of high precision.
Code for reproduction
importnumpyasnpimportmatplotlib.pyplotaspltfrommpl_toolkits.mplot3dimportAxes3D# noqaZ=np.array([[0.1,0.100000001],[0.100000000001,0.100000000]])ny,nx=Z.shapex=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