{"id":992549,"date":"2024-12-27T08:38:14","date_gmt":"2024-12-27T00:38:14","guid":{"rendered":""},"modified":"2024-12-27T08:38:17","modified_gmt":"2024-12-27T00:38:17","slug":"python%e4%b8%ad%e5%a6%82%e4%bd%95%e4%bd%bf%e7%94%a8plt","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/992549.html","title":{"rendered":"python\u4e2d\u5982\u4f55\u4f7f\u7528plt"},"content":{"rendered":"<p style=\"text-align:center;\" ><img decoding=\"async\" src=\"https:\/\/cdn-kb.worktile.com\/kb\/wp-content\/uploads\/2024\/04\/25070332\/18614679-65fd-4a31-8726-165287baf287.webp\" alt=\"python\u4e2d\u5982\u4f55\u4f7f\u7528plt\" \/><\/p>\n<p><p> \u5728Python\u4e2d\uff0c<strong>\u4f7f\u7528<code>plt<\/code>\u662f\u6307\u5229\u7528Matplotlib\u5e93\u7684pyplot\u6a21\u5757\u8fdb\u884c\u6570\u636e\u53ef\u89c6\u5316<\/strong>\u3002\u8fd9\u662f\u4e00\u79cd\u975e\u5e38\u6d41\u884c\u7684\u65b9\u6cd5\u6765\u521b\u5efa\u4e8c\u7ef4\u56fe\u5f62\u548c\u56fe\u8868\u3002Matplotlib\u5e93\u63d0\u4f9b\u4e86\u4e30\u5bcc\u7684\u529f\u80fd\u7528\u4e8e\u521b\u5efa\u5404\u79cd\u7c7b\u578b\u7684\u56fe\u8868\uff0c\u5982\u6298\u7ebf\u56fe\u3001\u6563\u70b9\u56fe\u3001\u67f1\u72b6\u56fe\u3001\u997c\u56fe\u7b49\u3002\u8981\u4f7f\u7528<code>plt<\/code>\uff0c\u9996\u5148\u9700\u8981\u5bfc\u5165Matplotlib\u5e93\u4e2d\u7684pyplot\u6a21\u5757\uff0c\u901a\u5e38\u4f7f\u7528<code>import matplotlib.pyplot as plt<\/code>\u3002\u7136\u540e\uff0c\u4f60\u53ef\u4ee5\u4f7f\u7528plt\u4e2d\u7684\u591a\u79cd\u51fd\u6570\u6765\u521b\u5efa\u548c\u5b9a\u5236\u56fe\u8868\uff0c\u4f8b\u5982<code>plt.plot()<\/code>\u7528\u4e8e\u7ed8\u5236\u6298\u7ebf\u56fe\u3001<code>plt.scatter()<\/code>\u7528\u4e8e\u7ed8\u5236\u6563\u70b9\u56fe\u3001<code>plt.bar()<\/code>\u7528\u4e8e\u7ed8\u5236\u67f1\u72b6\u56fe\u7b49\u3002<strong>\u63a5\u4e0b\u6765\uff0c\u6211\u4eec\u5c06\u8be6\u7ec6\u63a2\u8ba8\u5982\u4f55\u5728Python\u4e2d\u4f7f\u7528<code>plt<\/code>\u6765\u8fdb\u884c\u6570\u636e\u53ef\u89c6\u5316\uff0c\u5305\u62ec\u5b89\u88c5Matplotlib\u3001\u521b\u5efa\u57fa\u672c\u56fe\u8868\u3001\u5b9a\u5236\u56fe\u8868\u3001\u6dfb\u52a0\u6ce8\u91ca\u548c\u6807\u7b7e\u4ee5\u53ca\u4fdd\u5b58\u56fe\u8868\u7b49\u6b65\u9aa4\u3002<\/strong><\/p>\n<\/p>\n<p><p>\u4e00\u3001\u5b89\u88c5\u4e0e\u5bfc\u5165MATPLOTLIB<\/p>\n<\/p>\n<p><p>\u5728\u5f00\u59cb\u4f7f\u7528Matplotlib\u4e4b\u524d\uff0c\u9996\u5148\u9700\u8981\u786e\u4fdd\u5176\u5df2\u5b89\u88c5\u5728\u4f60\u7684Python\u73af\u5883\u4e2d\u3002\u4f60\u53ef\u4ee5\u901a\u8fc7\u4ee5\u4e0b\u6b65\u9aa4\u5b89\u88c5\u548c\u5bfc\u5165Matplotlib\uff1a<\/p>\n<\/p>\n<ol>\n<li>\n<p><strong>\u5b89\u88c5Matplotlib<\/strong><\/p>\n<\/p>\n<p><p>\u5982\u679c\u4f60\u8fd8\u6ca1\u6709\u5b89\u88c5Matplotlib\uff0c\u53ef\u4ee5\u4f7f\u7528pip\u547d\u4ee4\u6765\u5b89\u88c5\u3002\u6253\u5f00\u7ec8\u7aef\u6216\u547d\u4ee4\u63d0\u793a\u7b26\uff0c\u8f93\u5165\u4ee5\u4e0b\u547d\u4ee4\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">pip install matplotlib<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u8fd9\u5c06\u4e0b\u8f7d\u5e76\u5b89\u88c5Matplotlib\u5e93\u53ca\u5176\u76f8\u5173\u4f9d\u8d56\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u5bfc\u5165Matplotlib<\/strong><\/p>\n<\/p>\n<p><p>\u5728\u4f60\u7684Python\u811a\u672c\u6216\u4ea4\u4e92\u5f0f\u73af\u5883\u4e2d\u5bfc\u5165Matplotlib\u5e93\u7684pyplot\u6a21\u5757\u3002\u4e00\u822c\u7684\u5bfc\u5165\u65b9\u5f0f\u5982\u4e0b\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import matplotlib.pyplot as plt<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u901a\u8fc7\u8fd9\u79cd\u65b9\u5f0f\u5bfc\u5165\u540e\uff0c\u4f60\u53ef\u4ee5\u4f7f\u7528<code>plt<\/code>\u6765\u8c03\u7528pyplot\u6a21\u5757\u4e2d\u7684\u5404\u79cd\u51fd\u6570\u3002<\/p>\n<\/p>\n<\/li>\n<\/ol>\n<p><p>\u4e8c\u3001\u521b\u5efa\u57fa\u672c\u56fe\u8868<\/p>\n<\/p>\n<p><p>\u4f7f\u7528Matplotlib\u53ef\u4ee5\u8f7b\u677e\u521b\u5efa\u591a\u79cd\u7c7b\u578b\u7684\u56fe\u8868\u3002\u4ee5\u4e0b\u662f\u4e00\u4e9b\u5e38\u89c1\u56fe\u8868\u7684\u521b\u5efa\u65b9\u6cd5\uff1a<\/p>\n<\/p>\n<ol>\n<li>\n<p><strong>\u6298\u7ebf\u56fe<\/strong><\/p>\n<\/p>\n<p><p>\u6298\u7ebf\u56fe\u7528\u4e8e\u663e\u793a\u6570\u636e\u7684\u53d8\u5316\u8d8b\u52bf\u3002\u53ef\u4ee5\u4f7f\u7528<code>plt.plot()<\/code>\u51fd\u6570\u6765\u521b\u5efa\u6298\u7ebf\u56fe\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import matplotlib.pyplot as plt<\/p>\n<p>x = [1, 2, 3, 4, 5]<\/p>\n<p>y = [2, 3, 5, 7, 11]<\/p>\n<p>plt.plot(x, y)<\/p>\n<p>plt.title(&#39;Line Chart&#39;)<\/p>\n<p>plt.xlabel(&#39;X-axis&#39;)<\/p>\n<p>plt.ylabel(&#39;Y-axis&#39;)<\/p>\n<p>plt.show()<\/p>\n<p><\/code><\/pre>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u6563\u70b9\u56fe<\/strong><\/p>\n<\/p>\n<p><p>\u6563\u70b9\u56fe\u7528\u4e8e\u663e\u793a\u4e24\u4e2a\u53d8\u91cf\u4e4b\u95f4\u7684\u5173\u7cfb\uff0c\u53ef\u4ee5\u4f7f\u7528<code>plt.scatter()<\/code>\u51fd\u6570\u521b\u5efa\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import matplotlib.pyplot as plt<\/p>\n<p>x = [1, 2, 3, 4, 5]<\/p>\n<p>y = [2, 3, 5, 7, 11]<\/p>\n<p>plt.scatter(x, y)<\/p>\n<p>plt.title(&#39;Scatter Plot&#39;)<\/p>\n<p>plt.xlabel(&#39;X-axis&#39;)<\/p>\n<p>plt.ylabel(&#39;Y-axis&#39;)<\/p>\n<p>plt.show()<\/p>\n<p><\/code><\/pre>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u67f1\u72b6\u56fe<\/strong><\/p>\n<\/p>\n<p><p>\u67f1\u72b6\u56fe\u7528\u4e8e\u6bd4\u8f83\u4e0d\u540c\u7c7b\u522b\u7684\u6570\u636e\uff0c\u53ef\u4ee5\u4f7f\u7528<code>plt.bar()<\/code>\u51fd\u6570\u521b\u5efa\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import matplotlib.pyplot as plt<\/p>\n<p>categories = [&#39;A&#39;, &#39;B&#39;, &#39;C&#39;, &#39;D&#39;]<\/p>\n<p>values = [3, 7, 5, 9]<\/p>\n<p>plt.bar(categories, values)<\/p>\n<p>plt.title(&#39;Bar Chart&#39;)<\/p>\n<p>plt.xlabel(&#39;Categories&#39;)<\/p>\n<p>plt.ylabel(&#39;Values&#39;)<\/p>\n<p>plt.show()<\/p>\n<p><\/code><\/pre>\n<\/p>\n<\/li>\n<\/ol>\n<p><p>\u4e09\u3001\u5b9a\u5236\u56fe\u8868<\/p>\n<\/p>\n<p><p>Matplotlib\u63d0\u4f9b\u4e86\u591a\u79cd\u9009\u9879\u6765\u5b9a\u5236\u56fe\u8868\u7684\u5916\u89c2\u548c\u683c\u5f0f\uff0c\u4ee5\u4fbf\u66f4\u597d\u5730\u5c55\u793a\u6570\u636e\u3002<\/p>\n<\/p>\n<ol>\n<li>\n<p><strong>\u8c03\u6574\u7ebf\u6761\u6837\u5f0f<\/strong><\/p>\n<\/p>\n<p><p>\u5728\u6298\u7ebf\u56fe\u4e2d\uff0c\u53ef\u4ee5\u901a\u8fc7\u53c2\u6570\u81ea\u5b9a\u4e49\u7ebf\u6761\u7684\u6837\u5f0f\u3001\u989c\u8272\u548c\u5bbd\u5ea6\u3002\u4f8b\u5982\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">plt.plot(x, y, linestyle=&#39;--&#39;, color=&#39;r&#39;, linewidth=2)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u8fd9\u5c06\u4f7f\u7528\u7ea2\u8272\u865a\u7ebf\u7ed8\u5236\u7ebf\u6761\uff0c\u5e76\u8bbe\u7f6e\u7ebf\u5bbd\u4e3a2\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u8bbe\u7f6e\u56fe\u4f8b<\/strong><\/p>\n<\/p>\n<p><p>\u56fe\u4f8b\u53ef\u4ee5\u5e2e\u52a9\u89e3\u91ca\u56fe\u8868\u4e2d\u7684\u5404\u4e2a\u6570\u636e\u96c6\u3002\u53ef\u4ee5\u4f7f\u7528<code>plt.legend()<\/code>\u51fd\u6570\u6dfb\u52a0\u56fe\u4f8b\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">plt.plot(x, y, label=&#39;Data 1&#39;)<\/p>\n<p>plt.plot(x, [3, 4, 6, 8, 10], label=&#39;Data 2&#39;)<\/p>\n<p>plt.legend(loc=&#39;upper left&#39;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u4fee\u6539\u8f74\u523b\u5ea6<\/strong><\/p>\n<\/p>\n<p><p>\u53ef\u4ee5\u4f7f\u7528<code>plt.xticks()<\/code>\u548c<code>plt.yticks()<\/code>\u51fd\u6570\u81ea\u5b9a\u4e49\u8f74\u523b\u5ea6\u7684\u4f4d\u7f6e\u548c\u6807\u7b7e\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">plt.xticks([1, 2, 3, 4, 5], [&#39;One&#39;, &#39;Two&#39;, &#39;Three&#39;, &#39;Four&#39;, &#39;Five&#39;])<\/p>\n<p><\/code><\/pre>\n<\/p>\n<\/li>\n<\/ol>\n<p><p>\u56db\u3001\u6dfb\u52a0\u6ce8\u91ca\u548c\u6807\u7b7e<\/p>\n<\/p>\n<p><p>\u5728\u56fe\u8868\u4e2d\u6dfb\u52a0\u6ce8\u91ca\u548c\u6807\u7b7e\u53ef\u4ee5\u66f4\u597d\u5730\u89e3\u91ca\u6570\u636e\u7684\u542b\u4e49\u3002<\/p>\n<\/p>\n<ol>\n<li>\n<p><strong>\u6807\u9898\u548c\u8f74\u6807\u7b7e<\/strong><\/p>\n<\/p>\n<p><p>\u4f7f\u7528<code>plt.title()<\/code>\u3001<code>plt.xlabel()<\/code>\u548c<code>plt.ylabel()<\/code>\u51fd\u6570\u53ef\u4ee5\u4e3a\u56fe\u8868\u6dfb\u52a0\u6807\u9898\u548c\u8f74\u6807\u7b7e\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">plt.title(&#39;Example Chart&#39;)<\/p>\n<p>plt.xlabel(&#39;X-axis Label&#39;)<\/p>\n<p>plt.ylabel(&#39;Y-axis Label&#39;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u6570\u636e\u70b9\u6ce8\u91ca<\/strong><\/p>\n<\/p>\n<p><p>\u53ef\u4ee5\u4f7f\u7528<code>plt.annotate()<\/code>\u51fd\u6570\u4e3a\u7279\u5b9a\u7684\u6570\u636e\u70b9\u6dfb\u52a0\u6ce8\u91ca\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">plt.annotate(&#39;Important Point&#39;, xy=(3, 5), xytext=(4, 6),<\/p>\n<p>             arrowprops=dict(facecolor=&#39;black&#39;, arrowstyle=&#39;-&gt;&#39;))<\/p>\n<p><\/code><\/pre>\n<\/p>\n<\/li>\n<\/ol>\n<p><p>\u4e94\u3001\u4fdd\u5b58\u56fe\u8868<\/p>\n<\/p>\n<p><p>\u521b\u5efa\u7684\u56fe\u8868\u53ef\u4ee5\u4fdd\u5b58\u4e3a\u591a\u79cd\u683c\u5f0f\u7684\u6587\u4ef6\uff0c\u6bd4\u5982PNG\u3001PDF\u3001SVG\u7b49\u3002\u53ef\u4ee5\u4f7f\u7528<code>plt.savefig()<\/code>\u51fd\u6570\u4fdd\u5b58\u56fe\u8868\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">plt.savefig(&#39;chart.png&#39;)  # \u4fdd\u5b58\u4e3aPNG\u683c\u5f0f<\/p>\n<p>plt.savefig(&#39;chart.pdf&#39;)  # \u4fdd\u5b58\u4e3aPDF\u683c\u5f0f<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u4fdd\u5b58\u56fe\u8868\u65f6\uff0c\u53ef\u4ee5\u6307\u5b9a\u56fe\u50cf\u7684\u5206\u8fa8\u7387\u548c\u80cc\u666f\u989c\u8272\u7b49\u53c2\u6570\u3002\u4f8b\u5982\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">plt.savefig(&#39;chart.png&#39;, dpi=300, bbox_inches=&#39;tight&#39;, transparent=True)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u8fd9\u5c06\u4ee5300 DPI\u7684\u5206\u8fa8\u7387\u4fdd\u5b58\u56fe\u8868\uff0c\u5e76\u53bb\u9664\u591a\u4f59\u7684\u7a7a\u767d\u8fb9\u754c\uff0c\u4e14\u80cc\u666f\u4e3a\u900f\u660e\u3002<\/p>\n<\/p>\n<p><p>\u901a\u8fc7\u8fd9\u4e9b\u6b65\u9aa4\uff0c\u4f60\u53ef\u4ee5\u5728Python\u4e2d\u4f7f\u7528<code>plt<\/code>\u6765\u521b\u5efa\u548c\u5b9a\u5236\u5404\u79cd\u7c7b\u578b\u7684\u56fe\u8868\uff0c\u4ece\u800c\u5b9e\u73b0\u5f3a\u5927\u7684\u6570\u636e\u53ef\u89c6\u5316\u529f\u80fd\u3002\u4f7f\u7528Matplotlib\u8fdb\u884c\u6570\u636e\u53ef\u89c6\u5316\u4e0d\u4ec5\u53ef\u4ee5\u5e2e\u52a9\u4f60\u66f4\u597d\u5730\u7406\u89e3\u6570\u636e\uff0c\u8fd8\u53ef\u4ee5\u521b\u5efa\u4e13\u4e1a\u7684\u56fe\u8868\u7528\u4e8e\u62a5\u544a\u548c\u5c55\u793a\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p> <strong>\u5982\u4f55\u5728Python\u4e2d\u5b89\u88c5Matplotlib\u5e93\u4ee5\u4f7f\u7528plt\uff1f<\/strong><br \/>\u8981\u5728Python\u4e2d\u4f7f\u7528plt\uff0c\u9996\u5148\u9700\u8981\u5b89\u88c5Matplotlib\u5e93\u3002\u53ef\u4ee5\u901a\u8fc7\u8fd0\u884c\u547d\u4ee4<code>pip install matplotlib<\/code>\u6765\u5b8c\u6210\u5b89\u88c5\u3002\u786e\u4fdd\u4f60\u5728\u547d\u4ee4\u884c\u4e2d\u8fd0\u884c\u6b64\u547d\u4ee4\uff0c\u5b89\u88c5\u6210\u529f\u540e\u5373\u53ef\u5728\u4f60\u7684Python\u811a\u672c\u4e2d\u5bfc\u5165<code>matplotlib.pyplot<\/code>\u6a21\u5757\u3002\u4f7f\u7528<code>import matplotlib.pyplot as plt<\/code>\u5373\u53ef\u5f00\u59cb\u4f7f\u7528\u3002<\/p>\n<p><strong>\u4f7f\u7528plt\u7ed8\u5236\u56fe\u5f62\u65f6\uff0c\u652f\u6301\u54ea\u4e9b\u7c7b\u578b\u7684\u56fe\u8868\uff1f<\/strong><br \/>Matplotlib\u7684plt\u6a21\u5757\u652f\u6301\u591a\u79cd\u7c7b\u578b\u7684\u56fe\u8868\uff0c\u5305\u62ec\u6298\u7ebf\u56fe\u3001\u6563\u70b9\u56fe\u3001\u67f1\u72b6\u56fe\u3001\u997c\u56fe\u3001\u7bb1\u5f62\u56fe\u7b49\u3002\u7528\u6237\u53ef\u4ee5\u6839\u636e\u81ea\u5df1\u7684\u9700\u6c42\u9009\u62e9\u5408\u9002\u7684\u56fe\u8868\u7c7b\u578b\uff0c\u901a\u8fc7\u7b80\u5355\u7684\u51fd\u6570\u8c03\u7528\u5373\u53ef\u751f\u6210\u76f8\u5e94\u7684\u53ef\u89c6\u5316\u6548\u679c\u3002\u6bcf\u79cd\u56fe\u8868\u90fd\u6709\u5176\u7279\u5b9a\u7684\u53c2\u6570\u548c\u9009\u9879\uff0c\u53ef\u4ee5\u5e2e\u52a9\u7528\u6237\u5b9a\u5236\u56fe\u8868\u7684\u5916\u89c2\u548c\u529f\u80fd\u3002<\/p>\n<p><strong>\u5982\u4f55\u5728\u4f7f\u7528plt\u7ed8\u56fe\u65f6\u8bbe\u7f6e\u56fe\u8868\u7684\u6807\u9898\u548c\u8f74\u6807\u7b7e\uff1f<\/strong><br \/>\u5728\u521b\u5efa\u56fe\u8868\u65f6\uff0c\u53ef\u4ee5\u901a\u8fc7\u4f7f\u7528<code>plt.title()<\/code>\u51fd\u6570\u6765\u8bbe\u7f6e\u56fe\u8868\u7684\u6807\u9898\u3002\u8f74\u6807\u7b7e\u5219\u53ef\u4ee5\u901a\u8fc7<code>plt.xlabel()<\/code>\u548c<code>plt.ylabel()<\/code>\u51fd\u6570\u8fdb\u884c\u8bbe\u7f6e\u3002\u8fd9\u4e9b\u51fd\u6570\u90fd\u63a5\u53d7\u4e00\u4e2a\u5b57\u7b26\u4e32\u53c2\u6570\uff0c\u8868\u793a\u4f60\u60f3\u8981\u663e\u793a\u7684\u6587\u672c\u3002\u8fd9\u6837\u53ef\u4ee5\u4f7f\u56fe\u8868\u66f4\u52a0\u6e05\u6670\u6613\u61c2\uff0c\u4fbf\u4e8e\u89c2\u4f17\u7406\u89e3\u6570\u636e\u7684\u542b\u4e49\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"\u5728Python\u4e2d\uff0c\u4f7f\u7528plt\u662f\u6307\u5229\u7528Matplotlib\u5e93\u7684pyplot\u6a21\u5757\u8fdb\u884c\u6570\u636e\u53ef\u89c6\u5316\u3002\u8fd9\u662f\u4e00\u79cd\u975e\u5e38\u6d41\u884c\u7684 [&hellip;]","protected":false},"author":3,"featured_media":992553,"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\/992549"}],"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=992549"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/992549\/revisions"}],"predecessor-version":[{"id":992554,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/992549\/revisions\/992554"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/992553"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=992549"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=992549"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=992549"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}