Add lines directly to a figure You can add artists such as a Line2D directly to a figure. This is typically useful for visual structuring. import matplotlib.pyplot as plt import matplotlib.lines as lines fig,