line python program

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()

Upload: megha-kharche

Post on 08-Apr-2016

3 views

Category:

Documents


0 download

DESCRIPTION

Line Python Program

TRANSCRIPT

Page 1: Line Python Program

/* 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()