Token导航 LogoToken导航TokenDH.com
前端设计只读github未标认证来源可访问许可证需确认审计提醒

data-science-visualization数据科学可视化

Agent Skill

用于辅助数据整理、表格处理、CSV/Excel 分析、指标计算和图表准备。它适合让 Agent 清洗字段、汇总数据、发现异常、生成统计口径或把分析结果转成可读说明。使用时需要确认数据来源、字段含义和时间范围,避免把样本数据当全量事实;涉及敏感数据、导出文件或批量写回时,应先确认权限和脱敏边界。

总安装

294

周安装

12

GitHub Stars

公开资料未说明

下载量

95
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:data-science-visualization(数据科学可视化)
来源仓库:https://github.com/legout/data-platform-agent-skills
仓库路径:skills/data-science-visualization
安装命令:
npx skills add https://github.com/legout/data-platform-agent-skills --skill data-science-visualization
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/legout/data-platform-agent-skills --skill data-science-visualization

简介

提供可视化库选型与图表设计指导,匹配数据特性与受众需求。

  • 覆盖 Matplotlib、Seaborn、Plotly 等主流工具的适用场景对比。
  • 支持探索性图表制作、交互式仪表板与出版级图像生成。
  • 强调视觉传达有效性,避免误导性呈现与过度复杂化。
  • 安装依赖 GitHub 仓库,适用于 Python 数据可视化生态集成。

SKILL.md

Data Visualization

Use this skill for creating effective visualizations: choosing the right library, chart type, and interactivity level for your data and audience.

When to use this skill

  • Choosing a visualization library for a project
  • Creating exploratory charts during EDA
  • Building interactive dashboards
  • Producing publication-quality figures
  • Understanding tradeoffs between libraries

Library selection guide (2026)

LibraryBest ForInteractivityLearning Curve
MatplotlibPublication-quality static plots, fine controlStaticModerate
SeabornStatistical visualization, quick EDAStaticEasy
PlotlyInteractive web charts, dashboardsHighEasy
AltairDeclarative statistical charts, large datasetsMediumEasy
hvPlot/HoloVizLarge data, linked brushing, geospatialHighModerate
BokehCustom interactive web appsHighModerate

Quick decision tree

Static publication figure?
  → Matplotlib (full control) or Seaborn (quick statistical)

Interactive web/dashboard?
  → Plotly (easiest), Dash (full apps)
  → Panel/HoloViz (complex linked views)
  → Bokeh (custom web apps)

Large datasets (100k+ points)?
  → hvPlot + Datashader (automatic rasterization)
  → Altair (smart aggregation with Vega-Lite)

Declarative grammar preferred?
  → Altair (Vega-Lite) or Plotly Express

Already using Pandas?
  → df.plot() → Matplotlib
  → df.hvplot() → HoloViz
  → px.scatter(df) → Plotly

Core principles

1) Match chart to data and question

QuestionChart Type
Distribution?Histogram, KDE, boxplot, violin
Relationship?Scatter, line, heatmap (correlation)
Composition?Pie (avoid), stacked bar, treemap
Comparison?Bar, grouped bar, dot plot
Trend over time?Line, area, candlestick
Geographic?Choropleth, scatter map, heatmap

2) Maximize data-ink ratio

  • Remove unnecessary gridlines, borders, backgrounds
  • Use color purposefully (not decoration)
  • Label directly when possible
  • One message per visualization

3) Choose interactivity appropriately

AudienceInteractivity Level
Paper/reportStatic (Matplotlib/Seaborn)
PresentationLimited (Plotly static export)
Exploratory analysisHigh (zoom, pan, filter, hover)
Stakeholder dashboardMedium (linked views, drill-down)

Quick examples

Matplotlib (fine control)

import matplotlib.pyplot as plt

fig, ax = plt.subplots(figsize=(10, 6))
ax.scatter(x, y, c=colors, alpha=0.6, edgecolors='none')
ax.set_xlabel('Feature X', fontsize=12)
ax.set_ylabel('Target Y', fontsize=12)
ax.set_title('Relationship Analysis', fontsize=14, fontweight='bold')
ax.spines['top'].set_visible(False)
ax.spines['right'].set_visible(False)
plt.tight_layout()

Seaborn (statistical)

import seaborn as sns

# Distribution with KDE
sns.histplot(data=df, x='value', hue='category', kde=True, bins=30)

# Correlation heatmap
corr = df.corr()
sns.heatmap(corr, annot=True, fmt='.2f', cmap='coolwarm', center=0)

# Categorical comparison
sns.boxplot(data=df, x='category', y='value', palette='viridis')

Plotly (interactive web)

import plotly.express as px

# Scatter with marginal distributions
fig = px.scatter(df, x='x', y='y', color='category', size='size',
                 marginal_x='histogram', marginal_y='rug',
                 hover_data=['label'])
fig.show()

# Faceted small multiples
fig = px.line(df, x='date', y='value', facet_col='category',
              facet_col_wrap=3, height=800)
fig.show()

Altair (declarative, large data)

import altair as alt

# Smart aggregation for large datasets
chart = alt.Chart(df).mark_circle().encode(
    x=alt.X('x:Q', bin=alt.Bin(maxbins=50)),
    y=alt.Y('y:Q', bin=alt.Bin(maxbins=50)),
    size='count()'
).interactive()

chart.save('chart.html')  # Self-contained HTML

hvPlot/HoloViz (large data, linked views)

import hvplot.pandas
import panel as pn

# Linked brushing
scatter = df.hvplot.scatter(x='x', y='y', c='category',
                            tools=['box_select'],
                            width=400, height=400)
hist = df.hvplot.hist(y='y', width=400, height=200)

layout = pn.Row(scatter, hist)
layout.servable()

Bokeh (custom web apps)

from bokeh.plotting import figure, show
from bokeh.models import ColumnDataSource, HoverTool

source = ColumnDataSource(df)

p = figure(title="Interactive Plot", tools="pan,wheel_zoom,box_select")
p.circle('x', 'y', source=source, size=10, alpha=0.6)

hover = HoverTool(tooltips=[("X", "@x"), ("Y", "@y"), ("Label", "@label")])
p.add_tools(hover)

show(p)

Anti-patterns

  • ❌ Pie charts with many slices (use bar charts)
  • ❌ Dual y-axes (hard to read, try normalization or small multiples)
  • ❌ 3D charts (distorts perception)
  • ❌ Rainbow colormaps (use perceptually uniform: viridis, plasma)
  • ❌ Missing labels, titles, or units
  • ❌ Overplotting without handling (sampling, alpha, or Datashader)

Common issues and solutions

ProblemSolution
Overplotting (100k+ points)Use Datashader (rasterization), hexbin, or 2D histogram
Slow interactivityReduce data points, use WebGL (Plotly), or pre-aggregate
Large file sizeSave as JSON (Plotly/Altair) or use static images
Color blindnessUse colorblind-friendly palettes (viridis, colorbrewer)

Progressive disclosure

  • references/matplotlib-advanced.md — Subplots, annotations, custom styles
  • references/seaborn-statistical.md — Complex statistical plots
  • references/plotly-dash.md — Full dashboards with callbacks
  • references/altair-grammar.md — Vega-Lite transformations
  • references/holoviz-datashader.md — Large data visualization
  • references/bokeh-server.md — Real-time streaming apps

Related skills

  • @data-science-eda — Exploration patterns
  • @data-science-interactive-apps — Dashboard deployment
  • @data-science-notebooks — Notebook-specific visualization

References

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

37.82%
按下载量换算36

Claude

31.61%
按下载量换算30

Cursor

16.69%
按下载量换算16

Gemini CLI

10.18%
按下载量换算10

安全审计

Gen Agent Trust Hub

可疑

Socket

通过

Snyk

通过

权限和风险

只读

该 Skill 主要提供规则、说明或参考内容,本身偏只读;真正读写文件、联网或执行命令仍取决于宿主 Agent 的任务。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills