plotly-viz

SKILL研究检索
研究检索 未标注权限 许可证不明确
安装这个技能

Interactive data visualization using plotly.py. Create publication-quality interactive charts, dashboards, and animated visualizations. Use when creating interactive charts/graphs/plots from data, building dashboards, creating animated visualizations, or when hover/zoom/pan interactivity is needed. Supports HTML (interactive) and PNG/SVG/PDF (static) export. Specialized for plotly.py only - for matplotlib/seaborn use python-dataviz.

一句话选型结论

按资料字段整理

plotly-viz是研究检索类的 Agent Skill,安装方式未标注,权限级别未标注,许可证不明确,有可直接复制的安装命令。技能本质是给模型读的说明书,效果取决于模型与客户端;装完先用一个小任务验证,再放进正式流程。

分类研究检索 安装方式未标注 权限级别未标注权限 许可证许可证不明确
累计安装 未标注 本周 未标注
GitHub 星标 未标注 仓库 未标注
下载量 未标注 技能市场下载数
权限级别 未标注权限 安装前请确认风险范围
许可证 许可证不明确 未说明

安装

未标注
在支持 Skills 的客户端里执行,装完问一句「你有哪些技能」验证
skillhub install user_58144761/plotly-viz
  1. 1
    确认客户端支持

    确认你的客户端支持 Skills(Claude、Codex、Cursor 等),并升级到较新的版本。

  2. 2
    拿到技能文件

    执行上面的命令安装;也可以把仓库里的 SKILL.md 手动放进客户端的 skills 目录。

  3. 3
    刷新技能列表

    重新打开客户端,或刷新技能列表,让新放进来的技能被加载。

  4. 4
    验证是否生效

    问一句「你有哪些技能」,确认列表里出现它,再拿一个小任务试跑。

技能档案

研究检索
字段来自技能仓库与公开索引,中文说明由本站标注
作者 / 维护方user_58144761仓库 未标注 · 版本 未标注
宿主客户端未标注技能可被这些客户端加载
安装方式未标注安装包 community
权限级别未标注权限安装前请确认风险范围
许可证未说明许可证不明确,商用前请自行确认条款
仓库可用性available技能仓库当前是否可访问
最近核验未标注上游最后核验时间 · 数据更新 1791663562
正文体量8.1 KBSKILL.md 原文大小,越大说明说明书写得越细

典型使用场景

3 类
按分类整理的常见用法,具体以 SKILL.md 为准
查资料并整理出处

让模型按主题查资料,并把引用来源整理成清单。

网页与文献要点提炼

把长文、论文、网页压成能直接看的要点。

竞品与行业汇总

按关键词汇总竞品动态与行业信息。

选择建议

装之前先看这几条
按条目字段给出的判断,不替你决定用不用

值得选的地方

  • 有可直接复制的安装命令,不用自己翻文档找入口。

先想清楚的地方

  • 没有标注权限级别,实际能做什么要装好后确认。
  • 许可证不明确,商用或二次分发前先到仓库确认条款。
  • 没有做站内核验,内容以作者仓库为准。
  • 技能只是说明书,实际效果取决于模型与客户端,装完先用小任务试一遍。

更适合

  • 需要在研究检索场景里给模型补一套做法的人。
  • 愿意先读一遍 SKILL.md、确认它会让模型做什么的人。

不太适合

  • 对许可证要求很严、必须明确可商用的人。
  • 只想装完就自动变强、不打算看说明书的人。

同类对比

6 个同类
同分类里挑最接近的几条,字段以各自详情页为准
技能权限级别安装方式累计安装宿主客户端安装命令
plotly-viz当前 未标注权限 未标注 未标注 未标注 有
寻找技能 浏览器控制 GitHub 仓库 3120.0 万 Codex、Claude、Cursor 有
自我改进 Agent 接触敏感数据 ClawHub 市场 1646.4 万 OpenClaw 有
灵魂追踪 联网访问 GitHub 仓库 758.9 万 Codex、Claude、Cursor 有
自我完善 联网访问 ClawHub 市场 682.9 万 OpenClaw 有
微软代工厂 调用外部服务 GitHub 仓库 661.4 万 Codex、Claude、Cursor 有

SKILL.md 全文

8.1 KB
模型实际读到的说明书原文,来自技能仓库

Plotly Visualization

Create interactive, publication-quality visualizations with plotly.py - Python's leading interactive graphing library.

Quick Start

import plotly.express as px

# Simple scatter plot
df = px.data.iris()
fig = px.scatter(df, x="sepal_width", y="sepal_length", color="species")
fig.show()

# Export
fig.write_html("chart.html")  # Interactive
fig.write_image("chart.png", width=800, height=600, scale=2)  # Static (requires kaleido)

Chart Type Selection

Data Type Chart Function
Distribution Histogram px.histogram()
Distribution Box plot px.box()
Distribution Violin px.violin()
Comparison Bar px.bar()
Comparison Grouped bar px.bar(barmode='group')
Relationship Scatter px.scatter()
Relationship Line px.line()
Relationship Heatmap px.density_heatmap()
Part-to-whole Pie px.pie()
Part-to-whole Treemap px.treemap()
Part-to-whole Sunburst px.sunburst()
Hierarchical Treemap px.treemap(path=[...])
Hierarchical Sunburst px.sunburst(path=[...])
Geographic Choropleth px.choropleth()
Geographic Scatter map px.scatter_geo()
3D 3D Scatter px.scatter_3d()
3D 3D Line px.line_3d()
Time Series Line + range slider fig.update_layout(xaxis_rangeslider_visible=True)
Animation Animated scatter px.scatter(animation_frame=...)

Core Workflow

  1. Choose API level:
    - plotly.express (px) → Quick, declarative, ~30 chart types
    - plotly.graph_objects (go) → Fine-grained control, all features

  2. Create figure:
    ```python
    # Express (recommended for most cases)
    fig = px.scatter(df, x="col1", y="col2", color="category")

# Graph Objects (for complex customization)
fig = go.Figure()
fig.add_trace(go.Scatter(x=x, y=y, mode='lines', name='Trace'))
```

  1. Customize:
    python fig.update_layout(title="Title", xaxis_title="X", yaxis_title="Y") fig.update_traces(marker=dict(size=10, opacity=0.8))

  2. Export:
    python fig.write_html("interactive.html") fig.write_image("static.png", width=800, height=600, scale=2)

Templates

Built-in templates for consistent styling:

# Available templates: plotly, plotly_white, plotly_dark, ggplot2, seaborn, simple_white, presentation
fig = px.scatter(df, x="x", y="y", template="plotly_white")

# Set default template
import plotly.io as pio
pio.templates.default = "plotly_white"

Template guide:
- plotly_white → Clean, white background (default for publications)
- plotly_dark → Dark theme, good for dashboards
- ggplot2 → R ggplot2 style
- seaborn → Seaborn-inspired styling
- presentation → Larger fonts for presentations

Multiple Traces & Subplots

Multiple Traces (same plot)

import plotly.graph_objects as go

fig = go.Figure()
fig.add_trace(go.Scatter(x=x, y=y1, name='Series 1'))
fig.add_trace(go.Bar(x=x, y=y2, name='Series 2'))
fig.show()

Subplots (multiple plots)

from plotly.subplots import make_subplots

fig = make_subplots(rows=2, cols=2, subplot_titles=("Plot 1", "Plot 2", "Plot 3", "Plot 4"))
fig.add_trace(go.Scatter(x=x1, y=y1), row=1, col=1)
fig.add_trace(go.Bar(x=x2, y=y2), row=1, col=2)
fig.add_trace(go.Histogram(x=x3), row=2, col=1)
fig.add_trace(go.Pie(labels=labels, values=values), row=2, col=2)
fig.update_layout(height=600, title_text="Multi-Panel Dashboard")
fig.show()

Animations

# Animated scatter plot
df = px.data.gapminder()
fig = px.scatter(
    df, x="gdpPercap", y="lifeExp", 
    animation_frame="year", animation_group="country",
    size="pop", color="continent", hover_name="country",
    log_x=True, size_max=55, range_x=[100,100000], range_y=[25,90]
)
fig.show()

Animation best practices:
- Always set range_x and range_y to prevent axis jumping
- Use animation_group to link points across frames
- Control speed: fig.layout.updatemenus[0].buttons[0].args[1]["frame"]["duration"] = 500

Hover & Interactivity

# Custom hover template
fig.update_traces(
    hovertemplate='<b>%{text}</b><br>X: %{x}<br>Y: %{y}<extra></extra>',
    text=df['names']
)

# Unified hover (show all traces at x position)
fig.update_layout(hovermode='x unified')

# Compare hover (show closest point from each trace)
fig.update_layout(hovermode='x')

Common Patterns

Data from DataFrame

import pandas as pd
import plotly.express as px

df = pd.read_csv("data.csv")
fig = px.scatter(df, x="col1", y="col2", color="category", size="value")
fig.write_html("output.html")

Data from Dictionary

data = {'Category': ['A', 'B', 'C'], 'Value': [10, 20, 15]}
fig = px.bar(data, x='Category', y='Value')

Time Series with Range Slider

df = pd.read_csv("timeseries.csv", parse_dates=['date'])
fig = px.line(df, x='date', y='value')
fig.update_layout(xaxis_rangeslider_visible=True)

Statistical Charts

# Histogram with marginal plots
fig = px.histogram(df, x="value", marginal="box", nbins=30)

# Box with points
fig = px.box(df, x="category", y="value", points="all")

# Violin with box inside
fig = px.violin(df, y="value", x="category", box=True, points="all")

Export Options

# Interactive HTML (standalone)
fig.write_html("chart.html", include_plotlyjs=True)

# Interactive HTML (CDN, smaller file)
fig.write_html("chart.html", include_plotlyjs='cdn')

# Static images (requires kaleido: pip install kaleido)
fig.write_image("chart.png", width=800, height=600, scale=2)
fig.write_image("chart.svg")
fig.write_image("chart.pdf")

# Get HTML string for embedding
html_str = fig.to_html(include_plotlyjs=False, full_html=False)

Advanced Features

Annotations & Shapes

fig.add_annotation(x=2, y=10, text="Peak", showarrow=True, arrowhead=1)
fig.add_hline(y=5, line_dash="dash", line_color="red")
fig.add_vrect(x0=1, x1=3, fillcolor="gray", opacity=0.2)

Dual Y-Axis

from plotly.subplots import make_subplots
fig = make_subplots(specs=[[{"secondary_y": True}]])
fig.add_trace(go.Scatter(x=x, y=y1, name="Primary"), secondary_y=False)
fig.add_trace(go.Scatter(x=x, y=y2, name="Secondary"), secondary_y=True)

Custom Color Scales

# Sequential
fig = px.scatter(df, x="x", y="y", color="value", color_continuous_scale="Viridis")

# Diverging
fig = px.scatter(df, x="x", y="y", color="value", color_continuous_scale="RdBu_r")

# Custom discrete
fig = px.bar(df, x="cat", y="val", color="cat", 
             color_discrete_map={"A": "red", "B": "blue", "C": "green"})

Troubleshooting

"kaleido not found" (for static export)

pip install kaleido

Blank figure / No output
- Ensure fig.show() or export after adding traces
- For scripts, use fig.write_html() instead of fig.show()

Large file sizes
- Use include_plotlyjs='cdn' for smaller HTML files
- Use SVG for vector graphics (smaller for simple charts)

Slow rendering with many points
- Consider downsampling or aggregation
- Use px.scatter with render_mode='webgl' for 100K+ points

Resources

  • Chart examples: See scripts/ for ready-to-use chart templates
  • Templates reference: See references/templates.md for template customization
  • Color reference: See references/colors.md for color scales and palettes
  • Advanced charts: See references/advanced.md for specialized visualizations

Environment Setup

pip install plotly pandas kaleido

Dependencies:
- plotly - Core library
- pandas - Data manipulation (recommended)
- kaleido - Static image export (optional)

常见问题

5 问
答案由本站依据条目字段整理
plotly-viz怎么安装?

在支持 Skills 的客户端里执行:skillhub install user_58144761/plotly-viz。安装方式为未标注。装完刷新技能列表或重开客户端。

plotly-viz支持哪些客户端?

资料没有标注宿主客户端,但只要客户端支持 Skills(Claude、Codex、Cursor 等),一般都能加载。

plotly-viz权限高吗,安全吗?

权限级别为未标注权限。安装前先看它会读取或写入哪些内容。

plotly-viz收费吗?

本站不代收费用,也没有标注具体价格。是否收费取决于技能本身和所用的模型或客户端,正式使用前按作者说明确认。

plotly-viz用什么许可证?

许可证标注为 未说明(许可证不明确)。商用或二次分发前请到仓库确认条款原文。

热门专题

按场景挑技能
全部专题 →

技能内容以作者仓库为准;分类、权限级别与许可证状态的中文说明为中文整理,最近核验 未标注。