You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Bug]: surface_plot cannot generate image even the axis #24725
When I used surface_plot function with matplotlib version 3.6.2 on MacOS to draw a 3D image, nothing appears even the axis.
When I tried to degrade matplotlib to 3.5 and run the same code, it works.
Activity
greglucas commentedon Dec 14, 2022
That is not a recommended way to add a 3D axes to a figure since version 1.0.
https://matplotlib.org/stable/tutorials/toolkits/mplot3d.html#sphx-glr-tutorials-toolkits-mplot3d-py
Change
ax = Axes3D(fig)toax = fig.add_subplot(projection='3d')rcomer commentedon Dec 14, 2022
Since #24715 is documenting that Axes should not be instantiate directly, I guess that closes this.