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