Components of a Graph
Each graph has a set of common components that can be adjusted. The names that Matplotlib uses for these components are demonstrated in the following graph:
The components of a graph are as follows:
Figure: The base of the graph, where all the other components are drawn.
Axis: Contains the figure elements and sets the coordinate system.
Title: The title gives the graph its name.
X-axis label: The name of the x-axis, usually named with the units.
Y-axis label: The name of the y-axis, usually named with the units.
Legend: A description of the data plotted in the graph, allowing you to identify the curves and points in the graph.
Ticks and tick labels: They indicate the points of reference on a scale for the graph, where the values of the data are. The labels indicate the values themselves.
Line plots: These are the lines that are plotted with the data.
Markers: Markers are the pictograms that mark the point data.
Spines: The lines that delimit the...