Graphics > Formatting and Annotation
115 functions in MATLAB › Graphics > Formatting and Annotation.
Colormaps
abyss | Returns the abyss colormap, which runs from dark navy to a bright blue. |
autumn | Returns the autumn colormap, a ramp from red through orange to yellow. |
bone | Returns the bone colormap, a gray scale with a slight blue tint. |
brighten | Makes a colormap brighter or darker. |
clim | Gets or sets the color limits of the current axes. |
colorbar | Adds a color bar that shows how data values map to colors. |
colorcube | Returns the colorcube colormap, a set of regularly spaced RGB colors. |
colormap | Gets or sets the colormap, the table that turns data values into colors. |
contrast | Returns a gray colormap that enhances the contrast of an image. |
cool | Returns the cool colormap, a ramp from cyan to magenta. |
copper | Returns the copper colormap, a ramp from black to a light copper tone. |
flag | Colormap that cycles through red, white, blue and black. |
gray | Colormap of linear shades of gray, from black to white. |
hot | Colormap that goes from black through red and yellow to white. |
hsv | Colormap that sweeps through the hue circle at full saturation and value. |
hsv2rgb | Converts colors from hue-saturation-value to red-green-blue. |
jet | Colormap that runs from dark blue through cyan, yellow and orange to dark red. |
lines | Colormap made of the default line colors of the axes. |
parula | Default colormap: a smooth progression from dark blue through teal and green to yellow. |
pink | Sepia-toned colormap that goes from black through pink to white. |
prism | Colormap that repeats the six colors red, orange, yellow, green, blue and violet. |
rgb2hsv | Converts colors from red-green-blue to hue-saturation-value. |
rgbplot | Plots the red, green and blue columns of a colormap as three lines. |
sky | Colormap of sky blues, from a pale tone to a deep blue. |
spring | Colormap that shades from magenta to yellow. |
summer | Colormap that shades from green to yellow. |
turbo | Rainbow-style colormap with more even lightness than jet. |
winter | Colormap that shades from blue to green. |
3-D Scene Control
alim | Gets or sets the alpha (transparency) limits of the current axes. |
alpha | Sets the transparency of faces of surfaces, patches and images in the current axes. |
alphamap | Gets or sets the alphamap, the table that turns data values into transparency. |
camdolly | Moves the camera position and target together, as a camera would on a dolly. |
camlight | Creates or moves a light source relative to the camera. |
camlookat | Moves the camera and target so that given objects fill the view. |
camorbit | Rotates the camera around the camera target. |
campan | Rotates the camera target around the camera position. |
campos | Gets or sets the camera position of the current axes. |
camproj | Gets or sets the projection type of the camera. |
camroll | Rotates the camera around the line of sight. |
camtarget | Gets or sets the point the camera looks at. |
camup | Gets or sets the up direction of the camera. |
camva | Gets or sets the camera view angle of the current axes. |
camzoom | Zooms the camera in or out by a factor. |
diffuse | Diffuse (Lambertian) reflectance of a surface for a given light direction. |
light | Creates a light source in the current axes. |
lightangle | Creates or moves a light using azimuth and elevation angles. |
lighting | Selects the lighting method used to shade surfaces and patches. |
makehgtform | Creates a 4-by-4 transformation matrix for translation, scaling and rotation in 3-D. |
material | Sets the reflectance properties of surfaces and patches. |
shading | Sets how color is shaded across surfaces and patches. |
specular | Specular reflectance of a surface for given light and viewer directions. |
view | Sets or gets the viewing angle of 3-D axes as azimuth and elevation. |
viewmtx | Returns the 4-by-4 matrix that projects 3-D points onto the 2-D screen for a given viewpoint. |
Labels and Annotations
annotation | Adds shapes and text, such as arrows and text boxes, to a figure. |
datatip | Adds a data tip, a small label showing a data point, to a chart. |
fontname | Sets the font name of the text in a figure or graphics object. |
fontsize | Sets the font size of the text in a figure or graphics object. |
legend | Adds a legend that names the data series of the axes. |
line | Draws a primitive line through the given points in the current axes. |
rectangle | Draws a rectangle, rounded rectangle or ellipse in 2-D. |
sgtitle | Adds one title above a grid of subplots. |
subtitle | Adds a second, smaller line of text under the title of the axes. |
texlabel | Converts an expression or Greek-letter text to TeX markup for use in labels. |
text | Writes text at a position in the axes, in data coordinates. |
title | Adds a title to the axes, figure layout or chart. |
xlabel | Adds a label to the x-axis. |
xline | Draws a vertical line at a given x value across the axes. |
xregion | Shades a vertical band between two x values. |
ylabel | Adds a label to the y-axis. |
yline | Draws a horizontal line at a given y value across the axes. |
yregion | Shades a horizontal band between two y values. |
zlabel | Sets the label of the z-axis of a 3-D plot. |
Axes Appearance
axes | Creates axes in the current figure and can make existing axes current. |
axis | Sets axis limits and scaling, or gets the current limits. |
box | Shows or hides the outline around the current axes. |
cla | Clears the current axes of its graphics objects. |
clf | Clears the current figure. |
colororder | Gets or sets the list of colors used to draw successive lines. |
daspect | Gets or sets the data aspect ratio of the current axes. |
datetick | Formats axis tick labels as dates. |
figure | Creates a figure window, or makes an existing one the current figure. |
grid | Turns the axes grid lines on or off. |
hold | Keeps existing plots when new ones are added to the same axes. |
nexttile | Creates axes in the next free tile of a tiled chart layout. |
num2ruler | Converts numeric values to the data type that an axis ruler uses. |
orderedcolors | Returns a named set of distinct colors, such as the default line colors. |
pbaspect | Gets or sets the relative lengths of the x, y and z sides of the axes box. |
plotyy | Plots two data sets against separate y-axes, left and right (older form of yyaxis). |
ruler2num | Converts values shown on an axis ruler to the numbers the axes store internally. |
subplot | Divides a figure into a grid and selects one cell for the next plot. |
tiledlayout | Creates a grid of tiles in the figure to hold several plots. |
tilenum | Gives the tile number of a given row and column in a tiled layout. |
tilerowcol | Gives the row and column of a tile, given its number in a tiled layout. |
xlim | Gets or sets the limits of the x-axis. |
xscale | Gets or sets the scale of the x-axis, linear or logarithmic. |
xsecondarylabel | Sets the secondary label of the x-axis. |
xtickangle | Gets or sets the rotation angle of the x-axis tick labels. |
xtickformat | Gets or sets the number format of the x-axis tick labels. |
xticklabels | Gets or sets the text of the x-axis tick labels. |
xticks | Gets or sets the positions of the x-axis tick marks. |
ylim | Gets or sets the limits of the y-axis. |
yscale | Gets or sets the scale of the y-axis, linear or logarithmic. |
ysecondarylabel | Sets the secondary label of the y-axis. |
ytickangle | Gets or sets the rotation angle of the y-axis tick labels. |
ytickformat | Gets or sets the number format of the y-axis tick labels. |
yticklabels | Gets or sets the text of the y-axis tick labels. |
yticks | Gets or sets the positions of the y-axis tick marks. |
yyaxis | Selects the left or right y-axis so one plot can use two different y scales. |
zlim | Gets or sets the limits of the z-axis. |
zscale | Chooses a linear or logarithmic scale for the z-axis. |
zsecondarylabel | Sets the secondary label of the z-axis, shown next to the tick labels. |
ztickangle | Rotates the tick labels of the z-axis. |
ztickformat | Sets the numeric format of the z tick labels. |
zticklabels | Sets or gets the text of the z-axis tick labels. |
zticks | Sets or gets the positions of the z-axis tick marks. |