figure
/figure
Generuje gotowy kod wizualizacji do badań: skrypty matplotlib i seaborn dla danych oraz diagramy Mermaid dla pojęć.
- Autor
- richard-kim-79 ↗
- Repozytorium
- archora-skills ↗
- Licencja
- MIT
- Ostatnia zmiana repozytorium
- 20.05.2026
Ocena i bezpieczeństwo
- Pliki w paczce
- 1
- Skrypty
- 0
- Komentarze HTML
- 0
- Adresy URL w SKILL.md
- 2
Brak sygnałów. Repozytorium zmienione 20.05.2026, bez odwołań do wycofanych modeli i API.
MIT, otwarta: można używać i zmieniać, z zachowaniem informacji o autorze.
Co robi i kiedy
Generuje gotowy kod wizualizacji do badań: skrypty matplotlib i seaborn dla danych oraz diagramy Mermaid dla pojęć.
Oryginalny opis (EN)
Generates complete, runnable visualization code for research figures. Produces matplotlib/seaborn Python scripts for quantitative data and Mermaid diagrams for conceptual relationships, workflows, and taxonomies. Use when the user asks for charts, graphs, visualizations, figures, or diagrams. Produces code only — does not render images directly.
Jak działa
- Figure Types
- Decision guide
- Output Format
- Code requirements
- Validation (always run after generating Python code)
- How to run
Podgląd SKILL.md
---
name: figure
description: >
Generates complete, runnable visualization code for research figures. Produces matplotlib/seaborn
Python scripts for quantitative data and Mermaid diagrams for conceptual relationships, workflows,
and taxonomies. Use when the user asks for charts, graphs, visualizations, figures, or diagrams.
Produces code only — does not render images directly.
license: MIT
metadata:
author: archora
version: "1.1"
website: https://archora2026.com/
---
# Figure Generator
Generate publication-quality visualization code for research figures.
## Figure Types
| Type | Use for | Format |
|------|---------|--------|
| **matplotlib** | Quantitative data: bar charts, scatter plots, line graphs, heatmaps, box plots | Python |
| **seaborn** | Statistical visualizations: distributions, regressions, pair plots | Python |
| **Mermaid** | Conceptual diagrams: workflows, taxonomies, hierarchies, timelines | Mermaid |
## Decision guide
- Numbers, measurements, time series → **matplotlib/seaborn**
- Concepts, relationships, processes → **Mermaid**
- When in doubt: generate both
## Output Format
````markdown
## Figure 1: [Title]
**Caption:** [Full figure caption as it would appear in a paper — what is shown and the key takeaway]
**Description:** [What this figure shows and why it matters for the research]
**Type:** Python (matplotlib/seaborn)
```python
import matplotlib.pyplot as plt
import numpy as np
# [Complete, runnable code with realistic placeholder data]
plt.tight_layout()
plt.savefig('figure1.png', dpi=300)
plt.show()
```
````
## Code requirements
- **Complete and runnable** — no placeholders like `your_data_here`
- **All imports included** — never reference a library without importing it
- **Realistic placeholder data** — use domain-appropriate values and ranges
- **Publication quality** — `dpi=300`, proper axis labels, legend, title
- **Accessible colors** — avoid red/green only distinctions
## Validation (always run after generating Python code)
Before presenting code to the user, validate syntax with Python's AST parser:
```bash
python -c "import ast; ast.parse(open('figure1.py').read()); print('✅ Syntax OK')"
```
If the check fails, fix the syntax error and re-validate before showing the result.
**For inline code blocks**, validate with:
```python
import ast
code = """
# paste generated code here
"""
try:
ast.parse(code)
print("✅ Syntax OK")
except SyntaxError as e:
print(f"❌ Syntax error: {e}")
```
> Note: AST validation checks syntax only — it does not catch runtime errors (e.g. wrong data shapes). Always include comments explaining how to adapt placeholder data to real data.
## How to run
**Python figures:**
```bash
pip install matplotlib seaborn numpy
python figure1.py
```
**Mermaid diagrams:**
- Paste into [mermaid.live](https://mermaid.live)
- Or use any Markdown renderer that supports Mermaid (Obsidian, GitHub, etc.)
Wersje
| Repozytorium | Wynik | Licencja |
|---|---|---|
| Ta strona · richard-kim-79/archora-skills | 100 | MIT |
| vectorize-io/hindsight | 100 | MIT |
| piabrota/skills | 100 | MPL-2.0 |
| piabrota/nix-os | 100 | MPL-2.0 |
Migawka bazy z 13.11.2026 · wersja paczki cb74f0f368fd (skrót SHA-256 całej paczki)
Pobrania w ostatnich 30 dniach: 0 · ranking
Zgłoś problem z tym skillem: szkodliwa treść, błędny opis albo prośba autora o usunięcie.
Podobne skille
- 95academic-plotting
Tworzy rysunki do artykułu ML: diagramy architektury na podstawie opisu oraz wykresy z danych eksperymentów. - 100scientific-figures
Doradza przy wyborze wykresu, uczciwym kodowaniu i paletach przyjaznych daltonistom, a także pisze kod rysunków do manuskryptu. - 100academic-plotting
Generuje wykresy publikacyjne do prac naukowych o uczeniu maszynowym: diagramy architektury i wykresy danych na podstawie wyników eksperymentu. - 100scientific-figures
Tworzy, stylizuje i waliduje rysunki naukowe do publikacji, z eksportem SVG, PDF i TIFF oraz paletami dla daltonistów. - 100python-visuals
Pisze skrypty wizualizacji w Pythonie dla raportów PBIR w Power BI, z wzorcami matplotlib i seaborn. - 100scientific-visualization
Tworzy i audytuje rzetelne, dostępne wykresy naukowe do publikacji w Matplotlib, Seaborn lub Plotly: układy wielopanelowe, niepewność, brakujące dane, kontrast kolorów i eksport pod czasopismo.