Should be between 0 and 1 0 being the bottom of the plot 1 the top of the plot.
Matplotlib vertical line plot.
Axhline and axvline to plot horizontal and vertical lines in matplotlib.
Import matplotlib pyplot as plt import numpy as np x np linspace 0 2 np pi 1000.
Hlines and vlines to plot horizontal and vertical line in matplotlib.
Respective beginning and end of each line.
Should be between 0 and 1 0 being the bottom of the plot 1 the top of the plot.
Plot vertical lines at each x from ymin to ymax.
Ymax scalar optional default.
Should be between 0 and 1 0 being the bottom of the plot 1 the top of the plot.
November 24 2019 updated.
Respective beginning and end of each line.
Plot vertical lines at each x from ymin to ymax.
Examples using matplotlib axes axes vlines.
X position in data coordinates of the vertical line.
If scalars are provided all lines will have same length.
Plot vertical lines at each x from ymin to ymax.
Ymin scalar optional default.
Matplotlib pyplot vlines x ymin.
X float or array like.
Scalar or 1d array like.
Ymin ymax scalar or 1d array like.
X indexes where to plot the lines.
Matplotlib pyplot vlines x ymin.
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.
X indexes where to plot the lines.
Matplotlib pyplot axvline x 0.
Respective beginning and end of each line.
Scalar or 1d array like.
To plot a simple vertical line on a matplotlib figure a solution is to use axvline example.
Should be between 0 and 1 0 being the bottom of the plot 1 the top of the plot.
If scalars are provided all lines will have same length.
X indexes where to plot the lines.
Ymin ymax float or array like.
X scalar or 1d array like.
How to plot a simple vertical line on a matplotlib figure.
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.
If scalars are provided all lines will have same length.
X position in data coordinates of the vertical line.