pyplot 通常指 Python 的 Matplotlib 库中的 matplotlib.pyplot 模块,提供一套类似 MATLAB 的绘图接口,用于快速创建折线图、散点图、柱状图等可视化图表(如 plot()、scatter()、hist()、show())。也常被口语化地用来泛指“用 pyplot 画图”。
/ˈpaɪˌplɒt/ (also /ˈpaɪˌplɑːt/
I made a simple line chart with pyplot.
我用 pyplot 画了一个简单的折线图。
Using matplotlib.pyplot, you can customize the figure size, add labels, and save the plot as a PNG for reports.
使用 matplotlib.pyplot,你可以自定义图像尺寸、添加标签,并将图表保存为 PNG 以用于报告。
pyplot 可理解为 py(thon) + plot(绘图) 的组合命名,表示“Python 的绘图接口”。它是 Matplotlib 中面向快速绘图的高层接口,设计风格借鉴了 MATLAB 的绘图用法,使用户能用较少代码生成图表。
matplotlib.pyplot(常写作 plt)pyplotpyplot 展示训练曲线、分类结果等pyplot