Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents b3e6248 + 24d6b64 commit f751edaCopy full SHA for f751eda
1 file changed
examples/mplot3d/surface3d.py
@@ -15,9 +15,7 @@
15
from matplotlib.ticker import LinearLocator, FormatStrFormatter
16
import numpy as np
17
18
-
19
-fig = plt.figure()
20
-ax = fig.gca(projection='3d')
+fig, ax = plt.subplots(subplot_kw={"projection": "3d"})
21
22
# Make data.
23
X = np.arange(-5, 5, 0.25)
0 commit comments