Graphics > Formatting and Annotation

115 functions in MATLAB › Graphics > Formatting and Annotation.

Colormaps

abyssReturns the abyss colormap, which runs from dark navy to a bright blue.
autumnReturns the autumn colormap, a ramp from red through orange to yellow.
boneReturns the bone colormap, a gray scale with a slight blue tint.
brightenMakes a colormap brighter or darker.
climGets or sets the color limits of the current axes.
colorbarAdds a color bar that shows how data values map to colors.
colorcubeReturns the colorcube colormap, a set of regularly spaced RGB colors.
colormapGets or sets the colormap, the table that turns data values into colors.
contrastReturns a gray colormap that enhances the contrast of an image.
coolReturns the cool colormap, a ramp from cyan to magenta.
copperReturns the copper colormap, a ramp from black to a light copper tone.
flagColormap that cycles through red, white, blue and black.
grayColormap of linear shades of gray, from black to white.
hotColormap that goes from black through red and yellow to white.
hsvColormap that sweeps through the hue circle at full saturation and value.
hsv2rgbConverts colors from hue-saturation-value to red-green-blue.
jetColormap that runs from dark blue through cyan, yellow and orange to dark red.
linesColormap made of the default line colors of the axes.
parulaDefault colormap: a smooth progression from dark blue through teal and green to yellow.
pinkSepia-toned colormap that goes from black through pink to white.
prismColormap that repeats the six colors red, orange, yellow, green, blue and violet.
rgb2hsvConverts colors from red-green-blue to hue-saturation-value.
rgbplotPlots the red, green and blue columns of a colormap as three lines.
skyColormap of sky blues, from a pale tone to a deep blue.
springColormap that shades from magenta to yellow.
summerColormap that shades from green to yellow.
turboRainbow-style colormap with more even lightness than jet.
winterColormap that shades from blue to green.

3-D Scene Control

alimGets or sets the alpha (transparency) limits of the current axes.
alphaSets the transparency of faces of surfaces, patches and images in the current axes.
alphamapGets or sets the alphamap, the table that turns data values into transparency.
camdollyMoves the camera position and target together, as a camera would on a dolly.
camlightCreates or moves a light source relative to the camera.
camlookatMoves the camera and target so that given objects fill the view.
camorbitRotates the camera around the camera target.
campanRotates the camera target around the camera position.
camposGets or sets the camera position of the current axes.
camprojGets or sets the projection type of the camera.
camrollRotates the camera around the line of sight.
camtargetGets or sets the point the camera looks at.
camupGets or sets the up direction of the camera.
camvaGets or sets the camera view angle of the current axes.
camzoomZooms the camera in or out by a factor.
diffuseDiffuse (Lambertian) reflectance of a surface for a given light direction.
lightCreates a light source in the current axes.
lightangleCreates or moves a light using azimuth and elevation angles.
lightingSelects the lighting method used to shade surfaces and patches.
makehgtformCreates a 4-by-4 transformation matrix for translation, scaling and rotation in 3-D.
materialSets the reflectance properties of surfaces and patches.
shadingSets how color is shaded across surfaces and patches.
specularSpecular reflectance of a surface for given light and viewer directions.
viewSets or gets the viewing angle of 3-D axes as azimuth and elevation.
viewmtxReturns the 4-by-4 matrix that projects 3-D points onto the 2-D screen for a given viewpoint.

Labels and Annotations

annotationAdds shapes and text, such as arrows and text boxes, to a figure.
datatipAdds a data tip, a small label showing a data point, to a chart.
fontnameSets the font name of the text in a figure or graphics object.
fontsizeSets the font size of the text in a figure or graphics object.
legendAdds a legend that names the data series of the axes.
lineDraws a primitive line through the given points in the current axes.
rectangleDraws a rectangle, rounded rectangle or ellipse in 2-D.
sgtitleAdds one title above a grid of subplots.
subtitleAdds a second, smaller line of text under the title of the axes.
texlabelConverts an expression or Greek-letter text to TeX markup for use in labels.
textWrites text at a position in the axes, in data coordinates.
titleAdds a title to the axes, figure layout or chart.
xlabelAdds a label to the x-axis.
xlineDraws a vertical line at a given x value across the axes.
xregionShades a vertical band between two x values.
ylabelAdds a label to the y-axis.
ylineDraws a horizontal line at a given y value across the axes.
yregionShades a horizontal band between two y values.
zlabelSets the label of the z-axis of a 3-D plot.

Axes Appearance

axesCreates axes in the current figure and can make existing axes current.
axisSets axis limits and scaling, or gets the current limits.
boxShows or hides the outline around the current axes.
claClears the current axes of its graphics objects.
clfClears the current figure.
colororderGets or sets the list of colors used to draw successive lines.
daspectGets or sets the data aspect ratio of the current axes.
datetickFormats axis tick labels as dates.
figureCreates a figure window, or makes an existing one the current figure.
gridTurns the axes grid lines on or off.
holdKeeps existing plots when new ones are added to the same axes.
nexttileCreates axes in the next free tile of a tiled chart layout.
num2rulerConverts numeric values to the data type that an axis ruler uses.
orderedcolorsReturns a named set of distinct colors, such as the default line colors.
pbaspectGets or sets the relative lengths of the x, y and z sides of the axes box.
plotyyPlots two data sets against separate y-axes, left and right (older form of yyaxis).
ruler2numConverts values shown on an axis ruler to the numbers the axes store internally.
subplotDivides a figure into a grid and selects one cell for the next plot.
tiledlayoutCreates a grid of tiles in the figure to hold several plots.
tilenumGives the tile number of a given row and column in a tiled layout.
tilerowcolGives the row and column of a tile, given its number in a tiled layout.
xlimGets or sets the limits of the x-axis.
xscaleGets or sets the scale of the x-axis, linear or logarithmic.
xsecondarylabelSets the secondary label of the x-axis.
xtickangleGets or sets the rotation angle of the x-axis tick labels.
xtickformatGets or sets the number format of the x-axis tick labels.
xticklabelsGets or sets the text of the x-axis tick labels.
xticksGets or sets the positions of the x-axis tick marks.
ylimGets or sets the limits of the y-axis.
yscaleGets or sets the scale of the y-axis, linear or logarithmic.
ysecondarylabelSets the secondary label of the y-axis.
ytickangleGets or sets the rotation angle of the y-axis tick labels.
ytickformatGets or sets the number format of the y-axis tick labels.
yticklabelsGets or sets the text of the y-axis tick labels.
yticksGets or sets the positions of the y-axis tick marks.
yyaxisSelects the left or right y-axis so one plot can use two different y scales.
zlimGets or sets the limits of the z-axis.
zscaleChooses a linear or logarithmic scale for the z-axis.
zsecondarylabelSets the secondary label of the z-axis, shown next to the tick labels.
ztickangleRotates the tick labels of the z-axis.
ztickformatSets the numeric format of the z tick labels.
zticklabelsSets or gets the text of the z-axis tick labels.
zticksSets or gets the positions of the z-axis tick marks.