[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M797877J0Q3ZECP9AMSAMA7S":3,"skill-same:01M797877J0Q3ZECP9AMSAMA7S":44},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":24,"commitSha":25,"skillDirectory":26,"forksCount":14,"repositoryHtmlUrl":27,"repositoryHomepageUrl":6,"ownerHtmlUrl":28,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":29,"install":30,"resources":43},"01M797877J0Q3ZECP9AMSAMA7S","data-visualization",null,"Use for creating publication-quality charts and multi-panel analysis summaries. Triggers when tasks involve visualizing data, plotting results, creating charts, or producing visual reports from analysis output.","cantwakeup\u002FTongAgent4pre","cantwakeup","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F150812264?v=4","01M797770TZEZP30VCFT7J1S6G","Ye Song","01M797771E0VKYGCT74GSSKR61",0,"MIT","https:\u002F\u002Fgithub.com\u002Fcantwakeup\u002FTongAgent4pre\u002Fblob\u002Fmain\u002Fexamples\u002Fnvidia_deep_agent\u002Fskills\u002Fdata-visualization\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: data-visualization\ndescription: Use for creating publication-quality charts and multi-panel analysis summaries. Triggers when tasks involve visualizing data, plotting results, creating charts, or producing visual reports from analysis output.\n---\n\n# Data Visualization Skill\n\nCreate publication-quality analytical charts using matplotlib and seaborn in a headless GPU sandbox. Charts are saved as PNG files to `\u002Fworkspace\u002F` for retrieval.\n\n## When to Use This Skill\n\nUse this skill when:\n- Visualizing results from cuDF analysis or cuML models\n- Creating charts (bar, line, scatter, heatmap, histogram, box plot)\n- Building multi-panel analysis summaries\n- The user asks for visual output, plots, graphs, or charts\n- Presenting statistical findings with figures\n\n## Initialization (REQUIRED)\n\nMUST call `matplotlib.use('Agg')` BEFORE importing pyplot. This enables headless rendering.\n\n```python\nimport matplotlib\nmatplotlib.use('Agg')  # Headless backend — MUST be before pyplot import\nimport matplotlib.pyplot as plt\nimport numpy as np\n\n# Publication-quality defaults\nplt.rcParams.update({\n    'figure.dpi': 100,\n    'savefig.dpi': 300,\n    'font.size': 11,\n    'axes.labelsize': 12,\n    'axes.titlesize': 14,\n    'xtick.labelsize': 10,\n    'ytick.labelsize': 10,\n    'legend.fontsize': 10,\n    'figure.constrained_layout.use': True,\n})\n\n# Colorblind-safe palette (Okabe-Ito)\nCOLORS = ['#0173B2', '#DE8F05', '#029E73', '#D55E00', '#CC78BC',\n          '#CA9161', '#FBAFE4', '#949494', '#ECE133', '#56B4E9']\n```\n\n## Saving Charts\n\nAlways save to `\u002Fworkspace\u002F` with these settings:\n\n```python\nplt.savefig('\u002Fworkspace\u002Fchart_name.png', dpi=300, bbox_inches='tight',\n            facecolor='white', edgecolor='none')\nplt.close()\n# IMPORTANT: call read_file(\"\u002Fworkspace\u002F\u003Cchart>.png\") to display inline\n```\n\n- `dpi=300` for print quality\n- `bbox_inches='tight'` removes excess whitespace\n- `facecolor='white'` ensures white background\n- Always call `plt.close()` after saving to free memory\n\n## Displaying Charts (REQUIRED)\n\nAfter saving any chart, you MUST call `read_file` on it to display it inline in the conversation:\n\n```\nread_file(\"\u002Fworkspace\u002Fchart_name.png\")\n```\n\nUsers cannot see charts unless you do this. Every chart you save MUST be followed by a `read_file` call.\n\n## Quick Reference\n\n### Bar Chart (from groupby results)\n\n```python\n# After: result = to_pd(df.groupby(\"category\")[\"value\"].mean())\nfig, ax = plt.subplots(figsize=(8, 5))\n\nbars = ax.bar(result.index, result.values, color=COLORS[:len(result)],\n              edgecolor='black', linewidth=0.8)\n\nfor bar in bars:\n    height = bar.get_height()\n    ax.text(bar.get_x() + bar.get_width()\u002F2., height,\n            f'{height:.1f}', ha='center', va='bottom', fontsize=9)\n\nax.set_ylabel('Mean Value', fontweight='bold')\nax.set_xlabel('Category', fontweight='bold')\nax.set_title('Average Value by Category', fontweight='bold')\nax.grid(axis='y', alpha=0.3, linestyle='--')\nax.set_axisbelow(True)\n\nplt.savefig('\u002Fworkspace\u002Fbar_chart.png', dpi=300, bbox_inches='tight',\n            facecolor='white', edgecolor='none')\nplt.close()\n# IMPORTANT: call read_file(\"\u002Fworkspace\u002F\u003Cchart>.png\") to display inline\n```\n\n### Line Chart (trends over time)\n\n```python\nfig, ax = plt.subplots(figsize=(10, 5))\n\nfor i, col in enumerate(columns_to_plot):\n    ax.plot(df[\"date\"], df[col], label=col, color=COLORS[i], linewidth=2,\n            marker='o', markersize=3, markevery=max(1, len(df)\u002F\u002F20))\n\nax.set_ylabel('Values', fontweight='bold')\nax.set_xlabel('Date', fontweight='bold')\nax.set_title('Trends Over Time', fontweight='bold')\nax.legend(frameon=True, shadow=False)\nax.grid(True, alpha=0.3, linestyle='--')\nax.set_axisbelow(True)\nplt.xticks(rotation=45, ha='right')\n\nplt.savefig('\u002Fworkspace\u002Fline_chart.png', dpi=300, bbox_inches='tight',\n            facecolor='white', edgecolor='none')\nplt.close()\n# IMPORTANT: call read_file(\"\u002Fworkspace\u002F\u003Cchart>.png\") to display inline\n```\n\n### Scatter Plot — Continuous Color (correlations)\n\n```python\nfig, ax = plt.subplots(figsize=(8, 6))\n\nscatter = ax.scatter(df[\"x\"], df[\"y\"], c=df[\"value\"], cmap='viridis',\n                     s=40, alpha=0.7, edgecolors='black', linewidth=0.3)\nplt.colorbar(scatter, ax=ax, label='Value')\n\n# Optional: trend line\nz = np.polyfit(df[\"x\"], df[\"y\"], 1)\nax.plot(df[\"x\"].sort_values(), np.poly1d(z)(df[\"x\"].sort_values()),\n        \"r--\", linewidth=2, label=f'y={z[0]:.2f}x+{z[1]:.2f}')\n\nax.set_xlabel('X', fontweight='bold')\nax.set_ylabel('Y', fontweight='bold')\nax.set_title('Correlation Analysis', fontweight='bold')\nax.legend()\nax.grid(True, alpha=0.3, linestyle='--')\n\nplt.savefig('\u002Fworkspace\u002Fscatter_correlation.png', dpi=300, bbox_inches='tight',\n            facecolor='white', edgecolor='none')\nplt.close()\n# IMPORTANT: call read_file(\"\u002Fworkspace\u002F\u003Cchart>.png\") to display inline\n```\n\n### Scatter Plot — Categorical Color (clusters)\n\n```python\nfig, ax = plt.subplots(figsize=(8, 6))\n\nfor i, label in enumerate(sorted(df[\"cluster\"].unique())):\n    mask = df[\"cluster\"] == label\n    ax.scatter(df.loc[mask, \"x\"], df.loc[mask, \"y\"],\n               c=COLORS[i], label=f'Cluster {label}', s=40, alpha=0.7)\n\nax.set_xlabel('X', fontweight='bold')\nax.set_ylabel('Y', fontweight='bold')\nax.set_title('Cluster Visualization', fontweight='bold')\nax.legend()\nax.grid(True, alpha=0.3, linestyle='--')\n\nplt.savefig('\u002Fworkspace\u002Fscatter_clusters.png', dpi=300, bbox_inches='tight',\n            facecolor='white', edgecolor='none')\nplt.close()\n# IMPORTANT: call read_file(\"\u002Fworkspace\u002F\u003Cchart>.png\") to display inline\n```\n\n### Heatmap (correlation matrix or confusion matrix)\n\n```python\nimport seaborn as sns\n\nfig, ax = plt.subplots(figsize=(8, 7))\n\n# corr_matrix = to_pd(df[numeric_cols].corr())\nsns.heatmap(corr_matrix, annot=True, fmt='.2f', cmap='RdBu_r', center=0,\n            square=True, linewidths=1, vmin=-1, vmax=1,\n            cbar_kws={'label': 'Correlation'}, ax=ax)\n\nax.set_title('Correlation Matrix', fontweight='bold')\n\nplt.savefig('\u002Fworkspace\u002Fheatmap.png', dpi=300, bbox_inches='tight',\n            facecolor='white', edgecolor='none')\nplt.close()\n# IMPORTANT: call read_file(\"\u002Fworkspace\u002F\u003Cchart>.png\") to display inline\n```\n\n### Histogram with KDE\n\n```python\nfig, ax = plt.subplots(figsize=(8, 5))\n\nax.hist(df[\"value\"], bins=30, color=COLORS[0], alpha=0.7,\n        edgecolor='black', linewidth=0.5, density=True, label='Distribution')\n\n# Add KDE curve\nfrom scipy.stats import gaussian_kde\nkde = gaussian_kde(df[\"value\"].dropna())\nx_range = np.linspace(df[\"value\"].min(), df[\"value\"].max(), 200)\nax.plot(x_range, kde(x_range), color=COLORS[1], linewidth=2, label='KDE')\n\nax.set_xlabel('Value', fontweight='bold')\nax.set_ylabel('Density', fontweight='bold')\nax.set_title('Value Distribution', fontweight='bold')\nax.legend()\nax.grid(axis='y', alpha=0.3, linestyle='--')\n\nplt.savefig('\u002Fworkspace\u002Fhistogram.png', dpi=300, bbox_inches='tight',\n            facecolor='white', edgecolor='none')\nplt.close()\n# IMPORTANT: call read_file(\"\u002Fworkspace\u002F\u003Cchart>.png\") to display inline\n```\n\n### Box Plot (compare groups)\n\n```python\nfig, ax = plt.subplots(figsize=(8, 5))\n\ngroups = [df[df[\"group\"] == g][\"value\"].values for g in group_names]\nbp = ax.boxplot(groups, labels=group_names, patch_artist=True,\n                widths=0.6, showmeans=True,\n                meanprops=dict(marker='D', markerfacecolor='red', markersize=6))\n\nfor i, patch in enumerate(bp['boxes']):\n    patch.set_facecolor(COLORS[i % len(COLORS)])\n    patch.set_alpha(0.7)\n\nax.set_ylabel('Value', fontweight='bold')\nax.set_title('Distribution by Group', fontweight='bold')\nax.grid(axis='y', alpha=0.3, linestyle='--')\nax.set_axisbelow(True)\n\nplt.savefig('\u002Fworkspace\u002Fboxplot.png', dpi=300, bbox_inches='tight',\n            facecolor='white', edgecolor='none')\nplt.close()\n# IMPORTANT: call read_file(\"\u002Fworkspace\u002F\u003Cchart>.png\") to display inline\n```\n\n### Multi-Panel Analysis Summary\n\nUse this to create a single image with multiple charts — the most effective way to present a complete analysis.\n\n```python\nfig, axes = plt.subplots(2, 2, figsize=(14, 10))\n\n# Top-left: Distribution\naxes[0, 0].hist(df[\"value\"], bins=30, color=COLORS[0], alpha=0.7, edgecolor='black', linewidth=0.5)\naxes[0, 0].set_title('Value Distribution', fontweight='bold')\naxes[0, 0].set_xlabel('Value')\naxes[0, 0].grid(axis='y', alpha=0.3, linestyle='--')\n\n# Top-right: Scatter\naxes[0, 1].scatter(df[\"x\"], df[\"y\"], c=COLORS[0], s=30, alpha=0.5)\naxes[0, 1].set_title('X vs Y', fontweight='bold')\naxes[0, 1].set_xlabel('X')\naxes[0, 1].set_ylabel('Y')\naxes[0, 1].grid(True, alpha=0.3, linestyle='--')\n\n# Bottom-left: Bar chart\ngroup_means = df.groupby(\"category\")[\"value\"].mean()\naxes[1, 0].bar(group_means.index, group_means.values, color=COLORS[:len(group_means)])\naxes[1, 0].set_title('Mean by Category', fontweight='bold')\naxes[1, 0].set_xlabel('Category')\naxes[1, 0].grid(axis='y', alpha=0.3, linestyle='--')\n\n# Bottom-right: Box plot\naxes[1, 1].boxplot([df[df[\"category\"] == c][\"value\"].values for c in categories],\n                    labels=categories, patch_artist=True)\naxes[1, 1].set_title('Distribution by Category', fontweight='bold')\naxes[1, 1].grid(axis='y', alpha=0.3, linestyle='--')\n\nfig.suptitle('Analysis Summary', fontsize=16, fontweight='bold')\n\nplt.savefig('\u002Fworkspace\u002Fanalysis_summary.png', dpi=300, bbox_inches='tight',\n            facecolor='white', edgecolor='none')\nplt.close()\n# IMPORTANT: call read_file(\"\u002Fworkspace\u002F\u003Cchart>.png\") to display inline\n```\n\n### Feature Importance Chart (from cuML model)\n\n```python\nfig, ax = plt.subplots(figsize=(8, max(4, len(feature_names) * 0.35)))\n\n# importances = to_pd(model.feature_importances_)\nsorted_idx = np.argsort(importances)\nax.barh(np.array(feature_names)[sorted_idx], importances[sorted_idx],\n        color=COLORS[0], edgecolor='black', linewidth=0.5)\n\nax.set_xlabel('Importance', fontweight='bold')\nax.set_title('Feature Importances', fontweight='bold')\nax.grid(axis='x', alpha=0.3, linestyle='--')\nax.set_axisbelow(True)\n\nplt.savefig('\u002Fworkspace\u002Ffeature_importance.png', dpi=300, bbox_inches='tight',\n            facecolor='white', edgecolor='none')\nplt.close()\n# IMPORTANT: call read_file(\"\u002Fworkspace\u002F\u003Cchart>.png\") to display inline\n```\n\n### Confusion Matrix (from cuML classification)\n\n```python\nimport seaborn as sns\n\nfig, ax = plt.subplots(figsize=(7, 6))\n\n# cm = confusion_matrix(to_pd(y_test), to_pd(predictions))\nsns.heatmap(cm, annot=True, fmt='d', cmap='Blues', square=True,\n            xticklabels=class_names, yticklabels=class_names,\n            linewidths=1, cbar_kws={'label': 'Count'}, ax=ax)\n\nax.set_xlabel('Predicted', fontweight='bold')\nax.set_ylabel('Actual', fontweight='bold')\nax.set_title('Confusion Matrix', fontweight='bold')\n\nplt.savefig('\u002Fworkspace\u002Fconfusion_matrix.png', dpi=300, bbox_inches='tight',\n            facecolor='white', edgecolor='none')\nplt.close()\n# IMPORTANT: call read_file(\"\u002Fworkspace\u002F\u003Cchart>.png\") to display inline\n```\n\n## Style Rules\n\n- Use `COLORS` palette (colorblind-safe) — never rely on color alone to distinguish elements\n- No pie charts (bar charts are always clearer)\n- No 3D plots (distort data perception)\n- Grid lines at `alpha=0.3, linestyle='--'` with `ax.set_axisbelow(True)`\n- Bold axis labels and titles (`fontweight='bold'`)\n- White background for all exports\n- 1-4 charts per analysis is typical; use multi-panel for more\n\n## Output Guidelines\n\n- Save all charts to `\u002Fworkspace\u002F` as PNG\n- Print file paths after saving so the agent can reference them\n- For multi-panel summaries, use `figsize=(14, 10)` for 2×2 layouts\n- Keep chart titles descriptive but concise\n- Include units in axis labels when applicable\n","# Data Visualization Skill\n\nCreate publication-quality analytical charts using matplotlib and seaborn in a headless GPU sandbox. Charts are saved as PNG files to `\u002Fworkspace\u002F` for retrieval.\n\n## When to Use This Skill\n\nUse this skill when:\n- Visualizing results from cuDF analysis or cuML models\n- Creating charts (bar, line, scatter, heatmap, histogram, box plot)\n- Building multi-panel analysis summaries\n- The user asks for visual output, plots, graphs, or charts\n- Presenting statistical findings with figures\n\n## Initialization (REQUIRED)\n\nMUST call `matplotlib.use('Agg')` BEFORE importing pyplot. This enables headless rendering.\n\n```python\nimport matplotlib\nmatplotlib.use('Agg')  # Headless backend — MUST be before pyplot import\nimport matplotlib.pyplot as plt\nimport numpy as np\n\n# Publication-quality defaults\nplt.rcParams.update({\n    'figure.dpi': 100,\n    'savefig.dpi': 300,\n    'font.size': 11,\n    'axes.labelsize': 12,\n    'axes.titlesize': 14,\n    'xtick.labelsize': 10,\n    'ytick.labelsize': 10,\n    'legend.fontsize': 10,\n    'figure.constrained_layout.use': True,\n})\n\n# Colorblind-safe palette (Okabe-Ito)\nCOLORS = ['#0173B2', '#DE8F05', '#029E73', '#D55E00', '#CC78BC',\n          '#CA9161', '#FBAFE4', '#949494', '#ECE133', '#56B4E9']\n```\n\n## Saving Charts\n\nAlways save to `\u002Fworkspace\u002F` with these settings:\n\n```python\nplt.savefig('\u002Fworkspace\u002Fchart_name.png', dpi=300, bbox_inches='tight',\n            facecolor='white', edgecolor='none')\nplt.close()\n# IMPORTANT: call read_file(\"\u002Fworkspace\u002F\u003Cchart>.png\") to display inline\n```\n\n- `dpi=300` for print quality\n- `bbox_inches='tight'` removes excess whitespace\n- `facecolor='white'` ensures white background\n- Always call `plt.close()` after saving to free memory\n\n## Displaying Charts (REQUIRED)\n\nAfter saving any chart, you MUST call `read_file` on it to display it inline in the conversation:\n\n```\nread_file(\"\u002Fworkspace\u002Fchart_name.png\")\n```\n\nUsers cannot see charts unless you do this. Every chart you save MUST be followed by a `read_file` call.\n\n## Quick Reference\n\n### Bar Chart (from groupby results)\n\n```python\n# After: result = to_pd(df.groupby(\"category\")[\"value\"].mean())\nfig, ax = plt.subplots(figsize=(8, 5))\n\nbars = ax.bar(result.index, result.values, color=COLORS[:len(result)],\n              edgecolor='black', linewidth=0.8)\n\nfor bar in bars:\n    height = bar.get_height()\n    ax.text(bar.get_x() + bar.get_width()\u002F2., height,\n            f'{height:.1f}', ha='center', va='bottom', fontsize=9)\n\nax.set_ylabel('Mean Value', fontweight='bold')\nax.set_xlabel('Category', fontweight='bold')\nax.set_title('Average Value by Category', fontweight='bold')\nax.grid(axis='y', alpha=0.3, linestyle='--')\nax.set_axisbelow(True)\n\nplt.savefig('\u002Fworkspace\u002Fbar_chart.png', dpi=300, bbox_inches='tight',\n            facecolor='white', edgecolor='none')\nplt.close()\n# IMPORTANT: call read_file(\"\u002Fworkspace\u002F\u003Cchart>.png\") to display inline\n```\n\n### Line Chart (trends over time)\n\n```python\nfig, ax = plt.subplots(figsize=(10, 5))\n\nfor i, col in enumerate(columns_to_plot):\n    ax.plot(df[\"date\"], df[col], label=col, color=COLORS[i], linewidth=2,\n            marker='o', markersize=3, markevery=max(1, len(df)\u002F\u002F20))\n\nax.set_ylabel('Values', fontweight='bold')\nax.set_xlabel('Date', fontweight='bold')\nax.set_title('Trends Over Time', fontweight='bold')\nax.legend(frameon=True, shadow=False)\nax.grid(True, alpha=0.3, linestyle='--')\nax.set_axisbelow(True)\nplt.xticks(rotation=45, ha='right')\n\nplt.savefig('\u002Fworkspace\u002Fline_chart.png', dpi=300, bbox_inches='tight',\n            facecolor='white', edgecolor='none')\nplt.close()\n# IMPORTANT: call read_file(\"\u002Fworkspace\u002F\u003Cchart>.png\") to display inline\n```\n\n### Scatter Plot — Continuous Color (correlations)\n\n```python\nfig, ax = plt.subplots(figsize=(8, 6))\n\nscatter = ax.scatter(df[\"x\"], df[\"y\"], c=df[\"value\"], cmap='viridis',\n                     s=40, alpha=0.7, edgecolors='black', linewidth=0.3)\nplt.colorbar(scatter, ax=ax, label='Value')\n\n# Optional: trend line\nz = np.polyfit(df[\"x\"], df[\"y\"], 1)\nax.plot(df[\"x\"].sort_values(), np.poly1d(z)(df[\"x\"].sort_values()),\n        \"r--\", linewidth=2, label=f'y={z[0]:.2f}x+{z[1]:.2f}')\n\nax.set_xlabel('X', fontweight='bold')\nax.set_ylabel('Y', fontweight='bold')\nax.set_title('Correlation Analysis', fontweight='bold')\nax.legend()\nax.grid(True, alpha=0.3, linestyle='--')\n\nplt.savefig('\u002Fworkspace\u002Fscatter_correlation.png', dpi=300, bbox_inches='tight',\n            facecolor='white', edgecolor='none')\nplt.close()\n# IMPORTANT: call read_file(\"\u002Fworkspace\u002F\u003Cchart>.png\") to display inline\n```\n\n### Scatter Plot — Categorical Color (clusters)\n\n```python\nfig, ax = plt.subplots(figsize=(8, 6))\n\nfor i, label in enumerate(sorted(df[\"cluster\"].unique())):\n    mask = df[\"cluster\"] == label\n    ax.scatter(df.loc[mask, \"x\"], df.loc[mask, \"y\"],\n               c=COLORS[i], label=f'Cluster {label}', s=40, alpha=0.7)\n\nax.set_xlabel('X', fontweight='bold')\nax.set_ylabel('Y', fontweight='bold')\nax.set_title('Cluster Visualization', fontweight='bold')\nax.legend()\nax.grid(True, alpha=0.3, linestyle='--')\n\nplt.savefig('\u002Fworkspace\u002Fscatter_clusters.png', dpi=300, bbox_inches='tight',\n            facecolor='white', edgecolor='none')\nplt.close()\n# IMPORTANT: call read_file(\"\u002Fworkspace\u002F\u003Cchart>.png\") to display inline\n```\n\n### Heatmap (correlation matrix or confusion matrix)\n\n```python\nimport seaborn as sns\n\nfig, ax = plt.subplots(figsize=(8, 7))\n\n# corr_matrix = to_pd(df[numeric_cols].corr())\nsns.heatmap(corr_matrix, annot=True, fmt='.2f', cmap='RdBu_r', center=0,\n            square=True, linewidths=1, vmin=-1, vmax=1,\n            cbar_kws={'label': 'Correlation'}, ax=ax)\n\nax.set_title('Correlation Matrix', fontweight='bold')\n\nplt.savefig('\u002Fworkspace\u002Fheatmap.png', dpi=300, bbox_inches='tight',\n            facecolor='white', edgecolor='none')\nplt.close()\n# IMPORTANT: call read_file(\"\u002Fworkspace\u002F\u003Cchart>.png\") to display inline\n```\n\n### Histogram with KDE\n\n```python\nfig, ax = plt.subplots(figsize=(8, 5))\n\nax.hist(df[\"value\"], bins=30, color=COLORS[0], alpha=0.7,\n        edgecolor='black', linewidth=0.5, density=True, label='Distribution')\n\n# Add KDE curve\nfrom scipy.stats import gaussian_kde\nkde = gaussian_kde(df[\"value\"].dropna())\nx_range = np.linspace(df[\"value\"].min(), df[\"value\"].max(), 200)\nax.plot(x_range, kde(x_range), color=COLORS[1], linewidth=2, label='KDE')\n\nax.set_xlabel('Value', fontweight='bold')\nax.set_ylabel('Density', fontweight='bold')\nax.set_title('Value Distribution', fontweight='bold')\nax.legend()\nax.grid(axis='y', alpha=0.3, linestyle='--')\n\nplt.savefig('\u002Fworkspace\u002Fhistogram.png', dpi=300, bbox_inches='tight',\n            facecolor='white', edgecolor='none')\nplt.close()\n# IMPORTANT: call read_file(\"\u002Fworkspace\u002F\u003Cchart>.png\") to display inline\n```\n\n### Box Plot (compare groups)\n\n```python\nfig, ax = plt.subplots(figsize=(8, 5))\n\ngroups = [df[df[\"group\"] == g][\"value\"].values for g in group_names]\nbp = ax.boxplot(groups, labels=group_names, patch_artist=True,\n                widths=0.6, showmeans=True,\n                meanprops=dict(marker='D', markerfacecolor='red', markersize=6))\n\nfor i, patch in enumerate(bp['boxes']):\n    patch.set_facecolor(COLORS[i % len(COLORS)])\n    patch.set_alpha(0.7)\n\nax.set_ylabel('Value', fontweight='bold')\nax.set_title('Distribution by Group', fontweight='bold')\nax.grid(axis='y', alpha=0.3, linestyle='--')\nax.set_axisbelow(True)\n\nplt.savefig('\u002Fworkspace\u002Fboxplot.png', dpi=300, bbox_inches='tight',\n            facecolor='white', edgecolor='none')\nplt.close()\n# IMPORTANT: call read_file(\"\u002Fworkspace\u002F\u003Cchart>.png\") to display inline\n```\n\n### Multi-Panel Analysis Summary\n\nUse this to create a single image with multiple charts — the most effective way to present a complete analysis.\n\n```python\nfig, axes = plt.subplots(2, 2, figsize=(14, 10))\n\n# Top-left: Distribution\naxes[0, 0].hist(df[\"value\"], bins=30, color=COLORS[0], alpha=0.7, edgecolor='black', linewidth=0.5)\naxes[0, 0].set_title('Value Distribution', fontweight='bold')\naxes[0, 0].set_xlabel('Value')\naxes[0, 0].grid(axis='y', alpha=0.3, linestyle='--')\n\n# Top-right: Scatter\naxes[0, 1].scatter(df[\"x\"], df[\"y\"], c=COLORS[0], s=30, alpha=0.5)\naxes[0, 1].set_title('X vs Y', fontweight='bold')\naxes[0, 1].set_xlabel('X')\naxes[0, 1].set_ylabel('Y')\naxes[0, 1].grid(True, alpha=0.3, linestyle='--')\n\n# Bottom-left: Bar chart\ngroup_means = df.groupby(\"category\")[\"value\"].mean()\naxes[1, 0].bar(group_means.index, group_means.values, color=COLORS[:len(group_means)])\naxes[1, 0].set_title('Mean by Category', fontweight='bold')\naxes[1, 0].set_xlabel('Category')\naxes[1, 0].grid(axis='y', alpha=0.3, linestyle='--')\n\n# Bottom-right: Box plot\naxes[1, 1].boxplot([df[df[\"category\"] == c][\"value\"].values for c in categories],\n                    labels=categories, patch_artist=True)\naxes[1, 1].set_title('Distribution by Category', fontweight='bold')\naxes[1, 1].grid(axis='y', alpha=0.3, linestyle='--')\n\nfig.suptitle('Analysis Summary', fontsize=16, fontweight='bold')\n\nplt.savefig('\u002Fworkspace\u002Fanalysis_summary.png', dpi=300, bbox_inches='tight',\n            facecolor='white', edgecolor='none')\nplt.close()\n# IMPORTANT: call read_file(\"\u002Fworkspace\u002F\u003Cchart>.png\") to display inline\n```\n\n### Feature Importance Chart (from cuML model)\n\n```python\nfig, ax = plt.subplots(figsize=(8, max(4, len(feature_names) * 0.35)))\n\n# importances = to_pd(model.feature_importances_)\nsorted_idx = np.argsort(importances)\nax.barh(np.array(feature_names)[sorted_idx], importances[sorted_idx],\n        color=COLORS[0], edgecolor='black', linewidth=0.5)\n\nax.set_xlabel('Importance', fontweight='bold')\nax.set_title('Feature Importances', fontweight='bold')\nax.grid(axis='x', alpha=0.3, linestyle='--')\nax.set_axisbelow(True)\n\nplt.savefig('\u002Fworkspace\u002Ffeature_importance.png', dpi=300, bbox_inches='tight',\n            facecolor='white', edgecolor='none')\nplt.close()\n# IMPORTANT: call read_file(\"\u002Fworkspace\u002F\u003Cchart>.png\") to display inline\n```\n\n### Confusion Matrix (from cuML classification)\n\n```python\nimport seaborn as sns\n\nfig, ax = plt.subplots(figsize=(7, 6))\n\n# cm = confusion_matrix(to_pd(y_test), to_pd(predictions))\nsns.heatmap(cm, annot=True, fmt='d', cmap='Blues', square=True,\n            xticklabels=class_names, yticklabels=class_names,\n            linewidths=1, cbar_kws={'label': 'Count'}, ax=ax)\n\nax.set_xlabel('Predicted', fontweight='bold')\nax.set_ylabel('Actual', fontweight='bold')\nax.set_title('Confusion Matrix', fontweight='bold')\n\nplt.savefig('\u002Fworkspace\u002Fconfusion_matrix.png', dpi=300, bbox_inches='tight',\n            facecolor='white', edgecolor='none')\nplt.close()\n# IMPORTANT: call read_file(\"\u002Fworkspace\u002F\u003Cchart>.png\") to display inline\n```\n\n## Style Rules\n\n- Use `COLORS` palette (colorblind-safe) — never rely on color alone to distinguish elements\n- No pie charts (bar charts are always clearer)\n- No 3D plots (distort data perception)\n- Grid lines at `alpha=0.3, linestyle='--'` with `ax.set_axisbelow(True)`\n- Bold axis labels and titles (`fontweight='bold'`)\n- White background for all exports\n- 1-4 charts per analysis is typical; use multi-panel for more\n\n## Output Guidelines\n\n- Save all charts to `\u002Fworkspace\u002F` as PNG\n- Print file paths after saving so the agent can reference them\n- For multi-panel summaries, use `figsize=(14, 10)` for 2×2 layouts\n- Keep chart titles descriptive but concise\n- Include units in axis labels when applicable\n",{"name":5,"description":7},"main","a3b2db2cea7e34c75671308ff00219c6147b01f0","examples\u002Fnvidia_deep_agent\u002Fskills\u002Fdata-visualization","https:\u002F\u002Fgithub.com\u002Fcantwakeup\u002FTongAgent4pre","https:\u002F\u002Fgithub.com\u002Fcantwakeup","2026-08-31 20:25:48",{"source":8,"skillName":5,"commands":31,"prompt":41,"zipAvailable":42},[32,35,38],{"tool":33,"command":34},"npx","npx skills add cantwakeup\u002FTongAgent4pre --skill data-visualization",{"tool":36,"command":37},"bunx","bunx skills add cantwakeup\u002FTongAgent4pre --skill data-visualization",{"tool":39,"command":40},"pnpm","pnpm dlx skills add cantwakeup\u002FTongAgent4pre --skill data-visualization","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fcantwakeup\u002FTongAgent4pre\u002Fblob\u002Fmain\u002Fexamples\u002Fnvidia_deep_agent\u002Fskills\u002Fdata-visualization\u002FSKILL.md",true,[],[45,52,59,66,73,78],{"skillNo":46,"name":47,"nameZh":6,"description":48,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":49,"categories":50,"keywords":51,"publishedAt":19},"01M797A07KAHW35Y5BZ68TZV5S","web-research","Searches multiple web sources, synthesizes findings, and produces cited research reports using delegated subagents. Use when the user asks to research a topic online, search the web, look something up, find current information, compare options, or produce a research report.","https:\u002F\u002Fgithub.com\u002Fcantwakeup\u002FTongAgent4pre\u002Fblob\u002Fmain\u002Flibs\u002Fcode\u002Fexamples\u002Fskills\u002Fweb-research\u002FSKILL.md",[],[],{"skillNo":53,"name":54,"nameZh":6,"description":55,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":56,"categories":57,"keywords":58,"publishedAt":19},"01M7979SNHSG1AA13NCTSXDBZ7","skill-creator","Guide for creating effective skills that extend agent capabilities with specialized knowledge, workflows, or tool integrations. Use this skill when the user asks to: (1) create a new skill, (2) make a skill, (3) build a skill, (4) set up a skill, (5) initialize a skill, (6) scaffold a skill, (7) update or modify an existing skill, (8) validate a skill, (9) learn about skill structure, (10) understand how skills work, or (11) get guidance on skill design patterns. Trigger on phrases like \"create a skill\", \"new skill\", \"make a skill\", \"skill for X\", \"how do I create a skill\", or \"help me build a skill\".","https:\u002F\u002Fgithub.com\u002Fcantwakeup\u002FTongAgent4pre\u002Fblob\u002Fmain\u002Flibs\u002Fcode\u002Fexamples\u002Fskills\u002Fskill-creator\u002FSKILL.md",[],[],{"skillNo":60,"name":61,"nameZh":6,"description":62,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":63,"categories":64,"keywords":65,"publishedAt":19},"01M7979NTRPV8KA01M0WBW0CHB","langgraph-docs","Fetches and references LangGraph Python documentation to build stateful agents, create multi-agent workflows, and implement human-in-the-loop patterns. Use when the user asks about LangGraph, graph agents, state machines, agent orchestration, LangGraph API, or needs LangGraph implementation guidance.","https:\u002F\u002Fgithub.com\u002Fcantwakeup\u002FTongAgent4pre\u002Fblob\u002Fmain\u002Flibs\u002Fcode\u002Fexamples\u002Fskills\u002Flanggraph-docs\u002FSKILL.md",[],[],{"skillNo":67,"name":68,"nameZh":6,"description":69,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":70,"categories":71,"keywords":72,"publishedAt":19},"01M7979KMBR1C1WXYQQT2N1996","arxiv-search","Searches arXiv for preprints and academic papers, retrieves abstracts, and filters by topic. Use when the user asks to find research papers, search arXiv, look up preprints, find academic articles in physics, math, CS, biology, statistics, or related fields.","https:\u002F\u002Fgithub.com\u002Fcantwakeup\u002FTongAgent4pre\u002Fblob\u002Fmain\u002Flibs\u002Fcode\u002Fexamples\u002Fskills\u002Farxiv-search\u002FSKILL.md",[],[],{"skillNo":74,"name":54,"nameZh":6,"description":55,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":75,"categories":76,"keywords":77,"publishedAt":19},"01M7979DBC6YGADWB7XRVY49T6","https:\u002F\u002Fgithub.com\u002Fcantwakeup\u002FTongAgent4pre\u002Fblob\u002Fmain\u002Flibs\u002Fcode\u002Fdeepagents_code\u002Fbuilt_in_skills\u002Fskill-creator\u002FSKILL.md",[],[],{"skillNo":79,"name":80,"nameZh":6,"description":81,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":82,"categories":83,"keywords":84,"publishedAt":19},"01M79799CAJ1S8SGE9X9RARTQ3","remember","Review the current conversation and capture valuable knowledge — best practices, coding conventions, architecture decisions, workflows, and user feedback — into persistent memory (AGENTS.md) or reusable skills. Use when the user says: (1) remember this, (2) save what we learned, (3) update memory, (4) capture learnings.","https:\u002F\u002Fgithub.com\u002Fcantwakeup\u002FTongAgent4pre\u002Fblob\u002Fmain\u002Flibs\u002Fcode\u002Fdeepagents_code\u002Fbuilt_in_skills\u002Fremember\u002FSKILL.md",[],[]]