Scientific Plotting Skill for Claude Code β Transform raw data into publication-ready figures with Nature/Science quality standards.
PyThesisPlot is a Claude Code Skill that teaches AI assistants how to create publication-quality scientific figures from raw data. It provides:
- π Intelligent Workflow: Data β Analysis β Recommendations β Confirmation β Figures
- π¨ Journal-Ready Output: 300 DPI, Nature/Science style compliance
- π¬ Multi-Domain Support: Biology, Psychology, Economics, Chemistry
- π Organized Output: Timestamped directories with reproducible code
Trigger: When you upload data files (CSV/Excel/TXT) and ask for plots, charts, or figures.
Supported Platforms: Claude Code Β· OpenCode Β· OpenClaw Β· Kimi CLI Β· Trae Β· Cursor
Copy and paste this to your AI assistant:
Install PyThesisPlot skill for me:
https://github.com/stephenlzc/pythesis-plot
Or if you enjoy YAML-induced headaches, read the Installation Guide. But seriously, let the agent handle it. Humans copy-paste paths wrong.
Claude Code:
git clone https://github.com/stephenlzc/pythesis-plot.git ~/.claude/skills/pythesis-plot
pip install pandas matplotlib seaborn openpyxl numpy scipyOpenCode / OpenClaw:
git clone https://github.com/stephenlzc/pythesis-plot.git ~/.opencode/skills/pythesis-plot
pip install pandas matplotlib seaborn openpyxl numpy scipyKimi CLI:
git clone https://github.com/stephenlzc/pythesis-plot.git ~/.kimi/skills/pythesis-plot
pip install pandas matplotlib seaborn openpyxl numpy scipyTrae:
git clone https://github.com/stephenlzc/pythesis-plot.git ~/.trae/skills/pythesis-plot
pip install pandas matplotlib seaborn openpyxl numpy scipyFull instructions: docs/installation.md
We're past the era of manual plotting. Just paste this into your agent:
I have some data and need publication-ready figures for my thesis.
Use PyThesisPlot skill to help me:
https://github.com/stephenlzc/pythesis-plot
Once installed, simply upload your data and ask:
"Help me create some charts for my thesis"
"Plot this data for my scientific paper"
"Generate publication-ready figures from this Excel file"
The skill will automatically:
- Analyze your data structure and types
- Recommend appropriate chart types
- Wait for your confirmation on chart selection
- Generate 300 DPI PNG figures + reproducible Python code
pythesis-plot/
βββ SKILL.md # Skill definition (trigger conditions)
βββ README.md # This file
βββ README.zh-CN.md # Chinese documentation
βββ scripts/
β βββ workflow.py # Main orchestrator
β βββ data_analyzer.py # Data analysis engine
β βββ plot_generator.py # Figure generation engine
βββ references/
β βββ workflow_guide.md # Workflow documentation
β βββ chart_types.md # Chart selection guide
β βββ style_guide.md # Visual standards
β βββ examples.md # Code examples
βββ assets/themes/
βββ academic.mplstyle # Academic journal style
βββ nature.mplstyle # Nature journal style
βββ presentation.mplstyle # Presentation style
| Chart Type | Best For | Example Use Case |
|---|---|---|
| π Line Plot | Time series, Trends | Gene expression over time |
| π Bar Chart | Group comparisons | Treatment vs Control |
| π― Box Plot | Distribution, Outliers | qPCR Ct values |
| β‘ Scatter + Regression | Correlations | Dose-response relationships |
| π₯ Heatmap | Correlation matrices | Multi-gene expression |
| π Dashboard | Multi-panel figures | Complete study overview |
User: "I have qPCR data for my PCOS study. Help me create figures."
AI: Analyzing Mouse_PCOS_BRAC1_RawData_108.xlsx...
Detected: 108 samples, 3 groups, gene expression data
Recommended Charts:
1. Body weight comparison (bar chart)
2. BRAC1 expression levels (log scale bar chart)
3. qPCR Ct distributions (box plot)
4. Comprehensive 2Γ2 dashboard
User: "Generate all of them"
AI: β
Generated 4 publication-ready figures in output/20250312-143052-PCOS/
User: "Plot my mental health intervention results"
AI: Analyzing Adolescent_Mental_Health_Intervention_1200.xlsx...
Detected: 1200 participants, 4-arm RCT, pre/post measurements
Recommended Charts:
1. CONSORT-style study flow
2. SDQ pre/post comparison
3. Responder analysis (stacked bar)
4. Effect size forest plot
User: "Generate schemes 1, 2, and 3"
AI: β
Generated 3 figures with statistical annotations
The skill activates when the YAML description in SKILL.md matches your request:
---
name: pythesis-plot
description: Python scientific plotting tool...
Triggers when users upload data files (txt/md/excel/csv)
and mention "help me plot", "create chart", "data visualization",
"thesis figure", "scientific plotting"...
---βββββββββββββββ βββββββββββββββ βββββββββββββββ
β Data Upload ββββββΆβ Analysis ββββββΆβRecommendationsβ
βββββββββββββββ βββββββββββββββ ββββββββ¬βββββββ
β
βΌ
βββββββββββββββ βββββββββββββββ βββββββββββββββ
β Delivery βββββββ Generation βββββββConfirmation β
β (PNG+Code) β β β β (Required) β
βββββββββββββββ βββββββββββββββ βββββββββββββββ
All outputs saved to timestamped directory:
output/
βββ 20250312-143052-your-data/
βββ 20250312-143052-your-data.csv # Original data (renamed)
βββ analysis_report.md # Data analysis report
βββ plot_config.json # Chart configuration
βββ 20250312-143052_plot.py # Reproducible Python code
βββ *.png # 300 DPI figures
- Workflow Guide β Complete workflow walkthrough
- Chart Types β When to use which chart
- Style Guide β Color schemes and visual standards
- Examples β Code examples and tutorials
pip install pandas matplotlib seaborn openpyxl numpy scipyContributions welcome! This skill follows the standard SKILL.md format:
- Fork this repository
- Modify SKILL.md or add new chart types
- Test with sample data
- Submit a Pull Request
---
name: pythesis-plot
description: |
Clear trigger conditions for when AI should load this skill.
List specific phrases and contexts.
---
# Skill Body
## Quick Start
Brief instructions...
## Features
- Feature 1
- Feature 2- English: README.md (this file)
- δΈζ: README.zh-CN.md
MIT License β see LICENSE for details.
- π¨ Color palettes from Nature and Science style guides
- π Visualization practices from Seaborn
- π Academic standards from Matplotlib
Made with β€οΈ for Researchers