Spaces:
Runtime error
Runtime error
eaglelandsonce
commited on
Commit
•
800ba7b
1
Parent(s):
0565b67
Update app.py
Browse files
app.py
CHANGED
@@ -84,7 +84,10 @@ def draw_grid(data):
|
|
84 |
else: # Horizontal road
|
85 |
for x in range(min(start[0], end[0]), max(start[0], end[0]) + 1):
|
86 |
ax.add_patch(plt.Rectangle((x, nrows-start[1]-1), 1, 1, color=road['color']))
|
87 |
-
|
|
|
|
|
|
|
88 |
# Setting labels and title
|
89 |
ax.set_xlabel('Columns')
|
90 |
ax.set_ylabel('Rows')
|
|
|
84 |
else: # Horizontal road
|
85 |
for x in range(min(start[0], end[0]), max(start[0], end[0]) + 1):
|
86 |
ax.add_patch(plt.Rectangle((x, nrows-start[1]-1), 1, 1, color=road['color']))
|
87 |
+
|
88 |
+
|
89 |
+
# Reverse the y-axis numbers
|
90 |
+
ax.invert_yaxis()
|
91 |
# Setting labels and title
|
92 |
ax.set_xlabel('Columns')
|
93 |
ax.set_ylabel('Rows')
|