The anatomy of a Plots plot
This section will describe the fundamental elements that build a figure from the Plots
package. The main terminology will be helpful to us in future sections of this chapter, where we will expand on these concepts to understand Makie and Gadfly
figures.
A plot from the Plots
package has several components we can customize using attributes. We can think of a Plots figure as a plot that can contain subplots. Those subplots will have axes that define the plot area in which we can plot our series. We can customize each of those elements through different groups of attributes. Some attributes, especially background and foreground colors, pass their values across levels. For example, by default, the axis color, foreground_color_axis
, matches the color defined for the subplot, foreground_color_subplot
, which, in turn, matches the one defined for the plot through the foreground_color
attribute.
Let’s explore the different parts that build a Plots
figure...