python plot horizontal line

import matplotlib.pyplot as plt

Here is what the above code is Doing:
1. We’re creating a figure with a size of 8×6 inches.
2. We’re creating a subplot on that figure.
3. We’re plotting a line on our subplot.
4. We’re adding a horizontal line at y=0 to our subplot.
5. We’re showing our plot.