Skip to content

Basic Plot and Graphics

Built-in functions › Graphics › Basic Plot and Graphics

97 functions in this category.

FunctionWhat it does
axesCreate or activate axes within a figure.
axisGet or set axis limits and properties.
beltBelt plot — line plot rendered as a 3D ribbon.
boxShow or hide the axes box outline.
caxisGet or set color-axis limits.
clfClear the current figure.
closeClose one or more figures.
compassCompass plot — vectors radiating from origin.
contourContour plot of a 2D scalar field.
contour33D contour plot.
contourfFilled contour plot.
dmarkerAdd a delta marker (difference between two data points).
errorbarPlot data points with error bars.
featherFeather plot — vectors at regular x positions.
figureCreate or activate a chart sheet (figure window).
gcaHandle to the current axes.
gcfHandle to the current figure.
gcsHandle to the current sheet.
getGet property values from a graph object.
graphGet a graph handle by name or index.
gridShow or hide the axes grid.
hiddenToggle hidden-line removal in mesh plots.
histogramHistogram of data.
holdControl whether new plots replace or add to existing graphs.
line3d3D line plot with thick rendering.
loglogLog-log scale 2D plot.
markerAdd or get a data-point marker on a graph.
plot2D line / marker plot.
plot33D line plot.
plotyyPlot two data sets on different left and right y-axes.
polarPlot in polar coordinates.
radarRadar / spider chart.
radarfFilled radar chart.
rosePolar histogram (rose plot).
semilogxSemi-log plot (logarithmic x-axis).
semilogySemi-log plot (logarithmic y-axis).
setSet property values on a graph object.
subplotCreate or activate one of multiple axes in a grid.
titleSet the title of the current axes.
tubeTube plot — line plot rendered with a tube of finite radius.
xlabelSet the x-axis label.
xlimGet or set x-axis limits.
xmarkerAdd an x-axis marker (vertical line at a specific x value).
xticklabelsGet or set x-axis tick labels.
xticksGet or set x-axis tick locations.
ylabelSet the y-axis label.
ylimGet or set y-axis limits.
ymarkerAdd a y-axis marker (horizontal line at a specific y value).
yticklabelsGet or set y-axis tick labels.
yticksGet or set y-axis tick locations.
zlabelSet the z-axis label.
zlimGet or set z-axis limits.
zticklabelsGet or set z-axis tick labels.
zticksGet or set z-axis tick locations.
FunctionWhat it does
areaArea plot — line plot with filled area below.
area33D area plot.
barVertical bar chart.
bar33D bar chart.
bar3h3D horizontal bar chart.
barhHorizontal bar chart.
bubble2D bubble plot — scatter with marker area encoding a third variable.
bubble33D bubble plot.
bubble3d3D bubble plot rendered as actual spheres (volumetric).
coneplot3D cone plot of vectors.
contoursliceContour slices through a 3D volume.
cubeplot3D cube plot of vectors.
curlCurl of a vector field.
curveSmooth curve through points (Bézier / spline-like rendering).
cylinderplot3D cylinder plot of vectors.
divergenceDivergence of a vector field.
donut2D donut chart.
donut33D donut chart.
fillFilled 2D polygon.
fill3Filled 3D polygon.
gradientNumerical gradient of a scalar field.
isosurfaceExtract an isosurface from a 3D scalar volume.
patchGeneric polygon (2D or 3D).
piePie chart.
pie33D pie chart.
plotmatrixScatterplot matrix.
quiver2D vector field plot.
quiver33D vector field plot.
scatter2D scatter plot with optional size and color encoding.
scatter33D scatter plot.
sliceSlice a 3D scalar volume with planar cuts.
sphereplot3D sphere plot of vectors.
spySparsity-pattern plot of a sparse matrix.
stairsStairs plot — like step but with the stems shown.
stemStem plot — vertical lines from the x-axis to each data point.
stepStep plot — piecewise-constant series.
stream2Compute (without plotting) 2D streamline vertex coordinates.
stream3Compute (without plotting) 3D streamline vertex coordinates.
streamlineStreamlines through a 2D or 3D vector field.
streamribbonStreamribbons — streamlines as twisted ribbons showing local rotation.
streamsliceStreamlines on a 2D slice of a 3D vector field.
streamtubeStreamtubes — streamlines rendered with a width that varies with divergence.
volumeboundsBounding-box limits for a 3D vector or scalar volume.