Line Python

You might also like

You are on page 1of 1

/* python program to draw line with line styles (thick,Thin,Dotted) */

#!/usr/bin/env python
import matplotlib.pyplot as plt

plt.plot([10, 100],[50,70], color='green', linestyle='solid')


plt.plot([20, 80],[100,80], color='green', linestyle='-.')
plt.plot([20,30],[100,200], color='green', linestyle='dashed')
plt.show()

You might also like