Matplotlib.pyplot.axvline() in Python
Matplotlib is a plotting library for creating static, animated, and interactive visualizations in Python. Matplotlib can be used in Python scripts, the Python and IPython shell, web application servers, and various graphical user interface toolkits like Tkinter, awxPython, etc.
Note: For more information, refer to Python Matplotlib – An Overview
Pyplot is a Matplotlib module which provides a MATLAB-like interface. Matplotlib is designed to be as usable as MATLAB, with the ability to use Python and the advantage of being free and open-source.
Note: For more information, refer to Pyplot in Matplotlib
This function add the vertical lines across the axes of the plot
matplotlib.pyplot.axvline(x=0, ymin=0, ymax=1, **kwargs)
x : x position in data coordinates to place the vertical line
ymin :vertical line starting position on y axis, it will take values between 0 and 1, 0 being bottom of the axis, 1 being top of the axis
ymax :vertical line ending position on y axis, it will take values between 0 and 1, 0 being bottom of the axis, 1 being top of the axis
**kwargs :Other optional parameters to change the properties of the line, like
changing color, linewidth etc