Xpersona
P

Python Dataviz

CLAWHUB · Unverified

Professional data visualization using Python (matplotlib, seaborn, plotly). Create publication-quality static charts, statistical visualizations, and interac... Skill: Python Dataviz Owner: matthew-a-gordon Summary: Professional data visualization using Python (matplotlib, seaborn, plotly). Create publication-quality static charts, statistical visualizations, and interac... Tags: latest:1.0.0 Version history: v1.0.0 | 2026-02-15T20:04:26.743Z | auto Initial release of python-dataviz skill: - Provides professional data visualization with Python using matplotlib, seaborn, and

62
Rank
84
Safety
10k
Downloads

About

What it does, and when to use it.

Capability contract not published. No trust telemetry is available yet. 10.1K downloads reported by the source. Last updated 11/16/2026.

Avoid when

  • Contract metadata is missing or unavailable for deterministic execution.

Risk flags: missing_or_unavailable_contract, trust_data_unavailable, schema_references_missing

Install and run

Setup complexity: low.

clawhub skill install s17atkeb5bt0nyr6y68npbhfsx885qw1:python-dataviz
  1. Setup complexity is LOW. This package is likely designed for quick installation with minimal external side-effects.
  2. Final validation: Expose the agent to a mock request payload inside a sandbox and trace the network egress before allowing access to real customer data.

Contract: missing

curl -s "https://www.xpersona.co/api/v1/agents/clawhub-matthew-a-gordon-python-dataviz--dataviz-2/snapshot"

Run-check

$0.02 USD

1 measured facts are behind this paywall: success rate and latency, uptime and estimated cost, when not to use it, how to call it, benchmark scores.

Agents pay $0.02 in USDC. A card payment is $0.50, the smallest a card allows.

Documentation

CLAWHUB

23,275 characters of source documentation, loaded on request.

Extracted files

5 files captured from the source.

SKILL.md

---
name: python-dataviz
description: Professional data visualization using Python (matplotlib, seaborn, plotly). Create publication-quality static charts, statistical visualizations, and interactive plots. Use when generating charts/graphs/plots from data, creating infographics with data components, or producing scientific/statistical visualizations. Supports PNG/SVG (static) and HTML (interactive) export.
---

# Python Data Visualization

Create professional charts, graphs, and statistical visualizations using Python's leading libraries.

## Libraries & Use Cases

**matplotlib** - Static plots, publication-quality, full control
- Bar, line, scatter, pie, histogram, heatmap
- Multi-panel figures, subplots
- Custom styling, annotations
- Export: PNG, SVG, PDF

**seaborn** - Statistical visualizations, beautiful defaults
- Distribution plots (violin, box, kde, histogram)
- Categorical plots (bar, count, swarm, box)
- Relationship plots (scatter, line, regression)
- Matrix plots (heatmap, clustermap)
- Built on matplotlib, integrates seamlessly

**plotly** - Interactive charts, web-friendly
- Hover tooltips, zoom, pan
- 3D plots, animations
- Dashboards via Dash framework
- Export: HTML, PNG (requires kaleido)

## Quick Start

### Setup Environment

```bash
cd skills/python-dataviz
python3 -m venv .venv
source .venv/bin/activate
pip install .
```

### Create a Chart

```python
import matplotlib.pyplot as plt
import numpy as np

# Data
x = np.linspace(0, 10, 100)
y = np.sin(x)

# Plot
plt.figure(figsize=(10, 6))
plt.plot(x, y, linewidth=2, color='#667eea')
plt.title('Sine Wave', fontsize=16, fontweight='bold')
plt.xlabel('X Axis')
plt.ylabel('Y Axis')
plt.grid(alpha=0.3)
plt.tight_layout()

# Export
plt.savefig('output.png', dpi=300, bbox_inches='tight')
plt.savefig('output.svg', bbox_inches='tight')
```

## Chart Selection Guide

**Distribution/Statistical:**
- Histogram → `plt.hist()` or `sns.histplot()`
- Box plot → `sns.boxplot()`
- Violin plot → `sns.violinplot()`
- KDE → `sns.kdeplot()`

**Comparison:**
- Bar chart → `plt.bar()` or `sns.barplot()`
- Grouped bar → `sns.barplot(hue=...)`
- Horizontal bar → `plt.barh()` or `sns.barplot(orient='h')`

**Relationship:**
- Scatter → `plt.scatter()` or `sns.scatterplot()`
- Line → `plt.plot()` or `sns.lineplot()`
- Regression → `sns.regplot()` or `sns.lmplot()`

**Heatmaps:**
- Correlation matrix → `sns.heatmap(df.corr())`
- 2D data → `plt.imshow()` or `sns.heatmap()`

**Interactive:**
- Any plotly chart → `plotly.express` or `plotly.graph_objects`
- See references/plotly-examples.md

## Best Practices

### 1. Figure Size & DPI
```python
plt.figure(figsize=(10, 6))  # Width x Height in inches
plt.savefig('output.png', dpi=300)  # Publication: 300 dpi, Web: 72-150 dpi
```

### 2. Color Palettes
```python
# Seaborn palettes (works with matplotlib too)
import seaborn as sns
sns.set_palette("husl")  # Colorful
sns.set_palette("muted")  # Soft
sns.set_palette("deep")  # Bold

# Custom colors
colors = ['#66

README.md

# Python Data Visualization Skill for OpenClaw

Professional data visualization using Python's leading visualization libraries (matplotlib, seaborn, plotly).

## Overview

Create publication-quality static charts, statistical visualizations, and interactive plots for OpenClaw agents. This skill provides comprehensive examples and best practices for data-driven graphics.

## Features

### Static Visualizations (matplotlib + seaborn)
- Bar charts (simple, grouped, horizontal, stacked)
- Line plots (single/multiple series, time series, confidence intervals)
- Scatter plots (simple, regression, categorical, bubble)
- Heatmaps (simple, correlation matrices, labeled, diverging)
- Distribution plots (histogram, KDE, box, violin)
- Publication-quality export (PNG, SVG, PDF at 300 DPI)

### Interactive Visualizations (plotly)
- Hover tooltips, zoom, pan
- 3D plots and animations
- Export to HTML or PNG

### Included Resources
- **6 example scripts** - Ready-to-run demonstrations
- **2 reference guides** - Color theory and statistical visualization best practices
- **SKILL.md** - Comprehensive OpenClaw skill guide

## Installation

### For OpenClaw Users

```bash
# Via ClawHub
clawhub install python-dataviz

# Or manually
cd ~/.openclaw/workspace/skills
unzip python-dataviz.skill
```

### Setup Environment

**With pip:**
```bash
cd ~/.openclaw/workspace/skills/python-dataviz
python3 -m venv .venv
source .venv/bin/activate
pip install .
```

**With uv (faster):**
```bash
cd ~/.openclaw/workspace/skills/python-dataviz
uv venv
source .venv/bin/activate
uv pip install .
```

## Quick Start

### Run Example Scripts

```bash
cd ~/.openclaw/workspace/skills/python-dataviz
source .venv/bin/activate

# Generate all bar chart variations
python scripts/bar_chart.py

# Generate interactive HTML charts
python scripts/interactive.py

# Generate distribution plots
python scripts/distribution.py
```

### Create Your Own

```python
import matplotlib.pyplot as plt
import seaborn as sns

# Set professional style
sns.set_theme(style="whitegrid")

# Your data
data = {'Category A': 45, 'Category B': 62, 'Category C': 38}

# Create chart
plt.figure(figsize=(10, 6))
plt.bar(data.keys(), data.values(), color='#667eea', alpha=0.8)
plt.title('My Chart', fontsize=16, fontweight='bold')
plt.ylabel('Values', fontsize=12)
plt.grid(axis='y', alpha=0.3)
plt.tight_layout()

# Export
plt.savefig('output.png', dpi=300, bbox_inches='tight')
```

## Use Cases

### When to Use This Skill
- ✅ Data-driven charts from CSV, Excel, databases
- ✅ Statistical analysis and visualizations
- ✅ Complex datasets with multiple series
- ✅ Publication-quality graphics (papers, reports)
- ✅ Interactive web-ready charts

### When to Use SVG Instead
- ✅ Simple infographics
- ✅ Design-heavy graphics
- ✅ Full control over every visual element
- ✅ No data processing needed

## Example Output

The skill can generate professional charts like:
- Sales analysis dashboards
- Statistical distribution comparisons
- Correl

_meta.json

{
  "ownerId": "kn7akq79sx4c1ctk7pdwmyh34180fv2c",
  "slug": "python-dataviz",
  "version": "1.0.0",
  "publishedAt": 1771185866743
}

references/colors.md

# Color Theory & Palettes

## Built-in Color Palettes

### Seaborn Palettes
```python
import seaborn as sns

# Qualitative (categorical data)
sns.set_palette("deep")      # Bold, saturated
sns.set_palette("muted")     # Soft, less saturated
sns.set_palette("bright")    # Vibrant
sns.set_palette("pastel")    # Light, washed
sns.set_palette("dark")      # Dark, muted

# Sequential (ordered data, low to high)
sns.color_palette("Blues")
sns.color_palette("Greens")
sns.color_palette("rocket")  # Modern gradient

# Diverging (data with meaningful center)
sns.color_palette("coolwarm")  # Blue-white-red
sns.color_palette("RdBu_r")    # Red-blue reversed
sns.color_palette("vlag")      # Modern diverging
```

### Matplotlib Colormaps
```python
plt.imshow(data, cmap='viridis')  # Default, colorblind-safe
plt.imshow(data, cmap='plasma')   # Purple-orange
plt.imshow(data, cmap='magma')    # Black-white
plt.imshow(data, cmap='cividis')  # Colorblind-optimized
```

## Custom Color Schemes

### Brand Colors
```python
# Define palette
brand_colors = {
    'primary': '#667eea',
    'secondary': '#764ba2',
    'accent': '#f6ad55',
    'success': '#48bb78',
    'warning': '#ed8936',
    'danger': '#fc8181'
}

# Use in plots
plt.plot(x, y, color=brand_colors['primary'])
sns.set_palette(list(brand_colors.values()))
```

### Gradients
```python
# Linear gradient
from matplotlib.colors import LinearSegmentedColormap

colors = ['#667eea', '#764ba2', '#f093fb']
n_bins = 100
cmap = LinearSegmentedColormap.from_list('custom', colors, N=n_bins)

plt.imshow(data, cmap=cmap)
```

## Accessibility

### Colorblind-Safe Palettes
```python
# Recommended palettes
sns.set_palette("colorblind")  # Safe for most color blindness
sns.color_palette("crest")     # Sequential, accessible
sns.color_palette("icefire")   # Diverging, accessible

# Avoid: red-green combinations
# Use: blue-orange, purple-green instead
```

### High Contrast
```python
# For presentations/dashboards
high_contrast = ['#000000', '#E69F00', '#56B4E9', '#009E73', 
                '#F0E442', '#0072B2', '#D55E00', '#CC79A7']
sns.set_palette(high_contrast)
```

## Color Psychology

- **Blue** (#4299e1): Trust, stability, data (most common in dataviz)
- **Green** (#48bb78): Growth, success, positive
- **Red** (#fc8181): Warning, danger, negative
- **Orange** (#ed8936): Energy, attention
- **Purple** (#9f7aea): Creativity, luxury
- **Yellow** (#f6e05e): Optimism, caution (hard to read, use sparingly)

## Best Practices

1. **Limit colors**: 3-5 for categorical data
2. **Meaningful colors**: Red for negative, green for positive
3. **Consistency**: Same color = same category across charts
4. **Contrast**: Ensure readability against background
5. **Print-safe**: Test in grayscale if printing

## Quick Reference

```python
# Categorical (distinct items)
sns.set_palette("husl", n_colors=8)  # Evenly spaced hues

# Sequential (ordered intensity)
sns.color_palette("YlOrRd", as_cmap=True)

# Diverging (centered around zero)
sns.

references/statistical.md

# Statistical Visualizations

## Distribution Analysis

### Histogram vs KDE
```python
# Histogram: exact counts
sns.histplot(data, bins=30, kde=False)

# KDE: smooth density estimate
sns.kdeplot(data, fill=True)

# Combined: best of both
sns.histplot(data, bins=30, kde=True)
```

### Box Plot vs Violin Plot
```python
# Box plot: quartiles + outliers (compact)
sns.boxplot(data=df, x='category', y='value')

# Violin plot: full distribution shape (more info)
sns.violinplot(data=df, x='category', y='value')

# Combine: box inside violin
sns.violinplot(data=df, x='category', y='value', inner='box')
```

## Relationship Analysis

### Scatter with Regression
```python
# Simple linear regression
sns.regplot(x='x', y='y', data=df)

# Polynomial regression (order=2 for quadratic)
sns.regplot(x='x', y='y', data=df, order=2)

# Lowess smoother (non-parametric)
sns.regplot(x='x', y='y', data=df, lowess=True)
```

### Correlation Matrices
```python
# Compute correlation
corr = df.corr()

# Visualize
sns.heatmap(corr, annot=True, cmap='coolwarm', center=0)

# Mask upper triangle (avoid duplication)
mask = np.triu(np.ones_like(corr, dtype=bool))
sns.heatmap(corr, mask=mask, annot=True, cmap='coolwarm', center=0)
```

## Categorical Comparisons

### Count Plot
```python
# Bar chart of value counts
sns.countplot(data=df, x='category', order=df['category'].value_counts().index)
```

### Point Plot (Mean + CI)
```python
# Shows mean with confidence interval
sns.pointplot(data=df, x='category', y='value', ci=95)
```

### Strip Plot + Box Plot
```python
# Show individual points + distribution
sns.boxplot(data=df, x='category', y='value', color='lightgray')
sns.stripplot(data=df, x='category', y='value', color='black', alpha=0.5)
```

## Multi-Variable Analysis

### Pair Plot (Scatter Matrix)
```python
# All pairwise relationships
sns.pairplot(df, hue='category')
```

### Joint Plot (Bivariate)
```python
# Scatter + marginal distributions
sns.jointplot(data=df, x='var1', y='var2', kind='scatter')
sns.jointplot(data=df, x='var1', y='var2', kind='hex')    # Hexbin
sns.jointplot(data=df, x='var1', y='var2', kind='kde')    # 2D KDE
sns.jointplot(data=df, x='var1', y='var2', kind='reg')    # With regression
```

### Facet Grid (Small Multiples)
```python
# Multiple subplots by category
g = sns.FacetGrid(df, col='category', row='subcategory', height=4)
g.map(sns.histplot, 'value')
g.add_legend()
```

## Time Series

### Trend Lines
```python
# Rolling average
df['rolling_mean'] = df['value'].rolling(window=7).mean()
plt.plot(df['date'], df['value'], alpha=0.3, label='Raw')
plt.plot(df['date'], df['rolling_mean'], linewidth=2, label='7-day avg')
```

### Confidence Intervals
```python
# Compute stats
mean = df.groupby('date')['value'].mean()
std = df.groupby('date')['value'].std()

# Plot
plt.plot(mean.index, mean.values, linewidth=2)
plt.fill_between(mean.index, mean - std, mean + std, alpha=0.2)
```

## Statistical Annotations

### Significance Stars
```python
from scipy i

Sponsored

Ads related to Python Dataviz and adjacent AI workflows.