Horje
python draw polygon Code Example
python draw polygon
# credit to the Stack Overflow user in the source link

import matplotlib.pyplot as plt

coord = [[1,1], [2,1], [2,2], [1,2], [0.5,1.5]]
coord.append(coord[0]) # repeat the first point to create a 'closed loop'

xs, ys = zip(*coord) # create lists of x and y values

plt.figure()
plt.plot(xs,ys) 
plt.show() 




Python

Related
breaking big csv into chunks pandas Code Example breaking big csv into chunks pandas Code Example
strptime Code Example strptime Code Example
python get last element of iterator Code Example python get last element of iterator Code Example
python procedured Code Example python procedured Code Example
numpy subarray python Code Example numpy subarray python Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
9