Install
openclaw skills install physics-aware-plottingPhysics-aware scientific plotting for research repositories. Use before making or updating Matplotlib figures to identify axis meanings, the comparison the figure supports, physically meaningful axis ranges, appropriate linear/log scaling, and publication-style visual choices inspired by ApJ/AAS figures.
openclaw skills install physics-aware-plottingUse this skill for scientific figures, diagnostic plots, and slide or paper plots in research repositories.
Before plotting, explicitly determine:
Do not treat plotting as a purely cosmetic task. The chosen limits, scaling, and overlays should reveal the physical behavior that matters.
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:
Avoid:
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.
If the user specifies axis limits, follow them.
If limits are not specified:
1e-20 unless the plotted quantity actually has meaningful structure there.Use these conventions when the repository has no stronger local rule:
outputs/data_save/slides/assets/When a figure is intended for slides or papers:
.pdf output for the figure actually inserted into the slide or manuscript.>=500 dpi..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.
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.
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/.