seaborn
Was er macht
Dieser Skill zeigt einem Agenten, wie er statistische Diagramme mit der Python-Bibliothek seaborn erstellt. Er dient der schnellen Datenerkundung, etwa um zu sehen, wie Werte verteilt sind oder wie zwei Variablen zusammenhängen.
Wann du ihn nutzt
- ✓Wenn jemand mit einem Box- oder Violinplot zeigen will, wie Werte über Gruppen verteilt sind.
- ✓Wenn jemand Zusammenhänge zwischen mehreren Variablen mit einem Pair-Plot erkunden will.
- ✓Wenn jemand eine Datentabelle hat und einen schnellen Heatmap- oder Vergleichsplot will.
Link zum Skill
https://github.com/zLanqing/codex-claude-academic-skills/blob/main/scientific-toolkit-skill/references/scientific-skills/seaborn/SKILL.mdKopiere ihn und füge ihn in deine KI ein (Claude, ChatGPT oder Cursor) mit der Bitte, den Anweisungen zu folgen.
So nutzt du ihn
Am einfachsten: Kopiere die Nachricht und füge sie in deine KI ein. Sie liest den Skill und folgt den Anweisungen.
Fertige Nachricht zum Einfügen
Für Claude Code, Codex oder Cursor: Führe den Befehl in deinem Projektordner aus, dann wird der Skill installiert.
Lade die SKILL.md herunter und lege sie in den Skills-Ordner deines Agenten.
Beispielanfrage an deine KI
“Zeig mir Boxplots, die meine Testergebnisse über die drei Klassen in dieser Datentabelle vergleichen.”
5 neue Skills pro Woche. 1 Minute Lesezeit.
So funktioniert es
Der Agent lädt die Daten in eine Tabelle, wählt den passenden seaborn-Diagrammtyp und zeichnet ihn mit der Standardgestaltung von seaborn. Für detailliertere Änderungen kann matplotlib verwendet werden.
Technischer Inhalt (originale SKILL.md)
Originaltext des Autors, auf Englisch, direkt von GitHub.
Seaborn Statistical Visualization
Overview
Seaborn is a Python visualization library for creating publication-quality statistical graphics. Use this skill for dataset-oriented plotting, multivariate analysis, automatic statistical estimation, and complex multi-panel figures with minimal code.
Design Philosophy
Seaborn follows these core principles:
- Dataset-oriented: Work directly with DataFrames and named variables rather than abstract coordinates
- Semantic mapping: Automatically translate data values into visual properties (colors, sizes, styles)
- Statistical awareness: Built-in aggregation, error estimation, and confidence intervals
- Aesthetic defaults: Publication-ready themes and color palettes out of the box
- Matplotlib integration: Full compatibility with matplotlib customization when needed
Quick Start
import seaborn as sns
import matplotlib.pyplot as plt
import pandas as pd
# Load example dataset
df = sns.load_dataset('tips')
# Create a simple visualization
sns.scatterplot(data=df, x='total_bill', y='tip', hue='day')
plt.show()
Core Plotting Interfaces
Function Interface (Traditional)
The function interface provides specialized plotting functions organized by visualization type. Each category has axes-level functions (plot to single axes) and figure-level functions (manage entire figure with faceting).
When to use:
- Quick exploratory analysis
- Single-purpose visualizations
- When you need a specific plot type
Objects Interface (Modern)
The seaborn.objects interface provides a declarative, composable API similar to ggplot2. Build visualizations by chaining methods to specify data mappings, marks, transformations, and scales.
When to use:
- Complex layered visualizations
- When you need fine-grained control over transformations
- Building custom plot types
- Programmatic plot generation
from seaborn import objects as so
# Declarative syntax
(
so.Plot(data=df, x='total_bill', y='tip')
.add(so.Dot(), color='day')
.add(so.Line(), so.PolyFit())
)
Plotting Functions by Category
Relational Plots (Relationships Between Variables)
Use for: Exploring how two or more variables relate to each other
scatterplot()- Display individual observations as pointslineplot()- Show trends and changes (automatically aggregates and computes CI)relplot()- Figure-level interface with automatic faceting
Key parameters:
x,y- Primary variableshue- Color encoding for additional categorical/continuous variablesize- Point/line size encodingstyle- Marker/line style encodingcol,row- Facet into multiple subplots (figure-level only)
# Scatter with multiple semantic mappings
sns.scatterplot(data=df, x='total_bill', y='tip',
hue='time', size='size', style='sex')
# Line plot with confidence intervals
sns.lineplot(data=timeseries, x='date', y='value', hue='category')
# Faceted relational plot
sns.relplot(data=df, x='total_bill', y='tip',
col='time', row='sex', hue='smoker', kind='scatter')
Distribution Plots (Single and Bivariate Distributions)
Use for: Understanding data spread, shape, and probability density
histplot()- Bar-based frequency distributions with flexible binningkdeplot()- Smooth density estimates using Gaussian kernelsecdfplot()- Empirical cumulative distribution (no parameters to tune)rugplot()- Individual observation tick marksdisplot()- Figure-level interface for univariate and bivariate distributionsjointplot()- Bivariate plot with marginal distributionspairplot()- Matrix of pairwise relationships across dataset
Key parameters:
x,y- Variables (y optional for univariate)hue- Separate distributions by categorystat- Normalization: "count", "frequency", "probability", "density"bins/binwidth- Histogram binning controlbw_adjust- KDE bandwidth multiplier (higher = smoother)fill- Fill area under curvemultiple- How to handle hue: "layer", "stack", "dodge", "fill"
# Histogram with density normalization
sns.histplot(data=df, x='total_bill', hue='time',
stat='density', multiple='stack')
# Bivariate KDE with contours
sns.kdeplot(data=df, x='total_bill', y='tip',
fill=True, levels=5, thresh=0.1)
# Joint plot with marginals
sns.jointplot(data=df, x='total_bill', y
Häufige Fragen
Berechnet er Statistiken selbst?
Ja. Der Skill sagt, seaborn enthält eingebaute Aggregation und Konfidenzintervalle.
Wann sollte ich ein anderes Werkzeug nehmen?
Der Skill sagt, für interaktive Plots plotly und für die Gestaltung von Publikationsabbildungen den Skill für wissenschaftliche Visualisierung zu verwenden.
Baut es auf matplotlib auf?
Ja. Der Skill sagt, dass es auf matplotlib aufbaut und mit dessen Anpassungen funktioniert.
Details
Originalbeschreibung des Autors
Statistical visualization with pandas integration. Use for quick exploration of distributions, relationships, and categorical comparisons with attractive defaults. Best for box plots, violin plots, pair plots, heatmaps. Built on matplotlib. For interactive plots use plotly; for publication styling use scientific-visualization.
Beliebtheit
- GitHub-Sterne
- 5.6k
- Platz im Ranking
- #14772
- Lizenz
- MIT
- Aktualisiert
- 14.5.2026
Kommentare
- …
Weitere Skills aus diesem Repository
office-academic-skill
5.6kHilft deinem Agenten, Forschungspapers in Word-Berichte zu verwandeln und bearbeitbare akademische PowerPoint-Folien mit Sprechernotizen und Layoutprüfung zu bauen.
research-writing-skill
5.6kHilft deinem Agenten, Abschnitte, Zusammenfassungen und Erwiderungen an Gutachter zu schreiben und zu verbessern, mit unveränderten Formeln, Titeln und Zitaten.
scientific-toolkit-skill
5.6kHilft deinem Agenten, wissenschaftlichen Code in MATLAB oder Python zu schreiben und zu debuggen, für Signal- und Bildverarbeitung, Statistik und Abbildungen.
matlab
5.6kHilft deinem Agenten, MATLAB- und GNU-Octave-Skripte zu schreiben und zu debuggen, für Matrizen, Signal- und Bildverarbeitung, Differentialgleichungen und Plots.
Ähnliche Skills
gitcrawl
394kLässt deinen Agenten ein gespeichertes Archiv von GitHub-Issues und Pull Requests durchsuchen, Duplikate gruppieren und ihren aktuellen Status auf GitHub prüfen.
slacrawl
394kLässt deinen Agenten Nachrichten in einem lokalen Slack-Archiv durchsuchen und zählen, dessen Aktualität prüfen und es bei Bedarf auffrischen.
goplaces
394kHilft deinem Agenten, mit Google Places nach Orten zu suchen, Details und Bewertungen abzurufen und Ortsnamen aufzulösen, mit JSON-Ausgabe für Skripte.