V2EX  ›  英汉词典

Pyplot

Definition / 释义

pyplot 通常指 Python 的 Matplotlib 库中的 matplotlib.pyplot 模块,提供一套类似 MATLAB 的绘图接口,用于快速创建折线图、散点图、柱状图等可视化图表(如 plot()scatter()hist()show())。也常被口语化地用来泛指“用 pyplot 画图”。

Pronunciation / 发音

/ˈpaɪˌplɒt/ (also /ˈpaɪˌplɑːt/

Examples / 例句

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 以用于报告。

Etymology / 词源

pyplot 可理解为 py(thon) + plot(绘图) 的组合命名,表示“Python 的绘图接口”。它是 Matplotlib 中面向快速绘图的高层接口,设计风格借鉴了 MATLAB 的绘图用法,使用户能用较少代码生成图表。

Related Words / 相关词

Literary Works / 文学作品(或著作)中的出现

  • Python Data Science Handbook(Jake VanderPlas)——示例中频繁使用 matplotlib.pyplot(常写作 plt
  • Python for Data Analysis(Wes McKinney)——数据分析与可视化章节常见 pyplot
  • Hands-On Machine Learning with Scikit-Learn, Keras & TensorFlow(Aurélien Géron)——用 pyplot 展示训练曲线、分类结果等
  • Matplotlib 官方文档(User Guide / Tutorials)——核心示例与 API 讲解大量涉及 pyplot
关于   ·   帮助文档   ·   自助推广系统   ·   博客   ·   API   ·   FAQ   ·   Solana   ·   690 人在线   最高记录 6679   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 33ms · UTC 21:59 · PVG 05:59 · LAX 13:59 · JFK 16:59
♥ Do have faith in what you're doing.