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