seaborn
하는 일
이 스킬은 Python의 seaborn 라이브러리로 통계 차트를 만드는 방법을 에이전트에게 가르칩니다. 값이 어떻게 퍼져 있는지, 또는 두 변수가 어떻게 관련되는지 빠르게 탐색하는 데 씁니다.
사용하는 경우
- ✓상자그림이나 바이올린 그림으로 여러 집단의 값이 어떻게 퍼져 있는지 보고 싶을 때.
- ✓페어 플롯으로 여러 변수 사이의 관계를 탐색하고 싶을 때.
- ✓데이터 표가 있고 빠른 히트맵이나 비교 차트를 원할 때.
스킬 링크
https://github.com/zLanqing/codex-claude-academic-skills/blob/main/scientific-toolkit-skill/references/scientific-skills/seaborn/SKILL.md복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.
사용 방법
가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.
바로 붙여넣을 수 있는 메시지
Claude Code, Codex, Cursor용입니다. 프로젝트 폴더에서 실행하면 스킬이 설치됩니다.
SKILL.md를 다운로드해 에이전트의 스킬 폴더에 넣으세요.
AI에게 요청하는 예시
“이 데이터 표에서 세 반의 시험 점수를 비교하는 상자그림을 그려 주세요.”
매주 새 스킬 5개. 읽는 데 1분.
작동 방식
에이전트는 데이터를 표로 불러오고, 맞는 seaborn 그래프 유형을 고르며, seaborn의 기본 스타일로 그립니다. 더 세밀한 변경은 matplotlib를 사용할 수 있습니다.
기술 내용 (원본 SKILL.md)
작성자의 영어 원문을 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
자주 묻는 질문
통계를 스스로 계산하나요?
네. 스킬은 seaborn에 내장된 집계와 신뢰 구간이 있다고 설명합니다.
다른 도구를 써야 할 때는 언제인가요?
대화형 그래프에는 plotly를, 출판용 스타일에는 과학 시각화 스킬을 쓰라고 설명합니다.
matplotlib 기반인가요?
네. 스킬은 matplotlib 위에 만들어졌고 그 사용자 정의와 함께 작동한다고 설명합니다.
상세 정보
작성자의 원본 설명
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.
인기도
- GitHub 스타
- 5.6k
- 순위
- #14772
- 라이선스
- MIT
- 업데이트
- 2026. 5. 14.
댓글
- …
이 저장소의 다른 스킬
office-academic-skill
5.6k연구 논문을 Word 보고서로 바꾸고 편집 가능한 중국어 중심 학술 PowerPoint 슬라이드를 만들며, 발표자 노트와 레이아웃 검사를 포함하도록 에이전트를 돕습니다.
research-writing-skill
5.6k연구 논문의 절, 초록, 심사자 답변을 작성하고 수정하며 다듬도록 에이전트를 돕습니다. 수식, 제목, 인용은 주어진 그대로 유지합니다.
scientific-toolkit-skill
5.6k신호 및 이미지 처리, 통계, 시뮬레이션, 출판용 그림을 위한 MATLAB 또는 Python 과학 코드를 작성하고 디버그하도록 에이전트를 돕습니다.
matlab
5.6k에이전트가 행렬 연산, 신호 및 이미지 처리, 미분방정식, 최적화, 그래프를 위한 MATLAB과 GNU Octave 스크립트를 작성하고 디버그하도록 돕습니다.
비슷한 스킬
gitcrawl
394k에이전트가 저장된 GitHub 이슈와 풀 리퀘스트 보관본을 검색하고, 중복 항목을 묶고, GitHub에서 현재 상태를 확인하도록 돕습니다.
slacrawl
394k에이전트가 로컬 Slack 보관본에서 메시지를 검색하고 개수를 세며, 보관본이 얼마나 최신인지 확인하고 필요할 때 새로 고치도록 돕습니다.
goplaces
394k에이전트가 Google Places로 장소를 검색하고, 세부 정보와 리뷰를 가져오고, 장소 이름을 확인하며, 스크립트용 JSON을 출력하도록 돕습니다.