matlab/matlab-agentic-toolkit / skills-catalog/matlab-app-building/matlab-build-chart
matlab-build-chart
VerifiedCreate 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.
| File | Kind | Size |
|---|---|---|
| SKILL.md | skill md | 13.7 KB |
| manifest.yaml | config | 523 B |
| references/animation.mdexecutable | script | 2.1 KB |
| references/annotations.mdexecutable | script | 1.2 KB |
| references/axes-config.mdexecutable | script | 2.2 KB |
| references/chart-palettes.mdexecutable | script | 1.8 KB |
| references/data-tips.mdexecutable | script | 976 B |
| references/interactive-plots.mdexecutable | script | 2.9 KB |
| references/multiple-axes.mdexecutable | script | 2.4 KB |
| references/performance.mdexecutable | script | 4.0 KB |
| references/plot-types.mdexecutable | script | 2.4 KB |
references/axes-config.md
View on GitHub# Axes Configuration
## uiaxes vs Traditional axes
| Feature | Traditional `axes` | `uiaxes` |
|---|---|---|
| `gcf`/`gca` | Work | Don't work (`HandleVisibility = 'off'`) |
| `annotation()` | Full support | Not supported |
| `ginput()` | Works | Not supported |
| `ButtonDownFcn` on axes | Works | Unreliable — use on plot objects |
| `FontUnits` default | `'points'` | `'pixels'` |
| `NextPlot` default | `'replace'` | `'replacechildren'` |
| Export | `saveas`, `print` | `exportgraphics()`, `exportapp()` |
| Heatmap parent | `axes` or `figure` | Must use `figure`/`panel`, not `uiaxes` |
## Creating uiaxes
```matlab
fig = uifigure;
gl = uigridlayout(fig, [1 1]);
ax = uiaxes(gl);
```
Always pass axes as the first argument to plot functions:
```matlab
p = plot(ax, x, y);
s = scatter(ax, x, y);
b = bar(ax, categories, vals);
```
## Labels, Title, Grid
```matlab
ax.Title.String = 'Signal Analysis';
ax.Subtitle.String = 'Filtered output'; % R2020b+
ax.XLabel.String = 'Time (s)';
ax.YLabel.String = 'Amplitude (V)';
grid(ax, 'on');
ax.GridLineStyle = '--';
ax.GridAlpha = 0.3;
ax.Layer = 'top'; % grid on top of data
ax.XMinorGrid = 'on';
```
## Limits and Scale
```matlab
xlim(ax, [0 10]);
ylim(ax, [-1 1]);
ax.YScale = 'log';
ax.XDir = 'reverse';
ax.YLimitMethod = 'tight'; % no padding beyond data range
```
## Ticks
```matlab
ax.XTick = 0:2:10;
ax.XTickLabel = {'0s','2s','4s','6s','8s','10s'};
ax.XTickLabelRotation = 45;
ax.YAxis.Exponent = 0; % prevent scientific notation
ax.XMinorTick = 'on';
ax.TickDir = 'out';
```
## Font and Appearance
```matlab
ax.FontSize = 12;
ax.FontName = 'Arial';
ax.TitleFontSizeMultiplier = 1.3;
ax.Box = 'on';
ax.DataAspectRatio = [1 1 1]; % equal axes
ax.PlotBoxAspectRatio = [4 3 1]; % 4:3 plot area
```
## Legend
```matlab
lg = legend(ax, 'show');
lg.Location = 'northwest';
lg.FontSize = 10;
lg.Box = 'off';
lg.NumColumns = 2;
```
## Exporting Graphics
`saveas`/`print` do NOT work with uifigure. Use:
```matlab
exportgraphics(ax, 'plot.png', 'Resolution', 300);
exportgraphics(ax, 'plot.pdf', 'ContentType', 'vector');
exportapp(fig, 'app_screenshot.png');
```
----
Copyright 2026 The MathWorks, Inc.
----
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| brainstormingobra/superpowersYou MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or planning anything new, in software or out of it (a talk, a business, a renovation). | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| brand-guidelinesanthropics/skillsApplies Anthropic's official brand colors and typography to any sort of artifact that may benefit from having Anthropic's look-and-feel. Use it when brand colors or style guidelines, visual formatting, or company design standards apply. | Stars: 198k | Updated | Claude CodeCodex | Verified | Install |
| frontend-designanthropics/skillsGuidance for distinctive, intentional visual design when building new UI or reshaping an existing one. Helps with aesthetic direction, typography, and making choices that don't read as templated defaults. | Stars: 198k | Updated | Claude CodeCodex | Verified | Install |
| mcp-builderanthropics/skillsGuide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when building MCP servers to integrate external APIs or services, whether in Python (FastMCP) or Node/TypeScript (MCP SDK). | Stars: 198k | Updated | Claude CodeCodex | Verified | Install |