Labels and Annotations
Add a title, label the axes, or add annotations to a graph to help convey important information. You can create a legend to label plotted data series or add descriptive text next to data points. Also, you can create annotations such as rectangles, ellipses, arrows, vertical lines, or horizontal lines that highlight specific areas of data.
|Add subtitle to plot (Since R2020b)|
|Add title to grid of plots|
|Change font name for objects in a figure (Since R2022a)|
|Change font size for objects in a figure (Since R2022a)|
|Add legend to axes|
|Create legend for bubble chart (Since R2020b)|
|Add text descriptions to data points|
|Add text to figure using mouse|
|Vertical line with constant x-value|
|Horizontal line with constant y-value|
|1-D filled region between x-coordinates (Since R2023a)|
|1-D filled region between y-coordinates (Since R2023a)|
|Create data tip (Since R2019b)|
|Create primitive line|
|Create rectangle with sharp or curved corners|
|Format text with TeX characters|
|Identify axes coordinates|
|Text Properties||Axes text appearance and behavior|
|Text Properties||Text appearance and behavior for grid of plots|
|Text Properties||Tiled chart layout text appearance and behavior (Since R2019b)|
|Legend Properties||Legend appearance and behavior|
|BubbleLegend Properties||Bubble legend appearance and behavior (Since R2020b)|
|ConstantLine Properties||Constant line appearance and behavior|
|ConstantRegion Properties||Constant region appearance and behavior (Since R2023a)|
|Arrow Properties||Arrow appearance and behavior|
|DoubleEndArrow Properties||Double end arrow appearance and behavior|
|Ellipse Properties||Ellipse appearance and behavior|
|Line Properties||Annotation line appearance and behavior|
|Rectangle Properties||Annotation rectangle appearance and behavior|
|TextArrow Properties||Text arrow appearance and behavior|
|TextBox Properties||Text box appearance and behavior|
|Line Properties||Primitive line appearance and behavior|
|Rectangle Properties||Rectangle appearance and behavior|
- Add Title and Axis Labels to Chart
This example shows how to add a title and axis labels to a chart by using the
- Make the Graph Title Smaller
Modify the font size and length of graph titles.
- Add Legend to Graph
Label data series using a legend and customize the legend appearance such as changing the location, setting the font size, or using multiple columns.
- Add Text to Chart
This example shows how to add text to a chart, control the text position and size, and create multiline text.
- Greek Letters and Special Characters in Chart Text
You can add text to a chart that includes Greek letters and special characters using TeX markup.
- Add Annotations to Chart
Annotations are extra information added to a chart to help identify important information.