← 返回 Skills 市场
soyonaoc

Physics-Aware Plotting

作者 kxm · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ✓ 安全检测通过
45
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install physics-aware-plotting
功能描述
Physics-aware scientific plotting for research repositories. Use before making or updating Matplotlib figures to identify axis meanings, the comparison the f...
使用说明 (SKILL.md)

Physics-Aware Plotting

Use this skill for scientific figures, diagnostic plots, and slide or paper plots in research repositories.

Core Workflow

Before plotting, explicitly determine:

  1. What physical quantity is on each axis.
  2. What comparison or claim the figure is supposed to support.
  3. Whether linear or log scaling is physically appropriate.

Do not treat plotting as a purely cosmetic task. The chosen limits, scaling, and overlays should reveal the physical behavior that matters.

Publication Style

For paper or slide figures, use an ApJ/AAS-inspired scientific plotting style. Treat this as a set of principles, not a rigid rcParams block.

Prefer:

  • clean white figure and axes backgrounds;
  • readable serif or journal-compatible fonts, with consistent math text;
  • compact figure proportions suitable for one-column or two-column paper layouts;
  • inward ticks, visible minor ticks when they help interpretation, and ticks on the top/right when appropriate;
  • moderate axis, tick, and line widths that remain legible after resizing;
  • legends that explain the physical comparison without covering important data;
  • high-resolution or vector output suitable for manuscript and slide reuse.

Avoid:

  • decorative styles that obscure the data;
  • overly large fonts or lines that make a figure look like a presentation mockup when it is meant for a paper;
  • arbitrary color choices that make model families or observational datasets hard to distinguish;
  • silently changing scientific units, scales, or limits to make a plot look nicer.

If the repository already defines a Matplotlib style such as apj, use it when it matches these principles. If no project style exists, implement only the minimal local styling needed for the requested figure, and keep those choices transparent in the code.

Axis-Range Rules

If the user specifies axis limits, follow them.

If limits are not specified:

  • Choose ranges from the data and the intended physical message.
  • Avoid meaningless empty decades on log axes.
  • Do not default to extremely small lower bounds such as 1e-20 unless the plotted quantity actually has meaningful structure there.
  • On log y-axes, prefer a lower bound around the smallest meaningful nonzero signal, observational point, or modeled feature that the figure is intended to show.
  • Set the upper bound slightly above the maximum relevant curve or data point so structure is visible without excessive empty space.
  • If the figure compares multiple redshifts, models, or panels, use consistent limits when that improves interpretability.

Interpretation Rules

  • Prefer layouts that separate different physical concepts instead of overloading one panel.
  • If a transformation changes the meaning of the plotted quantity, reflect that in labels and legends.
  • Keep legends readable; increase legend size when the plot will be embedded in slides.
  • When a figure is for slides or papers, prioritize clarity over showing every diagnostic variant.

Output Placement

Use these conventions when the repository has no stronger local rule:

  • draft or diagnostic figures: outputs/
  • reusable tables behind figures: data_save/
  • figures required by slide compilation: slides/assets/

Slide And Paper Figure Quality

When a figure is intended for slides or papers:

  • Treat the output as publication-quality by default.
  • Prefer vector .pdf output for the figure actually inserted into the slide or manuscript.
  • If a raster companion is generated for quick viewing, export it at >=500 dpi.
  • Do not treat low-resolution .png output as the canonical asset unless the user explicitly requests that.

Always use dpi=500 in fig.savefig() for figure outputs unless the user explicitly requests otherwise.

Cleanup Rule

When a slide figure is replaced, keep only the currently used asset in slides/assets/. Move one-off or historical plot variants to outputs/ instead of leaving stale slide assets in place.

Usage Examples

Example 1:

User asks: "Plot the UV luminosity function comparison at z=8."

The agent should first identify the x-axis and y-axis physical quantities, decide whether the luminosity function axis should be log-scaled, choose an ApJ/AAS-inspired publication style, choose y-limits around the meaningful model and observational range, then save the figure with dpi=500.

Example 2:

User asks: "The log plot has too much empty space below the curves."

The agent should inspect the smallest meaningful nonzero values, avoid arbitrary tiny lower bounds such as 1e-20, and set the lower limit near the physically relevant signal or observational threshold.

Example 3:

User asks: "Make this figure ready for slides."

The agent should prioritize readable labels and legends, export the canonical slide asset as vector PDF when possible, optionally create a high-DPI raster companion, and avoid leaving superseded files in slides/assets/.

安全使用建议
This skill appears safe for normal research plotting use. Review generated file changes before committing, especially changes under `slides/assets/` and `outputs/`, but there is no evidence of hidden code, credential access, network activity, or deceptive behavior.
功能分析
Type: OpenClaw Skill Name: physics-aware-plotting Version: 1.0.0 The skill bundle provides stylistic and logical guidelines for an AI agent to generate high-quality scientific plots using Matplotlib. The instructions in SKILL.md focus on physical accuracy, publication-style aesthetics (ApJ/AAS), and proper file management (e.g., using 500 DPI or vector formats), with no evidence of malicious intent, data exfiltration, or unauthorized execution.
能力评估
Purpose & Capability
The skill’s instructions match its stated purpose: improving scientific Matplotlib figures by reasoning about axes, scaling, ranges, and publication-quality output.
Instruction Scope
The skill includes repository file-placement and cleanup guidance for generated figures; this is purpose-aligned but users should be aware it may move figure assets.
Install Mechanism
There is no install spec and no code files; the Python binary requirement is consistent with Matplotlib plotting workflows.
Credentials
No credentials, network access, privileged paths, or broad local indexing are requested.
Persistence & Privilege
The artifacts do not show background execution, persistence, credential use, or privilege escalation.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install physics-aware-plotting
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /physics-aware-plotting 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
Initial release with physics-aware plotting workflow and ApJ/AAS-inspired publication style principles.
元数据
Slug physics-aware-plotting
版本 1.0.0
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 1
常见问题

Physics-Aware Plotting 是什么?

Physics-aware scientific plotting for research repositories. Use before making or updating Matplotlib figures to identify axis meanings, the comparison the f... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 45 次。

如何安装 Physics-Aware Plotting?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install physics-aware-plotting」即可一键安装,无需额外配置。

Physics-Aware Plotting 是免费的吗?

是的,Physics-Aware Plotting 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

Physics-Aware Plotting 支持哪些平台?

Physics-Aware Plotting 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Physics-Aware Plotting?

由 kxm(@soyonaoc)开发并维护,当前版本 v1.0.0。

💬 留言讨论