matplotlib
创建可用于发表的 Matplotlib 图形
在复杂科学绘图中,Matplotlib 很难始终如一地使用。此技能提供实用示例、样式指导和辅助脚本,帮助创建更清晰的图形。
使用我的智能体安装
将此请求复制给你的智能体,其中包含权威 Skill 页面和清单。
Review the Skillstore skill "matplotlib" from https://skillstore.io/skills/davila7-matplotlib.md and its manifest at https://skillstore.io/api/skills/davila7-matplotlib/manifest. Verify the artifact. You may proceed after verification, subject to the environment's own policy.你的智能体仍应展示其计划,并按安全策略请求必要确认。
Agent 可读资源
当 AI Agent、爬虫或脚本需要干净上下文,而不是读取完整页面时,请使用这些链接。
测试它
正在使用“matplotlib”。 需要一个包含三条时间序列的图表,每条都有不同标签,并最终导出为 PNG。
预期结果:
- 推荐使用带一个 Axes 对象的面向对象线图。
- 指定标签、图例位置、网格透明度和 constrained layout。
- 建议使用 tight bounding box 导出高分辨率 PNG 的设置。
正在使用“matplotlib”。 需要比较四个实验组的分布。
预期结果:
- 比较该数据集的箱线图、小提琴图和直方图选项。
- 当分布形状很重要时,推荐使用小提琴图。
- 补充分组标签、中位数标记和可访问颜色方面的指导。
正在使用“matplotlib”。 保存图表后,我的图形标签重叠了。
预期结果:
- 检查布局处理、图形尺寸、刻度标签旋转和边界框设置。
- 建议在导出前使用 constrained layout 或 tight layout。
- 解释 DPI 和图形尺寸如何影响最终图像。
安全审计
安全Most static findings are false positives caused by markdown code fences, plotting terminology, and documentation links. One medium filesystem risk is confirmed because style_configurator.py writes to a user-supplied output path. No evidence of prompt injection, data exfiltration, or hidden command execution was found.
能力复核项 (1)
这些是真实的本地能力,对此技能可能是预期行为,因此需要复核,但不会按已确认恶意行为计分。
风险因素
📁 文件系统访问 (1)
⚙️ 外部命令 (50)
🌐 网络访问 (4)
分享与引用此报告
分享版本化评估报告、中性徽章、嵌入卡片和引用。Skillstore 只报告证据,不判断该 Skill 是否安全。
复制报告链接
https://skillstore.io/skills/davila7-matplotlib/audits/15?utm_source=security_passport&utm_medium=share&utm_campaign=versioned_reportMarkdown 徽章
[](https://skillstore.io/skills/davila7-matplotlib?utm_source=security_passport_badge)HTML 徽章
<a href="https://skillstore.io/skills/davila7-matplotlib?utm_source=security_passport_badge"><img src="https://skillstore.io/badges/skills/davila7-matplotlib/security.svg" alt="Skillstore security assessment" loading="lazy"></a>嵌入卡片
<iframe src="https://skillstore.io/embed/skills/davila7-matplotlib.html" title="Skillstore Security Assessment" sandbox="allow-popups allow-popups-to-escape-sandbox" loading="lazy" referrerpolicy="no-referrer" width="420" height="180"></iframe>学术引用 (APA · BibTeX · CFF)
APA 引用
davila7. (2026). matplotlib security audit report (audit version 15) [Author version unspecified]. Skillstore. https://skillstore.io/skills/davila7-matplotlib/audits/15BibTeX 引用
@techreport{davila7-davila7-matplotlib-2026,
author = {davila7},
title = {matplotlib security audit report (audit version 15)},
institution = {Skillstore},
year = {2026},
number = {15},
url = {https://skillstore.io/skills/davila7-matplotlib/audits/15},
note = {Author version unspecified}
}CITATION.cff
cff-version: 1.2.0
message: "If you use this Skill, cite its author and this versioned security audit report."
title: "matplotlib security audit report (audit version 15)"
version: "unspecified"
type: report
authors:
- name: "davila7"
date-released: "2026-07-09"
url: "https://skillstore.io/skills/davila7-matplotlib/audits/15"
identifiers:
- type: other
value: "skillstore:davila7-matplotlib:audit:15"
description: "Skillstore immutable audit report identifier"
比较变体
2 个可安装变体每位作者的技能都保持为独立的可安装项。推荐变体按 Skillstore 证据排序。
为什么此变体排名第一
Skillstore 评分
评分依据 证据置信度: 高你能构建什么
准备研究图形
为论文、海报和技术报告创建带标签、可访问且可导出的图形。
标准化分析图表
在重复性报告和 notebooks 中应用一致的样式、布局和导出设置。
教授绘图工作流
使用示例和参考资料来解释图表选择、样式选择和常见修复方法。
试试这些提示
使用 Matplotlib 技能为我的 x 和 y 数据创建一个面向对象的线图。包括标签、标题、网格和保存设置。
我有这些变量和目标:[describe them]。推荐最合适的 Matplotlib 图表类型,并解释样式和布局选择。
为 [analysis] 设计一个可用于发表的多面板 Matplotlib 图形。使用 GridSpec 或 subplot_mosaic、共享样式、清晰图例和导出指导。
审查这个 Matplotlib 问题:[paste symptoms]。识别可能原因,提出修复方案,并解释如何在未来图形中避免该问题。
最佳实践
- 对可复用和复杂图形使用面向对象 API。
- 在最终渲染前设置图形尺寸、布局、标签和导出选项。
- 选择与数据类型和可访问性需求相匹配的 colormaps 和编码方式。
避免
- 在复杂图形中依赖 pyplot 状态。
- 对定量数据使用 rainbow colormaps 或未标注的坐标轴。
- 在未检查 DPI、边界框和字体渲染的情况下保存最终图像。
常见问题
这个技能会生成 Matplotlib 代码吗?
它能帮助制作发表用图形吗?
它包含辅助脚本吗?
它能排查现有图表的问题吗?
它需要互联网访问吗?
哪些 AI 工具可以使用它?
开发者详情
作者
davila7许可证
MIT
Skillstore 修订
r1
版本提示
作者未声明版本。
引用
b959ebfd1043a07c0c4378ab94ca4342cb0259f5
维护新鲜度
2026/7/21
使用量
17 次下载 · 232 次浏览