![]() |
External Packages (page 27 of 38) |
The basic components of a matplotlib figure include:
- Figure: The top-level container for all elements of the plot. It serves as the canvas on which the plot is drawn
- Axes: The rectangular areas within the figure where data is plotted. Each figure can contain one or more axes
- Axis: Represents the x-axis and y-axis of the plot. They define the data limits, tick locations, tick labels, and axis labels
- Markers: Symbols used to denote individual data points on a plot.
- Lines: Connect data points on a plot and are commonly used in line plots and scatter plots with connected points
- Title: Text that provides a descriptive title for the plot
- Axis Labels: Text that provide descriptions for the x-axis and y-axis
- Ticks and Tick Labels: Small marks along the axis that indicate specific data points or intervals and their corresponding labels
- Legend: Provides a key to the symbols or colors used in the plot
- Grid Lines: Horizontal and vertical lines that extend across the plot
- Spines: The lines that form the borders of the plot area

