Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions imap/map.py
Original file line number Diff line number Diff line change
Expand Up @@ -141,12 +141,11 @@ def _draw_polygon_boundary(polygon, ax, color_val):

@staticmethod
def _draw_polygon(polygon, ax, color_val):
# todo(zero): need to fix
pxy = []
for point in polygon.point:
pxy.append([point.x, point.y])
polygon = Polygon(pxy, True)
ax.add_patch(polygon)
patch = Polygon(pxy, closed=True, edgecolor=color_val)
ax.add_patch(patch)

@staticmethod
def _draw_stop_line(line_segment, ax, color_val):
Expand Down
Loading