Loading...
Loading...
Compare original and translation side by side
| Library | Best For | Interactive | Learning Curve |
|---|---|---|---|
| Matplotlib | Publication, full control | No | Steep |
| Seaborn | Statistical, beautiful defaults | No | Easy |
| Plotly | Dashboards, web | Yes | Medium |
| Altair | Declarative, grammar of graphics | Yes | Easy |
| 库 | 最佳适用场景 | 支持交互式 | 学习曲线 |
|---|---|---|---|
| Matplotlib | 学术出版、完全自定义控制 | 否 | 陡峭 |
| Seaborn | 统计可视化、美观默认样式 | 否 | 简单 |
| Plotly | 仪表盘、网页应用 | 是 | 中等 |
| Altair | 声明式语法、图形语法 | 是 | 简单 |
fig, ax = plt.subplots()fig, ax = plt.subplots()px.scatter()go.Figure()px.scatter()go.Figure()| Data Type | Chart |
|---|---|
| Trends over time | Line chart |
| Distribution | Histogram, box plot, violin |
| Comparison | Bar chart, grouped bar |
| Relationship | Scatter, bubble |
| Composition | Pie, stacked bar |
| Correlation | Heatmap |
| Part-to-whole | Treemap, sunburst |
| 数据类型 | 推荐图表 |
|---|---|
| 时间趋势 | 折线图 |
| 数据分布 | 直方图、箱线图、小提琴图 |
| 对比分析 | 条形图、分组条形图 |
| 关系分析 | 散点图、气泡图 |
| 构成分析 | 饼图、堆叠条形图 |
| 相关性分析 | 热力图 |
| 整体与部分 | 树状图、旭日图 |
| Task | Recommendation |
|---|---|
| Publication figures | Matplotlib |
| Quick EDA | Seaborn |
| Statistical analysis | Seaborn |
| Interactive dashboards | Plotly |
| Web embedding | Plotly |
| Complex customization | Matplotlib |
| 任务场景 | 推荐库 |
|---|---|
| 学术出版图表 | Matplotlib |
| 快速探索性数据分析(EDA) | Seaborn |
| 统计分析 | Seaborn |
| 交互式仪表盘 | Plotly |
| 网页嵌入 | Plotly |
| 复杂自定义需求 | Matplotlib |