Python How Do I Generate These Horizontal Lines In Matplotlib

Python How Do I Generate These Horizontal Lines In Matplotlib