This is a demo demonstrating how to combine multiple plot objects into a single legend entry. The term "handle" is used to refer to the marker in the legend.
import matplotlib.pyplot as plt
import numpy as np
legend_handles = []
# Set up plot
fig, ax = plt.subplots(dpi=150)