We learned in Chapter 4, Developing Visualizations for Publishing Quality, that Matplotlib has a default color cycle that gets repeated as we plot more graphs in a given axis. The property cycler enables us to define such cyclers for multiple attributes in a single function. If you want to plot an axis with repetitive patterns, we can achieve it with the property cycler.
Using property cycler
Getting ready
We will use the object-oriented API here. In Chapter 4, Developing Visualizations for Publishing Quality, we used the pyplot API for this example. Import the required libraries:
from cycler import cycler
import numpy as np
from matplotlib.backends.backend_agg import FigureCanvasAgg as FigureCanvas
from matplotlib.figure import...