The Plaza

Constantine Anastasios Chrisafis
Data Mining the City
2 min readSep 12, 2018

I separated each house into its’ own category and coded them into the map separately. I did the same thing for each road segment, and for the plaza/park in the middle

original sketch
python/processor
def setup():
#this is your canvas size
size(500,500)
background(47,130,0)
def draw():
#this is the first house: left row top
houseWidth = 100
RoadWidth = 30
rect(5,5,houseWidth,houseWidth)
#this is the second house: left row top
houseWidth = 100
rect(5,100,houseWidth,houseWidth)

#vertical left road
rect(112,-5,RoadWidth,900)
#horizontal left road
rect(0,210,112,30)

#this is the third house: left row bottom
houseWidth = 100
rect(5,250,houseWidth,houseWidth)
#this is the fourth house: left row bottom
houseWidth = 100
rect(5,350,houseWidth,houseWidth)

#this is the first house: top row
houseWidth = 100
rect(250,5,houseWidth,houseWidth)
#this is the second house: top row
houseWidth = 100
rect(150,5,houseWidth,houseWidth)

#vertical right road
rect(357,-5,RoadWidth,900)
#horizontal right road
rect(387,213,115,30)

#this is the first house: right row top
houseWidth = 100
rect(395,5,houseWidth,houseWidth)
#this is the second house: right row top
houseWidth = 100
rect(395,100,houseWidth,houseWidth)
#this is the first house: right row bottom
houseWidth = 100
rect(395,250,houseWidth,houseWidth)
#this is the second house: right row bottom
houseWidth = 100
rect(395,350,houseWidth,houseWidth)

#this is the first house: bottom
houseWidth = 100
rect(250,350,houseWidth,houseWidth)
#this is the second house: bottom
houseWidth = 100
rect(150,350,houseWidth,houseWidth)

#park
rect(150,125,200,200)

--

--