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 Title and Axis Labels to Chart
This example shows how to add a title and axis labels to a chart by using the title
, xlabel
, and ylabel
functions.
Modify the font size and length of graph titles.
Label data series using a legend and customize the legend appearance such as changing the location, setting the font size, or using multiple columns.
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.
Annotations are extra information added to a chart to help identify important information.