2808 explained code solutions for 75 technologies


python-matplotlibHow to plot a vertical line


import matplotlib.pyplot as plt
plt.axline([1,0], [1,1])
plt.show()ctrl + c
import matplotlib.pyplot as plt

loads Matplotlib module to use plotting capabilities

axline

draws a line based on 2 points

[1,0], [1,1]

2 points of vertical line going through 1 on x axis

.show()

render chart in a separate window