how to add a horizontal line in matplotlib plot code example Example: horizontal line matplotlib python import matplotlib.pyplot as plt plt.axhline(0)