/holoviz-visualization:plotting-fundamentals runs instead · from holoviz-visualization
Creates quick interactive plots (line, scatter, bar, histogram, box) from pandas DataFrames using hvPlot with hover tools and layouts.
This skill never runs in Claude Code
It ships in holoviz-visualization at skills/, but /holoviz-visualization:plotting-fundamentals (a command, or a skill Claude Code finds first) has the same name: typing it, or Claude choosing it, runs that one instead.
Master quick plotting and interactive visualization with hvPlot and HoloViews basics. This skill covers essential techniques for creating publication-quality plots with minimal code.
hvPlot provides an intuitive, pandas-like API for rapid visualization:
import hvplot.pandas
import pandas as pd
import numpy as np
# Create sample data
df = pd.DataFrame({
'date': pd.date_range('2024-01-01', periods=100),
'sales': np.cumsum(np.random.randn(100)) + 100,
'region': np.random.choice(['North', 'South', 'East', 'West'], 100)
})
# Simple line plot
df.hvplot.line(x='date', y='sales', title='Sales Over Time')
# Grouped plot
df.hvplot.line(x='date', y='sales', by='region', subplots=True)
# Scatter with size and color
df.hvplot.scatter(x='sales', y='date', c='region', size=50)
# Bar plot
df.hvplot.bar(x='region', y='sales', rot=45)
# Histogram
df['sales'].hvplot.hist(bins=30, title='Sales Distribution')
# Box plot
df.hvplot.box(y='sales', by='region')
# Area plot
df.hvplot.area(x='date', y='sales')
# KDE (Kernel Density Estimation)
df['sales'].hvplot.kde()
# Hexbin (for large datasets)
df.hvplot.hexbin(x='sales', y='date', gridsize=20)
# Apply consistent styling
plot = df.hvplot.line(
x='date',
y='sales',
title='Sales Trend',
xlabel='Date',
ylabel='Sales ($)',
color='#2E86DE',
line_width=2,
height=400,
width=700,
responsive=True,
legend='top_left'
)
# Color mapping
df.hvplot.scatter(
x='sales',
y='date',
c='sales',
cmap='viridis',
s=100
)
# Multiple series
df.hvplot.line(
x='date',
y=['sales'],
title='Performance Metrics'
)
# Hover information
df.hvplot.scatter(
x='sales',
y='date',
hover_cols=['region'],
tools=['hover', 'pan', 'wheel_zoom']
)
# Selection and linked views
import holoviews as hv
scatter = df.hvplot.scatter(x='sales', y='date')
scatter.opts(tools=['box_select'])
# Responsive sizing
plot = df.hvplot.line(
x='date',
y='sales',
responsive=True,
height=400
)
import geopandas as gpd
# Quick geographic plot
gdf = gpd.read_file(gpd.datasets.get_path('naturalearth_lowres'))
gdf.hvplot(
c='pop_est',
cmap='viridis',
geo=True,
frame_width=600
)
# City points on map
cities = gpd.GeoDataFrame({
'name': ['City A', 'City B'],
'geometry': [Point(0, 0), Point(1, 1)],
'population': [1000000, 500000]
})
cities.hvplot(
geo=True,
c='population',
size='population',
cmap='plasma'
)
import holoviews as hv
from holoviews import opts
# Curve
curve = hv.Curve(df, 'date', 'sales')
# Scatter
scatter = hv.Scatter(df, 'sales', 'date')
# Histogram
hist = hv.Histogram(df['sales'].values)
# Image (heatmap)
image = hv.Image(data)
# Bars
bars = hv.Bars(df, 'region', 'sales')
# Text annotations
text = hv.Text(0.5, 0.5, 'Hello HoloViews')
# Using .opts() method
plot = hv.Curve(df, 'date', 'sales').opts(
title='Sales Trend',
xlabel='Date',
ylabel='Sales',
color='#2E86DE',
line_width=2,
height=400,
width=700
)
# Using opts object
opts_obj = opts.Curve(
title='Sales',
color='navy',
line_width=2
)
plot = hv.Curve(df, 'date', 'sales').opts(opts_obj)
# Overlaying multiple plots
overlay = hv.Curve(df, 'date', 'sales') * hv.Scatter(df_subset, 'date', 'sales')
# Side-by-side layouts
layout = hv.Curve(df1, 'date', 'sales') + hv.Scatter(df2, 'date', 'value')
# Grid layouts
grid = (
(hv.Curve(data1) + hv.Scatter(data2)) /
(hv.Histogram(data3) + hv.Image(data4))
)
# Faceted views
faceted = hv.Curve(df, 'date', 'sales').facet('region')
# Brush selection
curve_selectable = hv.Curve(df, 'date', 'sales').opts(
tools=['box_select'],
selection_fill_color='red',
nonselection_fill_alpha=0.2
)
# Dynamic linking with streams
from holoviews import streams
# Hover information
hover = streams.Tap(source=scatter, transient=True)
@hv.transform
def get_info(data):
if data.empty:
return hv.Text(0, 0, 'Hover to select')
return hv.Text(0, 0, f"Point: {data.iloc[0].values}")
# Create a plotting utility module
class PlotBuilder:
COLORS = {'primary': '#2E86DE', 'secondary': '#A23B72'}
DEFAULTS = {'height': 400, 'width': 700, 'responsive': True}
@staticmethod
def style_plot(plot, **kwargs):
return plot.opts(**{**PlotBuilder.DEFAULTS, **kwargs})
# Usage
styled = PlotBuilder.style_plot(df.hvplot.line(x='date', y='sales'))
def create_sales_dashboard(df):
return hv.Column(
df.hvplot.line(x='date', y='sales', title='Trend'),
df.hvplot.bar(x='region', y='sales', title='By Region'),
df['sales'].hvplot.hist(bins=20, title='Distribution')
)
def plot_data(df, plot_type='line'):
if plot_type == 'line':
return df.hvplot.line(x='date', y='sales')
elif plot_type == 'scatter':
return df.hvplot.scatter(x='date', y='sales')
else:
return df.hvplot.bar(x='region', y='sales')
def plot_multiple_metrics(df, metrics):
plots = [df.hvplot.line(x='date', y=m, label=m) for m in metrics]
return hv.Overlay(plots)
hvplot.pandas or hvplot.xarray is importedrot=45by='column'What SKILL.md sets; muted values are Claude Code's defaults
Generated from the plugin's indexed repository (uw-ssec/savvy) — no native marketplace selected
npx claudepluginhub p/uw-ssec-holoviz-visualization-community-plugins-holoviz-visualization9 skills in this plugin
/advanced-renderingMaster high-performance rendering for large datasets with Datashader. Use this skill when working with datasets exceeding 100M+ points, optimizing visualization performance, or implementing efficient rendering strategies with rasterization and colormapping techniques./colormaps-stylingMaster color management and visual styling with Colorcet. Use this skill when selecting appropriate colormaps, creating accessible and colorblind-friendly visualizations, applying consistent themes, or customizing plot aesthetics with perceptually uniform color palettes./data-visualizationMaster advanced declarative visualization with HoloViews. Use this skill when creating complex multi-dimensional visualizations, composing overlays and layouts, implementing interactive streams and selection, building network or hierarchical visualizations, or exploring data with dynamic maps and faceted displays./geospatial-visualizationMaster geographic and mapping visualizations with GeoViews. Use this skill when creating interactive maps, visualizing point/polygon/line geographic data, building choropleth maps, performing spatial analysis (joins, buffers, proximity), working with coordinate reference systems, or integrating tile providers and basemaps./lumen-aiMaster AI-powered natural language data exploration with Lumen AI. Use this skill when building conversational data analysis interfaces, enabling natural language queries to databases, creating custom AI agents for domain-specific analytics, implementing RAG with document context, or deploying self-service analytics with LLM-generated SQL and visualizations./lumen-dashboardsMaster declarative, no-code data dashboards with Lumen YAML specifications. Use this skill when building standard data exploration dashboards, connecting multiple data sources (files, databases, APIs), creating interactive filters and cross-filtering, designing responsive layouts with indicators and charts, or enabling rapid dashboard prototyping without writing code.2 plugins ship this exact skill · first indexed Jul 7, 2026
Other plugins' skills for the same job