matplotlib.pyplot horizontal line code example
Example 1: horizontal line matplotlib python
import matplotlib.pyplot as plt
plt.axhline(0)
Example 2: how to plot mltiple horizontak kines in matplotlib
[ax.axhiline(y=i, linestyle='--') for i in [150,100,200,300]]