matplotlib dotted vertival line code example
Example 1: vertical line in matplotlib
xposition = [0.3, 0.4, 0.45]
for xc in xposition:
plt.axvline(x=xc, color='k', linestyle='--')
Example 2: plt vertical line
plt.axvline(x=0.22058956)
xposition = [0.3, 0.4, 0.45]
for xc in xposition:
plt.axvline(x=xc, color='k', linestyle='--')
plt.axvline(x=0.22058956)