matlab-build-chart
Create and customize MATLAB charts and plots. Plot types (line, scatter, bar, histogram, heatmap, surface), axes configuration, annotations, data tips, interactive plots, animation, multiple axes with tiledlayout, colororder, and performance optimization.
Install / Use
npx skills add matlab/matlab-agentic-toolkit --skill matlab-build-chartInstalls into whichever agent you are using.
SKILL.md
Installable skill definition
Quality Score
Category
Development & EngineeringSupported Platforms
Tags
Our assessment of matlab-build-chart
matlab-build-chart scores 93/100 on our quality scale, 807th of 4,646 Development & Engineering skills we index (top 18%).
Its SKILL.md is 14 KB long, well organised into 24 sections with 4 code examples: a thorough specification that gives an agent plenty to work with.
With 1,098 GitHub stars, it is one of the more widely adopted skills in the catalogue.
Maintenance, license and trust
- The repository was last updated 18 days ago, so matlab-build-chart is actively maintained.
- No license is declared. By default that means all rights are reserved: you can read it, but reusing or redistributing it is not clearly permitted. Ask the author before building on it commercially.
- Its trust signals score 88/100, with 1 caution from licensing, adoption, age or documentation. These come from repository metadata, not a code audit — read the skill file before letting an agent act on it.
matlab-build-chart compared with similar skills
All 4 of these similar skills score higher than matlab-build-chart; compare them before choosing.
| Skill | Score | Stars | Updated | Format |
|---|---|---|---|---|
| matlab-build-chart (this skill)by matlab | 93 | 1.1k | 18d ago | SKILL.md |
| ai-job-searchby MadsLorentzen | 100 | 44.9k | today | CLAUDE.md |
| claude-howtoby luongnv89 | 100 | 41.7k | 3d ago | CLAUDE.md |
| algorithmic-artby anthropics | 100 | 177.9k | 11d ago | SKILL.md |
| pptxby anthropics | 100 | 177.9k | 11d ago | SKILL.md |
Frequently asked questions
- How do I install matlab-build-chart?
- Run
npx skills add matlab/matlab-agentic-toolkit --skill matlab-build-chart. The install tabs above show the steps for each supported agent. - Which AI agents does matlab-build-chart work with?
- It is written for Universal, as a SKILL.md file. Other agents that read the same format can often use it too.
- Is matlab-build-chart safe to use?
- It declares no license and scores 88/100 on trust signals. Skills are instructions an agent will follow, so read the file before installing it and do not approve commands you do not understand.
- Is matlab-build-chart still maintained?
- The repository was last updated 18 days ago, so matlab-build-chart is actively maintained.
Skill content
View source on GitHubname: matlab-build-chart license: https://www.mathworks.com/content/dam/mathworks/license/pmrl/license.md metadata: author: MathWorks version: "1.1" description: > Create and customize MATLAB charts and plots. Plot types (line, scatter, bar, histogram, heatmap, surface), axes configuration, annotations, data tips, interactive plots, animation, multiple axes with tiledlayout, colororder, and performance optimization. Works for standalone figures, Live Scripts, and uifigure apps. Use when plotting data, customizing axes, adding annotations or interactivity, animating charts, or arranging multiple axes. Triggers: plot, chart, graph, axes, uiaxes, annotation, data tips, animation, tiledlayout, colororder, heatmap, scatter, figure, visualization, export. allowed-tools:
- Read
- Write
- Edit
- Bash
MATLAB Chart Builder
Create, customize, and interact with MATLAB charts and plots — in standalone figures, Live Scripts, or uifigure apps.
When to Use This Skill
Use this skill when:
- Plotting data (line, scatter, bar, histogram, heatmap, surface, polar, geo, volume) in any context
- Configuring axes (labels, limits, ticks, legend, font, export)
- Adding annotations (xline, yline, xregion, text)
- Adding or customizing data tips
- Creating interactive plots (click, hover, drag callbacks)
- Animating or streaming data to a chart
- Arranging multiple axes with tiledlayout/nexttile
- Optimizing chart rendering performance
- Exporting figures for publication or reports
- User says "help me visualize this" without a specific chart type
When NOT to Use This Skill
- Building a full app (use
matlab-build-app— it invokes this skill for chart sub-steps) - Applying dark mode, brand colors, or custom color themes (use
matlab-apply-theme) - Working with Simulink scopes or Simscape plots
- Creating App Designer charts via the drag-and-drop GUI
Workflow
User request arrives
|
+-- FAST PATH (most requests)
| Chart type named OR unambiguous single-axes plot
| AND no interactivity / animation / multi-panel / performance concern
| |
| v
| Infer rendering context (default: standalone figure)
| Read relevant references --> Build directly
|
+-- PLAN PATH (complex or ambiguous)
|
+-- Ambiguous intent (no chart type named, unclear data question)
| --> Identify visualization intent (see Intent Taxonomy)
|
+-- Rendering context unclear AND it matters
| --> Ask: standalone figure, Live Script, or uifigure app?
|
v
Present inline plan for approval
|
v
User confirms --> Read references --> Build
Fast-Path Triggers (build directly, no plan)
ALL of these must hold:
- Chart type is named OR intent maps unambiguously to one type
- Single axes (no tiled/multi-panel layout)
- No custom interactivity (no user-specified callbacks)
- No animation or streaming
- No explicit performance constraints
- Rendering context is clear or defaults to standalone figure
Plan-Path Triggers (present plan first)
ANY of these fires the plan path:
- Multi-panel / tiled figure
- Custom interactivity (click, hover, drag callbacks)
- Animation or streaming data
- Performance-sensitive (large dataset, real-time update)
- Branded / designed figure requiring palette/theme coordination
- Ambiguous "help me visualize this" — unclear type or intent
- Multiple visualization intents in one figure
Rendering Context
Three contexts gate which constraint set applies:
| Context | Constraints | How inferred |
|---------|-------------|--------------|
| Standalone figure | Universal rules only | Default; figure/axes in request |
| Live Script | Universal rules only | User mentions Live Script, .mlx, plain-text Live Code |
| uifigure app | Universal + uifigure rules | User mentions uifigure; arrives as sub-step of app-builder |
If context is unstated and cannot be inferred, assume standalone figure. Ask only when the distinction matters (e.g., heatmap parent differs between contexts).
Visualization Intent Taxonomy
Engages ONLY when the user has NOT named a specific chart type or function. If they say "scatter" or "heatmap," skip intent selection and build directly.
Communicative Intents
| Intent | Data question | Encouraged functions |
|--------|--------------|---------------------|
| Comparison | How do values compare across items? | bar, barh, bar3, bar3h, pareto, stem, stairs, loglog, semilogx, semilogy |
| Trend / time series | How does a value change over time? | plot, area, stackedplot, stairs, stem, fplot, fplot3 |
| Distribution | How is data spread? | histogram, histogram2, boxchart, violinplot, raincloudplot, swarmchart, swarmchart3, scatterhistogram, binscatter, polarhistogram |
| Relationship | How do variables relate? | scatter, scatter3, bubblechart, bubblechart3, plotmatrix, parallelplot, binscatter, spy, fimplicit |
| Composition | Parts of a whole? | piechart, donutchart, stacked bar, stacked area, wordcloud, bubblecloud |
Data-Domain Intents
| Intent | When it fires | Encouraged functions |
|--------|--------------|---------------------|
| Geospatial | Geographic coordinates | geoplot, geoscatter, geobubble, geodensityplot |
| Directional / polar | Angular, cyclical, compass data | polarplot, polarscatter, polarhistogram, polarbubblechart, compassplot, fpolarplot |
| Surfaces & scalar fields | z = f(x,y), meshes, contours | surf, surfc, surfl, mesh, meshc, meshz, ribbon, pcolor, contour, contourf, contour3, fcontour, fsurf, fmesh, fimplicit3, waterfall |
| Vector fields & flow | Directional vector data | quiver, quiver3, feather, streamline, streamslice, streamribbon, streamtube, streamparticles, coneplot |
| Volume visualization | 3D gridded volume data | slice, contourslice, coneplot, streamslice, isosurface/isocap workflows |
| Images & matrices | Display a matrix/grid | image, imagesc, heatmap, pcolor (flat), spy |
Classification Rules
- The
waterfalltrap: MATLAB'swaterfallis a 3D surface plot, NOT the financial accumulation chart. For "accumulation to total," build frombarwith a hidden base series. f*variants follow their data counterpart's intent:fplot-> Trend,fsurf/fmesh/fcontour-> Surfaces,fimplicit-> Relationship,fpolarplot-> Directional.- Animation is cross-cutting, not an intent.
animatedline,comet,comet3layer motion onto any chart type. Seereferences/animation.md. - Multi-intent functions: Classify by the user's data question, not gallery grouping. E.g., heatmap of a correlation matrix -> Relationship; heatmap of counts -> Comparison.
- Classify by communicative intent, not MATLAB docs grouping.
piechart/donutchartare Composition regardless of where docs file them.
Inline Plan Template
When the plan path engages, present for approval:
**Chart Plan: [description]**
**Context:** [Standalone figure / Live Script / uifigure app]
**Intent:** [name] -> [chosen function(s)]
**Structure:**
- [Layout description]
- [Key visual elements, annotations, interactions]
**Key decisions:**
- [Performance strategy, if applicable] [src: references/performance.md SS]
- [Interaction model, if applicable] [src: references/interactive-plots.md SS]
- [uifigure constraints that apply, if context = uifigure]
**References to use:**
| Reference | Role | Provenance |
|-----------|------|------------|
| `references/file.md` | [what it provides] | [src: references/file.md SS] |
Shall I proceed?
Do NOT write the plan to a file unless (a) the user explicitly asks for a spec to keep, or (b) chart-builder is running as a sub-step of an app build with an existing plan artifact.
Critical Rules
Universal (all contexts)
- MUST pass axes as first argument to all plotting functions:
plot(ax, x, y)notplot(x, y) - MUST update data in place (
p.XData = newX) — never replot in a loop - MUST use
drawnow limitratefor animations — never baredrawnowin tight loops - PREFER
tiledlayout/nexttileoversubplot()for multiple axes - PREFER
exportgraphics()for publication-quality export
Additional constraints in uifigure apps
- MUST use
uiaxes— never plainaxes - MUST use
exportgraphics()orexportapp()—saveas/printnot supported - NEVER use
subplot()— not supported in uifigure - NEVER use
annotation()— usetext(),xline(),yline(),xregion(),yregion() - NEVER use
ginput()— useButtonDownFcnon plot objects - NEVER rely on
gcf/gca— uiaxes hasHandleVisibility = 'off'by default
Quick Start
Standalone figure
fig = figure;
ax = axes(fig);
t = 0:0.01:2*pi;
plot(ax, t, sin(t), 'LineWidth', 1.5);
hold(ax, 'on');
plot(ax, t, cos(t), '--', 'LineWidth', 1.5);
hold(ax, 'off');
title(ax, 'Sine and Cosine');
xlabel(ax, 'Time (s)');
ylabel(ax, 'Amplitude');
legend(ax, 'sin', 'cos');
grid(ax, 'on');
exportgraphics(ax, 'plot.png', 'Resolution', 300);
In a uifigure app
fig = uifigure('Name', 'Chart Demo');
gl = uigridlayout(fig, [1 1]);
ax = uiaxes(gl);
plot(ax, t, sin(t), 'LineWidth', 1.5);
% Same API from here — only axes creation differs
Once you have ax, all plotting calls (plot, scatter, bar, xline, hold, legend, colororder, etc.) are identical regardless of context.
Implementation Checklist
Graphics
- [ ] All plot calls pass
axas first argument - [ ]
hold(ax, 'on')used before adding multiple series - [ ] Axes labels, title, and grid configured
- [ ] Annotations use
xline/yline/text(notannotation()— uifigure requirement) - [ ] Interactive callbacks use
ButtonDownFcnon plot objects (not axes — uifigure requirement) - [ ] Animations use
drawnow limitrateand pre-set axis limits - [ ] Export uses
exportgraphics()(required in uifigure; preferred everywhere) - [ ] Multiple axes use
tiledlayout/nexttile(required in uifigure; preferred everywhere)
Troubleshooting
Issues marked (uifigure only) apply only when plotting in uifigure apps.
| Problem | Cause | Fix |
|---|---|---|
| Animation is slow/jerky | Using plot() in loop or bare drawnow | Update data in place + drawnow limitrate |
| Plot disappears after replot | Default NextPlot = 'replacechildren' | Use hold(ax, 'on') or update data in place |
| gcf/gca return wrong handle (uifigure only) | uiaxes HandleVisibility = 'off' | Always pass ax explicitly |
| annotation() error (uifigure only) | Not supported in uifigure | Use text(), xline(), yline() |
| ginput() error (uifigure only) | Not supported in uifigure | Use ButtonDownFcn on plot objects |
| Click callback doesn't fire on axes (uifigure only) | ButtonDownFcn unreliable on uiaxes | Put ButtonDownFcn on plot objects |
| Heatmap fails in uiaxes (uifigure only) | Heatmap needs figure/panel parent | Use heatmap(fig, ...) or heatmap(panel, ...) |
| saveas fails (uifigure only) | Not supported for uifigure | Use exportgraphics(ax, file) |
| subplot() errors (uifigure only) | Not supported in uifigure | Use tiledlayout/nexttile or uigridlayout |
| Zoom stops working after scroll callback (uifigure only) | WindowScrollWheelFcn disables zoom | Call disableDefaultInteractivity(ax) |
References
| Topic | File | Coverage | Intent served |
|-------|------|----------|---------------|
| Plot types | references/plot-types.md | Line, scatter, bar, histogram, heatmap, surface | Comparison, Trend, Distribution, Relationsh
Truncated for display — read the full file on GitHub.
Related Skills
ai-job-search
44.9kThe job search that runs on your machine. AI job application framework built on Claude Code: evaluate postings, tailor CVs, write cover letters, prep interviews. Fork it and own it.
claude-howto
41.7kA visual, example-driven guide to Claude Code — from basic concepts to advanced agents, with copy-paste templates that bring immediate value.
algorithmic-art
177.9kCreating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code, generative art, algorithmic art, flow fields, or particle systems.
pptx
177.9kUse this skill any time a .pptx or .potx file is involved in any way — as input, output, or both. This includes: creating slide decks, pitch decks, or presentations; reading, parsing, or extracting text from any .pptx or .potx file (even if the extracted content will be used elsewhere, like in an em…
Languages
Trust signals
From repository metadata: license, adoption, age and documentation. Not a code audit — see the Safety scan above for what the skill file itself contains.
