To plot a simple vertical line on a matplotlib figure a solution is to use axvline example.
Matplotlib vertical line.
How to change the font size on a matplotlib plot.
Should be between 0 and 1 0 being the bottom of the plot 1 the top of the plot.
X position in data coordinates of the vertical line.
Ymin scalar optional default.
X position in data coordinates of the vertical line.
Setting y axis limit in matplotlib.
How to plot a simple vertical line on a matplotlib figure.
How to add vertical grid lines to a matplotlib chart.
Should be between 0 and 1 0 being the bottom of the plot 1 the top of the plot.
November 24 2019 updated.
Save plot to image file instead of displaying it using matplotlib.
Should be between 0 and 1 0 being the bottom of the plot 1 the top of the plot.
Ymax scalar optional default.
Adding an arbitrary line to a matplotlib plot in ipython notebook.
Import matplotlib pyplot as plt import numpy as np x np linspace 0 2 np pi 1000.
X position in data coordinates of the vertical line.
Should be between 0 and 1 0 being the bottom of the plot 1 the top of the plot.
Should be between 0 and 1 0 being the bottom of the plot 1 the top of the plot.
Axhline and axvline to plot horizontal and vertical lines in matplotlib.