matplotlib-scientific
Skill0 starsChanged 6 months agoMITView on GitHub
Use when creating matplotlib plots, scientific figures, or data visualizations. Triggers - matplotlib, plot, figure, 그래프, 플롯, 시각화, visualization, "그려줘", "plot 만들어", scatter, histogram, violin
1 other project uses a version of this, 1 of them edited.
Adopted by
Most recently taken up by
- s-choung/Research-Skillsedited, first seen May 16, 2026
Other versions1 project uses a version of this.
Word for word · 0
None found.
Edited · 1
- s-choung/Research-Skills★ 3619% same
Wrote their own version · 0
None found.
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository15 other files it gives its agents.
- analysis-protocolSkill
- blender-atom-renderSkill
- corpus-phrase-checkSkill
- docx-scientific-formattingSkill
- html-minimalSkill
- layout-guardSkill
- paper-sectionsSkill
- paper-sentence-loopSkill
- paper-styleSkill
- reference-crosscheckSkill
- slide-auditSkill
- smart-compactSkill
- transcript2htmlSkill
- youtube2mp4Skill
- youtubeSkill
The file
We split this skill into the rules it gives an agent
4 rules. About 0 are common, 2 are distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈2
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 3
Use when creating matplotlib plots, scientific figures, or data visualizations.
- Distinctive: line 9
ALL text uses FontProperties: - no raw matplotlib text
- Very specific: line 10
No Unicode math: - use $_{sub}$ / $^{sup}$ / $\mathregular{_2}$
- Very specific: line 14
ax.set_position([0.2, 0.2, 0.666, 0.333]): always per plot
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Matplotlib Scientific Figure Skill
Use when creating matplotlib plots, scientific figures, or data visualizations. Triggers - matplotlib, plot, figure, 그래프, 플롯, 시각화, visualization, "그려줘", "plot 만들어", scatter, histogram, violin
Mandatory Rules
- One plot per script - standalone Python file
- ALL text uses FontProperties - no raw matplotlib text
- No Unicode math - use
$_{sub}$/$^{sup}$/$\mathregular{_2}$ - No grids, no bold, no
tight_layout(), noplt.show() - SVG only at 300 DPI, save to
./output/ - All data within xlim/ylim with 5-10% padding
ax.set_position([0.2, 0.2, 0.666, 0.333])always per plot
Setup (copy to every script)
import matplotlib.pyplot as plt
import matplotlib
import matplotlib.font_manager as fm
import numpy as np
import os
matplotlib.rcParams['mathtext.default'] = 'regular'
fs, fss, fsss, fsl = 12, 12, 8, 24
font_properties_label = fm.FontProperties(family='Arial', size=fs)
font_properties_tick = fm.FontProperties(family='Arial', size=fss)
font_properties_annotate = fm.FontProperties(family='Arial', size=fsss)
font_properties_legend = fm.FontProperties(family='Arial', size=fss)
colors = ['#77AEB3', '#E5885D', '#C7C4B5', '#A1C2DE', '#B4944B']
os.makedirs('./output', exist_ok=True)Helper Functions (include in every script)
def apply_font_styling(ax):
for tick in ax.get_xticklabels():
tick.set_fontproperties(font_properties_tick)
for tick in ax.get_yticklabels():
tick.set_fontproperties(font_properties_tick)
def format_axis_labels(ax, xlabel, ylabel):
ax.set_xlabel(xlabel, fontproperties=font_properties_label)
ax.set_ylabel(ylabel, fontproperties=font_properties_label)
apply_font_styling(ax)
def plot_series_with_style(ax, x_data, y_data, color, label, series_index=0):
zorder = 2 - 0.1 * series_index
ax.plot(x_data, y_data, color=color, label=label, linewidth=1.5, zorder=zorder)
ax.scatter(x_data, y_data, color=color, s=100, marker='o', linewidth=1.5, zorder=zorder)
def create_subplot_layout(nrows=1, ncols=1, figsize=(4, 4)):
return plt.subplots(nrows, ncols, figsize=figsize)
def save_plot(filename, dpi=300):
if not filename.startswith('plot'):
filename = f'plot1_{filename}'
if not filename.endswith('.svg'):
filename = filename.replace('.png', '.svg').replace('.pdf', '.svg')
if not filename.endswith('.svg'):
filename += '.svg'
plt.savefig(f'./output/{filename}', dpi=dpi, bbox_inches='tight', format='svg')Math Text Rules
| Wrong | Correct | Case |
CH₄ | CH$_{4}$ | Chemical subscript |
x² | x$^{2}$ | Superscript |
O₂ | O$\mathregular{_2}$ | mathregular subscript |
10⁻³ | 10$^{-3}$ | Negative exponent |
Legend: always frameon=False, prop=font_properties_legend
Scientific Notation (for values >1000 or <0.001)
from matplotlib.ticker import FuncFormatter
def scientific_formatter(x, pos):
if x == 0: return '0'
exponent = int(np.floor(np.log10(abs(x))))
coeff = x / 10**exponent
if coeff == 1: return f'10$^{{{exponent}}}$'
elif coeff == int(coeff): return f'{int(coeff)}x10$^{{{exponent}}}$'
else: return f'{coeff:.1f}x10$^{{{exponent}}}$'
ax.yaxis.set_major_formatter(FuncFormatter(scientific_formatter))Filename: {num}_plot{n}_{description}.svg (num = 1~n)
Checklist
rcParams['mathtext.default'] = 'regular'setax.set_position([0.2, 0.2, 0.666, 0.333])done- All text uses font_properties_*
- No grid, no bold, no tight_layout, no plt.show()
- Legend frameon=False
- SVG 300 DPI in ./output/
- All data visible within limits (5-10% padding)
- Colors from palette in order
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

