Basic Plot and Graphics
Built-in functions › Graphics › Basic Plot and Graphics
97 functions in this category.
| Function | What it does |
|---|---|
axes | Create or activate axes within a figure. |
axis | Get or set axis limits and properties. |
belt | Belt plot — line plot rendered as a 3D ribbon. |
box | Show or hide the axes box outline. |
caxis | Get or set color-axis limits. |
clf | Clear the current figure. |
close | Close one or more figures. |
compass | Compass plot — vectors radiating from origin. |
contour | Contour plot of a 2D scalar field. |
contour3 | 3D contour plot. |
contourf | Filled contour plot. |
dmarker | Add a delta marker (difference between two data points). |
errorbar | Plot data points with error bars. |
feather | Feather plot — vectors at regular x positions. |
figure | Create or activate a chart sheet (figure window). |
gca | Handle to the current axes. |
gcf | Handle to the current figure. |
gcs | Handle to the current sheet. |
get | Get property values from a graph object. |
graph | Get a graph handle by name or index. |
grid | Show or hide the axes grid. |
hidden | Toggle hidden-line removal in mesh plots. |
histogram | Histogram of data. |
hold | Control whether new plots replace or add to existing graphs. |
line3d | 3D line plot with thick rendering. |
loglog | Log-log scale 2D plot. |
marker | Add or get a data-point marker on a graph. |
plot | 2D line / marker plot. |
plot3 | 3D line plot. |
plotyy | Plot two data sets on different left and right y-axes. |
polar | Plot in polar coordinates. |
radar | Radar / spider chart. |
radarf | Filled radar chart. |
rose | Polar histogram (rose plot). |
semilogx | Semi-log plot (logarithmic x-axis). |
semilogy | Semi-log plot (logarithmic y-axis). |
set | Set property values on a graph object. |
subplot | Create or activate one of multiple axes in a grid. |
title | Set the title of the current axes. |
tube | Tube plot — line plot rendered with a tube of finite radius. |
xlabel | Set the x-axis label. |
xlim | Get or set x-axis limits. |
xmarker | Add an x-axis marker (vertical line at a specific x value). |
xticklabels | Get or set x-axis tick labels. |
xticks | Get or set x-axis tick locations. |
ylabel | Set the y-axis label. |
ylim | Get or set y-axis limits. |
ymarker | Add a y-axis marker (horizontal line at a specific y value). |
yticklabels | Get or set y-axis tick labels. |
yticks | Get or set y-axis tick locations. |
zlabel | Set the z-axis label. |
zlim | Get or set z-axis limits. |
zticklabels | Get or set z-axis tick labels. |
zticks | Get or set z-axis tick locations. |
Discrete Data Plots
Section titled “Discrete Data Plots”| Function | What it does |
|---|---|
area | Area plot — line plot with filled area below. |
area3 | 3D area plot. |
bar | Vertical bar chart. |
bar3 | 3D bar chart. |
bar3h | 3D horizontal bar chart. |
barh | Horizontal bar chart. |
bubble | 2D bubble plot — scatter with marker area encoding a third variable. |
bubble3 | 3D bubble plot. |
bubble3d | 3D bubble plot rendered as actual spheres (volumetric). |
coneplot | 3D cone plot of vectors. |
contourslice | Contour slices through a 3D volume. |
cubeplot | 3D cube plot of vectors. |
curl | Curl of a vector field. |
curve | Smooth curve through points (Bézier / spline-like rendering). |
cylinderplot | 3D cylinder plot of vectors. |
divergence | Divergence of a vector field. |
donut | 2D donut chart. |
donut3 | 3D donut chart. |
fill | Filled 2D polygon. |
fill3 | Filled 3D polygon. |
gradient | Numerical gradient of a scalar field. |
isosurface | Extract an isosurface from a 3D scalar volume. |
patch | Generic polygon (2D or 3D). |
pie | Pie chart. |
pie3 | 3D pie chart. |
plotmatrix | Scatterplot matrix. |
quiver | 2D vector field plot. |
quiver3 | 3D vector field plot. |
scatter | 2D scatter plot with optional size and color encoding. |
scatter3 | 3D scatter plot. |
slice | Slice a 3D scalar volume with planar cuts. |
sphereplot | 3D sphere plot of vectors. |
spy | Sparsity-pattern plot of a sparse matrix. |
stairs | Stairs plot — like step but with the stems shown. |
stem | Stem plot — vertical lines from the x-axis to each data point. |
step | Step plot — piecewise-constant series. |
stream2 | Compute (without plotting) 2D streamline vertex coordinates. |
stream3 | Compute (without plotting) 3D streamline vertex coordinates. |
streamline | Streamlines through a 2D or 3D vector field. |
streamribbon | Streamribbons — streamlines as twisted ribbons showing local rotation. |
streamslice | Streamlines on a 2D slice of a 3D vector field. |
streamtube | Streamtubes — streamlines rendered with a width that varies with divergence. |
volumebounds | Bounding-box limits for a 3D vector or scalar volume. |