{"id":1128934,"date":"2025-01-08T20:25:03","date_gmt":"2025-01-08T12:25:03","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/1128934.html"},"modified":"2025-01-08T20:25:06","modified_gmt":"2025-01-08T12:25:06","slug":"python%e4%b8%ad%e5%a6%82%e4%bd%95%e7%bb%98%e5%88%b6%e4%b8%89%e7%bb%b4%e5%9b%be%e8%a1%8c","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/1128934.html","title":{"rendered":"python\u4e2d\u5982\u4f55\u7ed8\u5236\u4e09\u7ef4\u56fe\u884c"},"content":{"rendered":"<p style=\"text-align:center;\" ><img decoding=\"async\" src=\"https:\/\/cdn-kb.worktile.com\/kb\/wp-content\/uploads\/2024\/04\/25095522\/ed8138c0-5e65-4590-ba09-1f38dbe093e9.webp\" alt=\"python\u4e2d\u5982\u4f55\u7ed8\u5236\u4e09\u7ef4\u56fe\u884c\" \/><\/p>\n<p><p> <strong>\u5728Python\u4e2d\u7ed8\u5236\u4e09\u7ef4\u56fe\u5f62\u7684\u6838\u5fc3\u6b65\u9aa4\u662f\u4f7f\u7528Matplotlib\u5e93\u4e2d\u7684<code>mpl_toolkits.mplot3d<\/code>\u6a21\u5757\u3001\u914d\u7f6e\u4e09\u7ef4\u5750\u6807\u7cfb\u3001\u5b9a\u4e49\u6570\u636e\u70b9\u3001\u9009\u62e9\u5408\u9002\u7684\u4e09\u7ef4\u7ed8\u56fe\u51fd\u6570\u3002<\/strong>\u672c\u6587\u5c06\u4ece\u8fd9\u4e9b\u6b65\u9aa4\u5165\u624b\uff0c\u8be6\u7ec6\u4ecb\u7ecd\u5982\u4f55\u4f7f\u7528Python\u7ed8\u5236\u4e09\u7ef4\u56fe\u5f62\uff0c\u5e76\u63a2\u8ba8\u4e00\u4e9b\u5b9e\u7528\u7684\u6280\u5de7\u548c\u6ce8\u610f\u4e8b\u9879\u3002<\/p>\n<\/p>\n<p><h3>\u4e00\u3001\u5b89\u88c5\u548c\u5bfc\u5165\u6240\u9700\u5e93<\/h3>\n<\/p>\n<p><p>\u4e3a\u4e86\u5728Python\u4e2d\u7ed8\u5236\u4e09\u7ef4\u56fe\u5f62\uff0c\u9996\u5148\u9700\u8981\u786e\u4fdd\u5b89\u88c5\u4e86Matplotlib\u5e93\u3002\u53ef\u4ee5\u901a\u8fc7pip\u547d\u4ee4\u6765\u5b89\u88c5\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">pip install matplotlib<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5b89\u88c5\u5b8c\u6210\u540e\uff0c\u5bfc\u5165\u76f8\u5173\u6a21\u5757\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import matplotlib.pyplot as plt<\/p>\n<p>from mpl_toolkits.mplot3d import Axes3D<\/p>\n<p>import numpy as np<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>\u4e8c\u3001\u914d\u7f6e\u4e09\u7ef4\u5750\u6807\u7cfb<\/h3>\n<\/p>\n<p><p>\u5728\u7ed8\u5236\u4e09\u7ef4\u56fe\u5f62\u65f6\uff0c\u7b2c\u4e00\u6b65\u662f\u914d\u7f6e\u4e09\u7ef4\u5750\u6807\u7cfb\u3002\u8fd9\u53ef\u4ee5\u901a\u8fc7\u521b\u5efa\u4e00\u4e2a\u5305\u542b\u4e09\u7ef4\u5750\u6807\u8f74\u7684\u56fe\u5f62\u5bf9\u8c61\u6765\u5b9e\u73b0\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">fig = plt.figure()<\/p>\n<p>ax = fig.add_subplot(111, projection=&#39;3d&#39;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5176\u4e2d\uff0c<code>111<\/code>\u8868\u793a\u521b\u5efa\u4e00\u4e2a1\u00d71\u7684\u7f51\u683c\uff0c\u5e76\u9009\u62e9\u7b2c\u4e00\u4e2a\u5b50\u56fe\u3002<code>projection=&#39;3d&#39;<\/code>\u53c2\u6570\u6307\u5b9a\u8fd9\u662f\u4e00\u4e2a\u4e09\u7ef4\u56fe\u3002<\/p>\n<\/p>\n<p><h3>\u4e09\u3001\u5b9a\u4e49\u6570\u636e\u70b9<\/h3>\n<\/p>\n<p><p>\u63a5\u4e0b\u6765\uff0c\u9700\u8981\u5b9a\u4e49\u8981\u7ed8\u5236\u7684\u6570\u636e\u70b9\u3002\u901a\u5e38\u60c5\u51b5\u4e0b\uff0c\u4f7f\u7528NumPy\u5e93\u751f\u6210\u6570\u636e\u70b9\u662f\u975e\u5e38\u9ad8\u6548\u7684\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">x = np.linspace(-5, 5, 100)<\/p>\n<p>y = np.linspace(-5, 5, 100)<\/p>\n<p>x, y = np.meshgrid(x, y)<\/p>\n<p>z = np.sin(np.sqrt(x&lt;strong&gt;2 + y&lt;\/strong&gt;2))<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u4e0a\u9762\u7684\u4ee3\u7801\u751f\u6210\u4e86\u4e00\u4e2a\u7f51\u683c\u6570\u636e\u70b9\uff0c\u5e76\u8ba1\u7b97\u4e86\u6bcf\u4e2a\u70b9\u7684z\u503c\u3002<\/p>\n<\/p>\n<p><h3>\u56db\u3001\u7ed8\u5236\u4e09\u7ef4\u56fe\u5f62<\/h3>\n<\/p>\n<p><p>Matplotlib\u63d0\u4f9b\u4e86\u591a\u79cd\u4e09\u7ef4\u7ed8\u56fe\u51fd\u6570\uff0c\u4f8b\u5982<code>plot_surface<\/code>\u3001<code>scatter<\/code>\u3001<code>plot_wireframe<\/code>\u7b49\u3002\u4e0b\u9762\u4ecb\u7ecd\u51e0\u79cd\u5e38\u7528\u7684\u4e09\u7ef4\u7ed8\u56fe\u65b9\u6cd5\u3002<\/p>\n<\/p>\n<p><h4>1\u3001\u7ed8\u5236\u4e09\u7ef4\u66f2\u9762\u56fe<\/h4>\n<\/p>\n<p><pre><code class=\"language-python\">ax.plot_surface(x, y, z, cmap=&#39;viridis&#39;)<\/p>\n<p>plt.show()<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p><code>plot_surface<\/code>\u51fd\u6570\u7528\u4e8e\u7ed8\u5236\u4e09\u7ef4\u66f2\u9762\u56fe\uff0c<code>cmap<\/code>\u53c2\u6570\u6307\u5b9a\u4e86\u989c\u8272\u6620\u5c04\u3002<\/p>\n<\/p>\n<p><h4>2\u3001\u7ed8\u5236\u4e09\u7ef4\u6563\u70b9\u56fe<\/h4>\n<\/p>\n<p><pre><code class=\"language-python\">z = np.random.rand(100)<\/p>\n<p>ax.scatter(x, y, z, c=&#39;r&#39;, marker=&#39;o&#39;)<\/p>\n<p>plt.show()<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p><code>scatter<\/code>\u51fd\u6570\u7528\u4e8e\u7ed8\u5236\u4e09\u7ef4\u6563\u70b9\u56fe\uff0c<code>c<\/code>\u53c2\u6570\u6307\u5b9a\u989c\u8272\uff0c<code>marker<\/code>\u53c2\u6570\u6307\u5b9a\u70b9\u7684\u5f62\u72b6\u3002<\/p>\n<\/p>\n<p><h4>3\u3001\u7ed8\u5236\u4e09\u7ef4\u7ebf\u6846\u56fe<\/h4>\n<\/p>\n<p><pre><code class=\"language-python\">ax.plot_wireframe(x, y, z, color=&#39;blue&#39;)<\/p>\n<p>plt.show()<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p><code>plot_wireframe<\/code>\u51fd\u6570\u7528\u4e8e\u7ed8\u5236\u4e09\u7ef4\u7ebf\u6846\u56fe\uff0c<code>color<\/code>\u53c2\u6570\u6307\u5b9a\u7ebf\u6761\u989c\u8272\u3002<\/p>\n<\/p>\n<p><h3>\u4e94\u3001\u4f18\u5316\u548c\u7f8e\u5316\u56fe\u5f62<\/h3>\n<\/p>\n<p><p>\u7ed8\u5236\u4e09\u7ef4\u56fe\u5f62\u540e\uff0c\u53ef\u4ee5\u901a\u8fc7\u8c03\u6574\u56fe\u5f62\u7684\u5404\u9879\u53c2\u6570\u6765\u4f18\u5316\u548c\u7f8e\u5316\u56fe\u5f62\u3002<\/p>\n<\/p>\n<p><h4>1\u3001\u8c03\u6574\u89c6\u89d2<\/h4>\n<\/p>\n<p><p>\u901a\u8fc7<code>view_init<\/code>\u51fd\u6570\u53ef\u4ee5\u8bbe\u7f6e\u89c6\u89d2\u7684\u4ef0\u89d2\u548c\u65b9\u4f4d\u89d2\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">ax.view_init(elev=30, azim=60)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>2\u3001\u6dfb\u52a0\u6807\u9898\u548c\u6807\u7b7e<\/h4>\n<\/p>\n<p><p>\u53ef\u4ee5\u901a\u8fc7<code>set_title<\/code>\u3001<code>set_xlabel<\/code>\u3001<code>set_ylabel<\/code>\u3001<code>set_zlabel<\/code>\u51fd\u6570\u4e3a\u56fe\u5f62\u6dfb\u52a0\u6807\u9898\u548c\u8f74\u6807\u7b7e\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">ax.set_title(&#39;3D Surface Plot&#39;)<\/p>\n<p>ax.set_xlabel(&#39;X Label&#39;)<\/p>\n<p>ax.set_ylabel(&#39;Y Label&#39;)<\/p>\n<p>ax.set_zlabel(&#39;Z Label&#39;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>3\u3001\u8c03\u6574\u989c\u8272\u548c\u6837\u5f0f<\/h4>\n<\/p>\n<p><p>\u53ef\u4ee5\u901a\u8fc7\u53c2\u6570\u8bbe\u7f6e\u548cMatplotlib\u7684\u6837\u5f0f\u5e93\u6765\u8c03\u6574\u56fe\u5f62\u7684\u989c\u8272\u548c\u6837\u5f0f\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">ax.plot_surface(x, y, z, cmap=&#39;coolwarm&#39;, edgecolor=&#39;none&#39;)<\/p>\n<p>plt.style.use(&#39;seaborn-dark&#39;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>\u516d\u3001\u4fdd\u5b58\u56fe\u5f62<\/h3>\n<\/p>\n<p><p>\u7ed8\u5236\u5b8c\u56fe\u5f62\u540e\uff0c\u53ef\u4ee5\u5c06\u5176\u4fdd\u5b58\u4e3a\u5404\u79cd\u683c\u5f0f\u7684\u6587\u4ef6\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">plt.savefig(&#39;3d_plot.png&#39;, dpi=300, bbox_inches=&#39;tight&#39;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>\u4e03\u3001\u5b9e\u9645\u5e94\u7528\u6848\u4f8b<\/h3>\n<\/p>\n<p><h4>1\u3001\u7ed8\u5236\u4e09\u7ef4\u70ed\u56fe<\/h4>\n<\/p>\n<p><p>\u4e09\u7ef4\u70ed\u56fe\u5728\u6570\u636e\u5206\u6790\u4e2d\u975e\u5e38\u5e38\u7528\uff0c\u4e0b\u9762\u662f\u4e00\u4e2a\u7ed8\u5236\u4e09\u7ef4\u70ed\u56fe\u7684\u793a\u4f8b\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">x = np.linspace(-5, 5, 50)<\/p>\n<p>y = np.linspace(-5, 5, 50)<\/p>\n<p>x, y = np.meshgrid(x, y)<\/p>\n<p>z = np.sin(x) * np.cos(y)<\/p>\n<p>fig = plt.figure()<\/p>\n<p>ax = fig.add_subplot(111, projection=&#39;3d&#39;)<\/p>\n<p>heatmap = ax.plot_surface(x, y, z, cmap=&#39;hot&#39;)<\/p>\n<p>fig.colorbar(heatmap, ax=ax, shrink=0.5, aspect=5)<\/p>\n<p>plt.show()<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>2\u3001\u7ed8\u5236\u4e09\u7ef4\u7b49\u9ad8\u7ebf\u56fe<\/h4>\n<\/p>\n<p><p>\u4e09\u7ef4\u7b49\u9ad8\u7ebf\u56fe\u53ef\u4ee5\u5e2e\u52a9\u6211\u4eec\u7406\u89e3\u6570\u636e\u5728\u4e0d\u540c\u9ad8\u5ea6\u7684\u5206\u5e03\u60c5\u51b5\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">x = np.linspace(-5, 5, 50)<\/p>\n<p>y = np.linspace(-5, 5, 50)<\/p>\n<p>x, y = np.meshgrid(x, y)<\/p>\n<p>z = np.sin(x) * np.cos(y)<\/p>\n<p>fig = plt.figure()<\/p>\n<p>ax = fig.add_subplot(111, projection=&#39;3d&#39;)<\/p>\n<p>ax.contour3D(x, y, z, 50, cmap=&#39;binary&#39;)<\/p>\n<p>plt.show()<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>3\u3001\u7ed8\u5236\u4e09\u7ef4\u6761\u5f62\u56fe<\/h4>\n<\/p>\n<p><p>\u4e09\u7ef4\u6761\u5f62\u56fe\u9002\u5408\u5c55\u793a\u5206\u6bb5\u6570\u636e\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">fig = plt.figure()<\/p>\n<p>ax = fig.add_subplot(111, projection=&#39;3d&#39;)<\/p>\n<p>x = np.arange(1, 11)<\/p>\n<p>y = np.random.randint(1, 10, size=10)<\/p>\n<p>z = np.zeros(10)<\/p>\n<p>dx = np.ones(10)<\/p>\n<p>dy = np.ones(10)<\/p>\n<p>dz = np.random.randint(1, 10, size=10)<\/p>\n<p>ax.bar3d(x, y, z, dx, dy, dz, color=&#39;aqua&#39;)<\/p>\n<p>plt.show()<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>\u516b\u3001\u603b\u7ed3<\/h3>\n<\/p>\n<p><p>\u7ed8\u5236\u4e09\u7ef4\u56fe\u5f62\u662fPython\u6570\u636e\u53ef\u89c6\u5316\u4e2d\u7684\u4e00\u4e2a\u91cd\u8981\u65b9\u9762\uff0c\u901a\u8fc7\u4f7f\u7528Matplotlib\u5e93\u4e2d\u7684<code>mpl_toolkits.mplot3d<\/code>\u6a21\u5757\uff0c\u53ef\u4ee5\u65b9\u4fbf\u5730\u521b\u5efa\u5404\u79cd\u7c7b\u578b\u7684\u4e09\u7ef4\u56fe\u5f62\u3002<strong>\u5173\u952e\u6b65\u9aa4\u5305\u62ec\u914d\u7f6e\u4e09\u7ef4\u5750\u6807\u7cfb\u3001\u5b9a\u4e49\u6570\u636e\u70b9\u3001\u9009\u62e9\u5408\u9002\u7684\u4e09\u7ef4\u7ed8\u56fe\u51fd\u6570\uff0c\u5e76\u901a\u8fc7\u8c03\u6574\u89c6\u89d2\u3001\u6dfb\u52a0\u6807\u9898\u548c\u6807\u7b7e\u3001\u8c03\u6574\u989c\u8272\u548c\u6837\u5f0f\u7b49\u65b9\u5f0f\u4f18\u5316\u548c\u7f8e\u5316\u56fe\u5f62\u3002<\/strong>\u638c\u63e1\u8fd9\u4e9b\u6280\u672f\uff0c\u4e0d\u4ec5\u80fd\u5e2e\u52a9\u6211\u4eec\u66f4\u597d\u5730\u7406\u89e3\u6570\u636e\uff0c\u8fd8\u80fd\u63d0\u5347\u6570\u636e\u62a5\u544a\u7684\u4e13\u4e1a\u6027\u548c\u7f8e\u89c2\u5ea6\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p> <strong>\u5728Python\u4e2d\u7ed8\u5236\u4e09\u7ef4\u56fe\u9700\u8981\u54ea\u4e9b\u5e93\uff1f<\/strong><br \/>\u5728Python\u4e2d\uff0c\u7ed8\u5236\u4e09\u7ef4\u56fe\u901a\u5e38\u4f7f\u7528Matplotlib\u5e93\u3002\u8fd9\u4e2a\u5e93\u63d0\u4f9b\u4e86\u5f3a\u5927\u7684\u7ed8\u56fe\u529f\u80fd\uff0c\u5305\u62ec3D\u7ed8\u56fe\u3002\u9664\u4e86Matplotlib\u5916\uff0cMayavi\u548cPlotly\u4e5f\u662f\u5e38\u7528\u7684\u7ed8\u5236\u4e09\u7ef4\u56fe\u7684\u5e93\u3002Matplotlib\u9002\u5408\u7b80\u5355\u7684\u4e09\u7ef4\u56fe\u5f62\uff0c\u800cPlotly\u5219\u80fd\u591f\u5236\u4f5c\u4ea4\u4e92\u5f0f\u7684\u56fe\u5f62\uff0c\u9002\u5408\u9700\u8981\u52a8\u6001\u5c55\u793a\u7684\u6570\u636e\u3002<\/p>\n<p><strong>\u5982\u4f55\u4f7f\u7528Matplotlib\u7ed8\u5236\u7b80\u5355\u7684\u4e09\u7ef4\u56fe\uff1f<\/strong><br \/>\u8981\u4f7f\u7528Matplotlib\u7ed8\u5236\u4e09\u7ef4\u56fe\uff0c\u9996\u5148\u9700\u8981\u5bfc\u5165<code>mpl_toolkits.mplot3d<\/code>\u6a21\u5757\uff0c\u7136\u540e\u521b\u5efa\u4e00\u4e2a\u4e09\u7ef4\u5750\u6807\u8f74\u3002\u63a5\u4e0b\u6765\uff0c\u60a8\u53ef\u4ee5\u4f7f\u7528<code>plot_surface<\/code>\u3001<code>scatter<\/code>\u6216<code>plot_wireframe<\/code>\u7b49\u51fd\u6570\u7ed8\u5236\u4e0d\u540c\u7c7b\u578b\u7684\u4e09\u7ef4\u56fe\u5f62\u3002\u4ee5\u4e0b\u662f\u4e00\u4e2a\u57fa\u672c\u793a\u4f8b\uff1a<\/p>\n<pre><code class=\"language-python\">import matplotlib.pyplot as plt\nfrom mpl_toolkits.mplot3d import Axes3D\nimport numpy as np\n\nfig = plt.figure()\nax = fig.add_subplot(111, projection=&#39;3d&#39;)\nX = np.linspace(-5, 5, 100)\nY = np.linspace(-5, 5, 100)\nX, Y = np.meshgrid(X, Y)\nZ = np.sin(np.sqrt(X&lt;strong&gt;2 + Y&lt;\/strong&gt;2))\nax.plot_surface(X, Y, Z, cmap=&#39;viridis&#39;)\nplt.show()\n<\/code><\/pre>\n<p><strong>\u4e09\u7ef4\u56fe\u7684\u5e94\u7528\u573a\u666f\u6709\u54ea\u4e9b\uff1f<\/strong><br \/>\u4e09\u7ef4\u56fe\u5728\u591a\u4e2a\u9886\u57df\u90fd\u6709\u5e7f\u6cdb\u7684\u5e94\u7528\u3002\u5728\u79d1\u5b66\u7814\u7a76\u4e2d\uff0c\u4e09\u7ef4\u56fe\u53ef\u4ee5\u5e2e\u52a9\u53ef\u89c6\u5316\u590d\u6742\u7684\u6570\u636e\u5173\u7cfb\uff0c\u5982\u5730\u8d28\u7ed3\u6784\u3001\u6c14\u5019\u53d8\u5316\u7b49\u3002\u5728\u5de5\u7a0b\u9886\u57df\uff0c\u4e09\u7ef4\u56fe\u5e38\u7528\u4e8e\u8bbe\u8ba1\u548c\u5efa\u6a21\uff0c\u6bd4\u5982\u5efa\u7b51\u7269\u7684\u4e09\u7ef4\u6a21\u578b\u3002\u5728\u6570\u636e\u5206\u6790\u4e2d\uff0c\u4e09\u7ef4\u56fe\u5219\u53ef\u4ee5\u5c55\u793a\u6570\u636e\u7684\u591a\u7ef4\u5173\u7cfb\uff0c\u5e2e\u52a9\u5206\u6790\u5e08\u8bc6\u522b\u8d8b\u52bf\u548c\u6a21\u5f0f\u3002<\/p>\n<p><strong>\u7ed8\u5236\u4e09\u7ef4\u56fe\u65f6\uff0c\u5982\u4f55\u8c03\u6574\u89c6\u89d2\u548c\u6837\u5f0f\uff1f<\/strong><br \/>\u5728Matplotlib\u4e2d\uff0c\u53ef\u4ee5\u901a\u8fc7<code>ax.view_init(elev, azim)<\/code>\u51fd\u6570\u8c03\u6574\u89c6\u89d2\uff0c\u5176\u4e2d<code>elev<\/code>\u63a7\u5236\u89c2\u5bdf\u8005\u7684\u9ad8\u5ea6\uff0c<code>azim<\/code>\u63a7\u5236\u6c34\u5e73\u65cb\u8f6c\u89d2\u5ea6\u3002\u6b64\u5916\uff0c\u60a8\u53ef\u4ee5\u901a\u8fc7\u8bbe\u7f6e\u4e0d\u540c\u7684\u989c\u8272\u6620\u5c04\u3001\u7ebf\u6761\u6837\u5f0f\u548c\u900f\u660e\u5ea6\u6765\u6539\u5584\u56fe\u5f62\u7684\u53ef\u89c6\u5316\u6548\u679c\u3002\u4f7f\u7528<code>ax.set_xlabel()<\/code>\u3001<code>ax.set_ylabel()<\/code>\u548c<code>ax.set_zlabel()<\/code>\u51fd\u6570\u53ef\u4ee5\u4e3a\u8f74\u6dfb\u52a0\u6807\u7b7e\uff0c\u4f7f\u56fe\u5f62\u66f4\u52a0\u6613\u4e8e\u7406\u89e3\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"\u5728Python\u4e2d\u7ed8\u5236\u4e09\u7ef4\u56fe\u5f62\u7684\u6838\u5fc3\u6b65\u9aa4\u662f\u4f7f\u7528Matplotlib\u5e93\u4e2d\u7684mpl_toolkits.mplot3d [&hellip;]","protected":false},"author":3,"featured_media":1128947,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[37],"tags":[],"acf":[],"_links":{"self":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1128934"}],"collection":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/comments?post=1128934"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1128934\/revisions"}],"predecessor-version":[{"id":1128948,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1128934\/revisions\/1128948"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/1128947"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=1128934"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=1128934"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=1128934"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}