I have input values of x, y coordinates in the following format:
[[1,1], [2,1], [2,2], [1,2], [0.5,1.5]]
I want to draw polygons, but I don\'t
All the other answers seems veryhigh level, I guess that is my impression as a mechanical engineer. Here's a simple version of the code:
from numpy import * from matplotlib.pyplot import * x = ([1,2,2,1,0.5,1]) y = ([1,1,2,2,1.5,1]) plot(x,y) show()