{"id":1098061,"date":"2025-01-08T15:17:45","date_gmt":"2025-01-08T07:17:45","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/1098061.html"},"modified":"2025-01-08T15:17:48","modified_gmt":"2025-01-08T07:17:48","slug":"python%e5%a6%82%e4%bd%95%e8%bf%9b%e8%a1%8c%e5%9b%be%e5%bd%a2%e5%8f%af%e8%a7%86%e5%8c%96-2","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/1098061.html","title":{"rendered":"Python\u5982\u4f55\u8fdb\u884c\u56fe\u5f62\u53ef\u89c6\u5316"},"content":{"rendered":"<p style=\"text-align:center;\" ><img decoding=\"async\" src=\"https:\/\/cdn-kb.worktile.com\/kb\/wp-content\/uploads\/2024\/04\/24212542\/09fe4f2d-592a-42bf-b089-83044732f81d.webp\" alt=\"Python\u5982\u4f55\u8fdb\u884c\u56fe\u5f62\u53ef\u89c6\u5316\" \/><\/p>\n<p><p> <strong>Python\u8fdb\u884c\u56fe\u5f62\u53ef\u89c6\u5316\u7684\u6838\u5fc3\u5de5\u5177\u5305\u62ec\uff1aMatplotlib\u3001Seaborn\u3001Plotly\u3001Bokeh\u3002<\/strong> \u5176\u4e2d\uff0cMatplotlib \u662f\u6700\u57fa\u7840\u7684\uff0c\u53ef\u5b9e\u73b0\u5404\u79cd2D\u56fe\u5f62\u7684\u7ed8\u5236\uff1bSeaborn \u5728 Matplotlib \u7684\u57fa\u7840\u4e0a\u8fdb\u884c\u4e86\u9ad8\u7ea7\u5c01\u88c5\uff0c\u63d0\u4f9b\u4e86\u66f4\u7f8e\u89c2\u7684\u7edf\u8ba1\u56fe\u5f62\uff1bPlotly \u652f\u6301\u4ea4\u4e92\u5f0f\u56fe\u5f62\uff0c\u9002\u5408\u5b9e\u65f6\u6570\u636e\u53ef\u89c6\u5316\uff1bBokeh \u5219\u4e3b\u8981\u7528\u4e8e\u5927\u6570\u636e\u96c6\u7684\u53ef\u89c6\u5316\uff0c\u63d0\u4f9b\u4e86\u4e30\u5bcc\u7684\u4ea4\u4e92\u529f\u80fd\u3002<\/p>\n<\/p>\n<p><p>\u63a5\u4e0b\u6765\uff0c\u6211\u5c06\u8be6\u7ec6\u4ecb\u7ecd\u5982\u4f55\u4f7f\u7528\u8fd9\u4e9b\u5de5\u5177\u8fdb\u884c\u56fe\u5f62\u53ef\u89c6\u5316\u3002<\/p>\n<\/p>\n<p><h3>\u4e00\u3001Matplotlib<\/h3>\n<\/p>\n<p><p>Matplotlib \u662f Python \u4e2d\u6700\u5e38\u7528\u7684\u7ed8\u56fe\u5e93\uff0c\u4e3b\u8981\u7528\u4e8e\u521b\u5efa\u9759\u6001\u3001\u52a8\u6001\u548c\u4ea4\u4e92\u5f0f\u56fe\u5f62\u3002\u5b83\u63d0\u4f9b\u4e86\u4e30\u5bcc\u7684\u7ed8\u56fe\u529f\u80fd\uff0c\u53ef\u4ee5\u7ed8\u5236\u5404\u79cd\u7c7b\u578b\u7684\u56fe\u8868\uff0c\u5982\u6298\u7ebf\u56fe\u3001\u67f1\u72b6\u56fe\u3001\u6563\u70b9\u56fe\u7b49\u3002<\/p>\n<\/p>\n<p><h4>1\u3001\u57fa\u7840\u4f7f\u7528<\/h4>\n<\/p>\n<p><p>Matplotlib \u7684\u57fa\u7840\u4f7f\u7528\u975e\u5e38\u7b80\u5355\u3002\u9996\u5148\u9700\u8981\u5bfc\u5165 Matplotlib \u5e93\uff0c\u5e76\u4f7f\u7528 <code>pyplot<\/code> \u6a21\u5757\u8fdb\u884c\u7ed8\u56fe\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import matplotlib.pyplot as plt<\/p>\n<h2><strong>\u521b\u5efa\u6570\u636e<\/strong><\/h2>\n<p>x = [1, 2, 3, 4, 5]<\/p>\n<p>y = [2, 3, 5, 7, 11]<\/p>\n<h2><strong>\u7ed8\u5236\u6298\u7ebf\u56fe<\/strong><\/h2>\n<p>plt.plot(x, y)<\/p>\n<h2><strong>\u6dfb\u52a0\u6807\u9898\u548c\u6807\u7b7e<\/strong><\/h2>\n<p>plt.title(&#39;Simple Line Plot&#39;)<\/p>\n<p>plt.xlabel(&#39;X-axis&#39;)<\/p>\n<p>plt.ylabel(&#39;Y-axis&#39;)<\/p>\n<h2><strong>\u663e\u793a\u56fe\u5f62<\/strong><\/h2>\n<p>plt.show()<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>2\u3001\u9ad8\u7ea7\u4f7f\u7528<\/h4>\n<\/p>\n<p><p>Matplotlib \u63d0\u4f9b\u4e86\u4e30\u5bcc\u7684\u81ea\u5b9a\u4e49\u9009\u9879\uff0c\u53ef\u4ee5\u5bf9\u56fe\u5f62\u8fdb\u884c\u8be6\u7ec6\u7684\u8c03\u6574\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import matplotlib.pyplot as plt<\/p>\n<h2><strong>\u521b\u5efa\u6570\u636e<\/strong><\/h2>\n<p>x = [1, 2, 3, 4, 5]<\/p>\n<p>y1 = [2, 3, 5, 7, 11]<\/p>\n<p>y2 = [1, 4, 6, 8, 10]<\/p>\n<h2><strong>\u521b\u5efa\u4e00\u4e2a\u56fe\u5f62\u5bf9\u8c61<\/strong><\/h2>\n<p>fig, ax = plt.subplots()<\/p>\n<h2><strong>\u7ed8\u5236\u591a\u6761\u6298\u7ebf<\/strong><\/h2>\n<p>ax.plot(x, y1, label=&#39;Prime Numbers&#39;)<\/p>\n<p>ax.plot(x, y2, label=&#39;Even Numbers&#39;)<\/p>\n<h2><strong>\u6dfb\u52a0\u7f51\u683c<\/strong><\/h2>\n<p>ax.grid(True)<\/p>\n<h2><strong>\u6dfb\u52a0\u56fe\u4f8b<\/strong><\/h2>\n<p>ax.legend()<\/p>\n<h2><strong>\u6dfb\u52a0\u6807\u9898\u548c\u6807\u7b7e<\/strong><\/h2>\n<p>ax.set_title(&#39;Multiple Line Plot&#39;)<\/p>\n<p>ax.set_xlabel(&#39;X-axis&#39;)<\/p>\n<p>ax.set_ylabel(&#39;Y-axis&#39;)<\/p>\n<h2><strong>\u4fdd\u5b58\u56fe\u5f62<\/strong><\/h2>\n<p>plt.savefig(&#39;line_plot.png&#39;)<\/p>\n<h2><strong>\u663e\u793a\u56fe\u5f62<\/strong><\/h2>\n<p>plt.show()<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>\u4e8c\u3001Seaborn<\/h3>\n<\/p>\n<p><p>Seaborn \u662f\u57fa\u4e8e Matplotlib \u6784\u5efa\u7684\u7edf\u8ba1\u7ed8\u56fe\u5e93\uff0c\u63d0\u4f9b\u4e86\u66f4\u9ad8\u7ea7\u7684\u63a5\u53e3\uff0c\u4f7f\u7ed8\u56fe\u66f4\u7b80\u6d01\u7f8e\u89c2\u3002\u5b83\u7279\u522b\u9002\u5408\u4e8e\u521b\u5efa\u590d\u6742\u7684\u7edf\u8ba1\u56fe\u8868\uff0c\u5982\u70ed\u56fe\u3001\u7bb1\u7ebf\u56fe\u3001\u6563\u70b9\u56fe\u77e9\u9635\u7b49\u3002<\/p>\n<\/p>\n<p><h4>1\u3001\u57fa\u7840\u4f7f\u7528<\/h4>\n<\/p>\n<p><p>Seaborn \u7684\u57fa\u7840\u4f7f\u7528\u975e\u5e38\u7b80\u5355\uff0c\u901a\u5e38\u53ea\u9700\u8981\u51e0\u884c\u4ee3\u7801\u5373\u53ef\u521b\u5efa\u7f8e\u89c2\u7684\u56fe\u8868\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import seaborn as sns<\/p>\n<p>import matplotlib.pyplot as plt<\/p>\n<h2><strong>\u52a0\u8f7d\u793a\u4f8b\u6570\u636e\u96c6<\/strong><\/h2>\n<p>tips = sns.load_dataset(&#39;tips&#39;)<\/p>\n<h2><strong>\u521b\u5efa\u6563\u70b9\u56fe<\/strong><\/h2>\n<p>sns.scatterplot(x=&#39;total_bill&#39;, y=&#39;tip&#39;, data=tips)<\/p>\n<h2><strong>\u663e\u793a\u56fe\u5f62<\/strong><\/h2>\n<p>plt.show()<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>2\u3001\u9ad8\u7ea7\u4f7f\u7528<\/h4>\n<\/p>\n<p><p>Seaborn \u63d0\u4f9b\u4e86\u4e30\u5bcc\u7684\u81ea\u5b9a\u4e49\u9009\u9879\uff0c\u53ef\u4ee5\u5bf9\u56fe\u5f62\u8fdb\u884c\u8be6\u7ec6\u7684\u8c03\u6574\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import seaborn as sns<\/p>\n<p>import matplotlib.pyplot as plt<\/p>\n<h2><strong>\u52a0\u8f7d\u793a\u4f8b\u6570\u636e\u96c6<\/strong><\/h2>\n<p>tips = sns.load_dataset(&#39;tips&#39;)<\/p>\n<h2><strong>\u521b\u5efa\u5e26\u56de\u5f52\u7ebf\u7684\u6563\u70b9\u56fe<\/strong><\/h2>\n<p>sns.lmplot(x=&#39;total_bill&#39;, y=&#39;tip&#39;, data=tips, hue=&#39;smoker&#39;, markers=[&#39;o&#39;, &#39;x&#39;])<\/p>\n<h2><strong>\u6dfb\u52a0\u6807\u9898<\/strong><\/h2>\n<p>plt.title(&#39;Total Bill vs Tip with Regression Line&#39;)<\/p>\n<h2><strong>\u663e\u793a\u56fe\u5f62<\/strong><\/h2>\n<p>plt.show()<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>\u4e09\u3001Plotly<\/h3>\n<\/p>\n<p><p>Plotly \u662f\u4e00\u4e2a\u7528\u4e8e\u521b\u5efa\u4ea4\u4e92\u5f0f\u56fe\u5f62\u7684\u7ed8\u56fe\u5e93\uff0c\u652f\u6301\u5728\u7f51\u9875\u4e2d\u5d4c\u5165\u4ea4\u4e92\u5f0f\u56fe\u8868\u3002\u5b83\u7279\u522b\u9002\u5408\u4e8e\u5b9e\u65f6\u6570\u636e\u53ef\u89c6\u5316\u548c\u6570\u636e\u5206\u6790\u3002<\/p>\n<\/p>\n<p><h4>1\u3001\u57fa\u7840\u4f7f\u7528<\/h4>\n<\/p>\n<p><p>Plotly \u7684\u57fa\u7840\u4f7f\u7528\u975e\u5e38\u7b80\u5355\uff0c\u901a\u5e38\u53ea\u9700\u8981\u51e0\u884c\u4ee3\u7801\u5373\u53ef\u521b\u5efa\u4ea4\u4e92\u5f0f\u56fe\u8868\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import plotly.express as px<\/p>\n<h2><strong>\u52a0\u8f7d\u793a\u4f8b\u6570\u636e\u96c6<\/strong><\/h2>\n<p>df = px.data.iris()<\/p>\n<h2><strong>\u521b\u5efa\u6563\u70b9\u56fe<\/strong><\/h2>\n<p>fig = px.scatter(df, x=&#39;sepal_width&#39;, y=&#39;sepal_length&#39;, color=&#39;species&#39;)<\/p>\n<h2><strong>\u663e\u793a\u56fe\u5f62<\/strong><\/h2>\n<p>fig.show()<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>2\u3001\u9ad8\u7ea7\u4f7f\u7528<\/h4>\n<\/p>\n<p><p>Plotly \u63d0\u4f9b\u4e86\u4e30\u5bcc\u7684\u81ea\u5b9a\u4e49\u9009\u9879\uff0c\u53ef\u4ee5\u5bf9\u56fe\u5f62\u8fdb\u884c\u8be6\u7ec6\u7684\u8c03\u6574\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import plotly.graph_objs as go<\/p>\n<h2><strong>\u521b\u5efa\u6570\u636e<\/strong><\/h2>\n<p>x = [1, 2, 3, 4, 5]<\/p>\n<p>y1 = [2, 3, 5, 7, 11]<\/p>\n<p>y2 = [1, 4, 6, 8, 10]<\/p>\n<h2><strong>\u521b\u5efa\u6298\u7ebf\u56fe<\/strong><\/h2>\n<p>fig = go.Figure()<\/p>\n<p>fig.add_trace(go.Scatter(x=x, y=y1, mode=&#39;lines+markers&#39;, name=&#39;Prime Numbers&#39;))<\/p>\n<p>fig.add_trace(go.Scatter(x=x, y=y2, mode=&#39;lines+markers&#39;, name=&#39;Even Numbers&#39;))<\/p>\n<h2><strong>\u6dfb\u52a0\u6807\u9898\u548c\u6807\u7b7e<\/strong><\/h2>\n<p>fig.update_layout(title=&#39;Multiple Line Plot&#39;, xaxis_title=&#39;X-axis&#39;, yaxis_title=&#39;Y-axis&#39;)<\/p>\n<h2><strong>\u663e\u793a\u56fe\u5f62<\/strong><\/h2>\n<p>fig.show()<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>\u56db\u3001Bokeh<\/h3>\n<\/p>\n<p><p>Bokeh \u662f\u4e00\u4e2a\u7528\u4e8e\u521b\u5efa\u4ea4\u4e92\u5f0f\u56fe\u5f62\u7684\u7ed8\u56fe\u5e93\uff0c\u7279\u522b\u9002\u5408\u4e8e\u5927\u6570\u636e\u96c6\u7684\u53ef\u89c6\u5316\u3002\u5b83\u63d0\u4f9b\u4e86\u4e30\u5bcc\u7684\u4ea4\u4e92\u529f\u80fd\uff0c\u53ef\u4ee5\u5728\u56fe\u5f62\u4e2d\u6dfb\u52a0\u5de5\u5177\u63d0\u793a\u3001\u7f29\u653e\u3001\u5e73\u79fb\u7b49\u64cd\u4f5c\u3002<\/p>\n<\/p>\n<p><h4>1\u3001\u57fa\u7840\u4f7f\u7528<\/h4>\n<\/p>\n<p><p>Bokeh \u7684\u57fa\u7840\u4f7f\u7528\u975e\u5e38\u7b80\u5355\uff0c\u901a\u5e38\u53ea\u9700\u8981\u51e0\u884c\u4ee3\u7801\u5373\u53ef\u521b\u5efa\u4ea4\u4e92\u5f0f\u56fe\u8868\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">from bokeh.plotting import figure, show<\/p>\n<p>from bokeh.io import output_notebook<\/p>\n<h2><strong>\u5728 Jupyter Notebook \u4e2d\u663e\u793a\u56fe\u5f62<\/strong><\/h2>\n<p>output_notebook()<\/p>\n<h2><strong>\u521b\u5efa\u6570\u636e<\/strong><\/h2>\n<p>x = [1, 2, 3, 4, 5]<\/p>\n<p>y = [2, 3, 5, 7, 11]<\/p>\n<h2><strong>\u521b\u5efa\u56fe\u5f62\u5bf9\u8c61<\/strong><\/h2>\n<p>p = figure(title=&#39;Simple Line Plot&#39;, x_axis_label=&#39;X-axis&#39;, y_axis_label=&#39;Y-axis&#39;)<\/p>\n<h2><strong>\u7ed8\u5236\u6298\u7ebf\u56fe<\/strong><\/h2>\n<p>p.line(x, y, legend_label=&#39;Prime Numbers&#39;, line_width=2)<\/p>\n<h2><strong>\u663e\u793a\u56fe\u5f62<\/strong><\/h2>\n<p>show(p)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>2\u3001\u9ad8\u7ea7\u4f7f\u7528<\/h4>\n<\/p>\n<p><p>Bokeh \u63d0\u4f9b\u4e86\u4e30\u5bcc\u7684\u81ea\u5b9a\u4e49\u9009\u9879\uff0c\u53ef\u4ee5\u5bf9\u56fe\u5f62\u8fdb\u884c\u8be6\u7ec6\u7684\u8c03\u6574\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">from bokeh.plotting import figure, show<\/p>\n<p>from bokeh.models import HoverTool<\/p>\n<h2><strong>\u521b\u5efa\u6570\u636e<\/strong><\/h2>\n<p>x = [1, 2, 3, 4, 5]<\/p>\n<p>y1 = [2, 3, 5, 7, 11]<\/p>\n<p>y2 = [1, 4, 6, 8, 10]<\/p>\n<h2><strong>\u521b\u5efa\u56fe\u5f62\u5bf9\u8c61<\/strong><\/h2>\n<p>p = figure(title=&#39;Multiple Line Plot&#39;, x_axis_label=&#39;X-axis&#39;, y_axis_label=&#39;Y-axis&#39;)<\/p>\n<h2><strong>\u7ed8\u5236\u591a\u6761\u6298\u7ebf<\/strong><\/h2>\n<p>p.line(x, y1, legend_label=&#39;Prime Numbers&#39;, line_width=2, color=&#39;blue&#39;)<\/p>\n<p>p.line(x, y2, legend_label=&#39;Even Numbers&#39;, line_width=2, color=&#39;green&#39;)<\/p>\n<h2><strong>\u6dfb\u52a0\u5de5\u5177\u63d0\u793a<\/strong><\/h2>\n<p>hover = HoverTool()<\/p>\n<p>hover.tooltips = [(&#39;X&#39;, &#39;@x&#39;), (&#39;Y&#39;, &#39;@y&#39;)]<\/p>\n<p>p.add_tools(hover)<\/p>\n<h2><strong>\u663e\u793a\u56fe\u5f62<\/strong><\/h2>\n<p>show(p)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>\u4e94\u3001\u603b\u7ed3<\/h3>\n<\/p>\n<p><p>\u4ee5\u4e0a\u4ecb\u7ecd\u4e86 Python \u4e2d\u8fdb\u884c\u56fe\u5f62\u53ef\u89c6\u5316\u7684\u51e0\u79cd\u5e38\u7528\u5de5\u5177\uff0c\u5305\u62ec Matplotlib\u3001Seaborn\u3001Plotly \u548c Bokeh\u3002\u6bcf\u79cd\u5de5\u5177\u90fd\u6709\u5176\u72ec\u7279\u7684\u7279\u70b9\u548c\u4f18\u52bf\uff0c\u53ef\u4ee5\u6839\u636e\u5b9e\u9645\u9700\u6c42\u9009\u62e9\u5408\u9002\u7684\u5de5\u5177\u8fdb\u884c\u56fe\u5f62\u53ef\u89c6\u5316\u3002<\/p>\n<\/p>\n<p><p><strong>Matplotlib<\/strong>\uff1a\u6700\u57fa\u7840\u7684\u7ed8\u56fe\u5e93\uff0c\u9002\u5408\u9759\u6001\u56fe\u5f62\u7684\u7ed8\u5236\u3002<\/p>\n<p><strong>Seaborn<\/strong>\uff1a\u57fa\u4e8e Matplotlib \u6784\u5efa\uff0c\u9002\u5408\u521b\u5efa\u7f8e\u89c2\u7684\u7edf\u8ba1\u56fe\u8868\u3002<\/p>\n<p><strong>Plotly<\/strong>\uff1a\u652f\u6301\u4ea4\u4e92\u5f0f\u56fe\u5f62\uff0c\u9002\u5408\u5b9e\u65f6\u6570\u636e\u53ef\u89c6\u5316\u3002<\/p>\n<p><strong>Bokeh<\/strong>\uff1a\u9002\u5408\u5927\u6570\u636e\u96c6\u7684\u53ef\u89c6\u5316\uff0c\u63d0\u4f9b\u4e30\u5bcc\u7684\u4ea4\u4e92\u529f\u80fd\u3002<\/p>\n<\/p>\n<p><p>\u5728\u5b9e\u9645\u5e94\u7528\u4e2d\uff0c\u53ef\u4ee5\u6839\u636e\u6570\u636e\u7279\u70b9\u548c\u53ef\u89c6\u5316\u9700\u6c42\u9009\u62e9\u5408\u9002\u7684\u5de5\u5177\uff0c\u5145\u5206\u53d1\u6325\u5176\u4f18\u52bf\uff0c\u521b\u5efa\u51fa\u9ad8\u8d28\u91cf\u7684\u56fe\u5f62\u53ef\u89c6\u5316\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p> <strong>\u5982\u4f55\u9009\u62e9\u9002\u5408\u7684Python\u5e93\u8fdb\u884c\u56fe\u5f62\u53ef\u89c6\u5316\uff1f<\/strong><br \/>\u5728Python\u4e2d\uff0c\u6709\u591a\u4e2a\u5e93\u53ef\u7528\u4e8e\u56fe\u5f62\u53ef\u89c6\u5316\uff0c\u5982Matplotlib\u3001Seaborn\u3001Plotly\u548cBokeh\u7b49\u3002\u9009\u62e9\u5408\u9002\u7684\u5e93\u53d6\u51b3\u4e8e\u60a8\u7684\u9700\u6c42\u3002\u4f8b\u5982\uff0cMatplotlib\u975e\u5e38\u9002\u5408\u57fa\u672c\u7684\u7ed8\u56fe\u9700\u6c42\uff0c\u800cSeaborn\u5219\u63d0\u4f9b\u66f4\u52a0\u7f8e\u89c2\u7684\u7edf\u8ba1\u56fe\u5f62\u3002Plotly\u548cBokeh\u652f\u6301\u4ea4\u4e92\u5f0f\u56fe\u5f62\uff0c\u9002\u5408\u9700\u8981\u52a8\u6001\u5c55\u793a\u6570\u636e\u7684\u573a\u666f\u3002<\/p>\n<p><strong>Python\u56fe\u5f62\u53ef\u89c6\u5316\u7684\u5e38\u89c1\u5e94\u7528\u573a\u666f\u6709\u54ea\u4e9b\uff1f<\/strong><br \/>\u56fe\u5f62\u53ef\u89c6\u5316\u5728\u591a\u4e2a\u9886\u57df\u4e2d\u90fd\u6709\u5e7f\u6cdb\u5e94\u7528\uff0c\u5305\u62ec\u6570\u636e\u5206\u6790\u3001<a href=\"https:\/\/docs.pingcode.com\/ask\/59192.html\" target=\"_blank\">\u673a\u5668\u5b66\u4e60<\/a>\u7ed3\u679c\u5c55\u793a\u3001\u79d1\u5b66\u7814\u7a76\u3001\u91d1\u878d\u6570\u636e\u5206\u6790\u4ee5\u53ca\u5546\u4e1a\u62a5\u544a\u7b49\u3002\u5728\u6570\u636e\u5206\u6790\u4e2d\uff0c\u56fe\u5f62\u53ef\u89c6\u5316\u53ef\u4ee5\u5e2e\u52a9\u7528\u6237\u66f4\u76f4\u89c2\u5730\u7406\u89e3\u6570\u636e\u5206\u5e03\u548c\u8d8b\u52bf\uff0c\u800c\u5728\u673a\u5668\u5b66\u4e60\u4e2d\uff0c\u6a21\u578b\u6027\u80fd\u7684\u53ef\u89c6\u5316\u5219\u6709\u52a9\u4e8e\u8bc4\u4f30\u548c\u4f18\u5316\u7b97\u6cd5\u3002<\/p>\n<p><strong>\u5982\u4f55\u5728Python\u4e2d\u521b\u5efa\u4ea4\u4e92\u5f0f\u56fe\u5f62\uff1f<\/strong><br \/>\u8981\u521b\u5efa\u4ea4\u4e92\u5f0f\u56fe\u5f62\uff0c\u53ef\u4ee5\u4f7f\u7528Plotly\u6216Bokeh\u7b49\u5e93\u3002Plotly\u63d0\u4f9b\u4e86\u7b80\u5355\u7684API\uff0c\u4f7f\u5f97\u7528\u6237\u53ef\u4ee5\u5feb\u901f\u751f\u6210\u4ea4\u4e92\u5f0f\u56fe\u8868\uff0c\u800cBokeh\u5219\u5141\u8bb8\u7528\u6237\u5b9a\u5236\u66f4\u590d\u6742\u7684\u4ea4\u4e92\u529f\u80fd\u3002\u901a\u8fc7\u8fd9\u4e9b\u5e93\uff0c\u60a8\u53ef\u4ee5\u6dfb\u52a0\u5de5\u5177\u63d0\u793a\u3001\u7f29\u653e\u548c\u62d6\u52a8\u529f\u80fd\uff0c\u4ece\u800c\u589e\u5f3a\u7528\u6237\u4f53\u9a8c\u3002<\/p>\n<p><strong>\u5728Python\u4e2d\u5982\u4f55\u5904\u7406\u5927\u6570\u636e\u96c6\u7684\u53ef\u89c6\u5316\uff1f<\/strong><br \/>\u5bf9\u4e8e\u5927\u6570\u636e\u96c6\uff0c\u9009\u62e9\u9ad8\u6548\u7684\u53ef\u89c6\u5316\u5de5\u5177\u81f3\u5173\u91cd\u8981\u3002Dask\u548cVaex\u7b49\u5e93\u53ef\u4ee5\u5904\u7406\u5927\u89c4\u6a21\u6570\u636e\u5e76\u4e0eMatplotlib\u6216Seaborn\u7ed3\u5408\u4f7f\u7528\uff0c\u4ee5\u4fbf\u5728\u53ef\u89c6\u5316\u65f6\u4e0d\u4f1a\u51fa\u73b0\u6027\u80fd\u74f6\u9888\u3002\u6b64\u5916\uff0c\u8003\u8651\u4f7f\u7528\u6570\u636e\u62bd\u6837\u6216\u805a\u5408\u6280\u672f\uff0c\u786e\u4fdd\u56fe\u8868\u4ecd\u7136\u53ef\u8bfb\u800c\u4e0d\u4f1a\u4e22\u5931\u91cd\u8981\u4fe1\u606f\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"Python\u8fdb\u884c\u56fe\u5f62\u53ef\u89c6\u5316\u7684\u6838\u5fc3\u5de5\u5177\u5305\u62ec\uff1aMatplotlib\u3001Seaborn\u3001Plotly\u3001Bokeh\u3002 \u5176 [&hellip;]","protected":false},"author":3,"featured_media":1098069,"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\/1098061"}],"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=1098061"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1098061\/revisions"}],"predecessor-version":[{"id":1098070,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1098061\/revisions\/1098070"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/1098069"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=1098061"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=1098061"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=1098061"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}