Skip to content

Commit

Permalink
fixed diagram orientation
Browse files Browse the repository at this point in the history
  • Loading branch information
AOS55 committed Oct 25, 2022
1 parent 324d99d commit b2d1518
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions libraries/safe/simple_point_bot.py
Original file line number Diff line number Diff line change
Expand Up @@ -207,6 +207,7 @@ def draw(self, trajectories=None, heatmap=None, plot_starts=False, board=True, f

ax.set_aspect('equal')
ax.autoscale_view()
ax.invert_yaxis()

if file is not None:
plt.savefig(file)
Expand Down Expand Up @@ -260,6 +261,7 @@ def draw_board(self, ax):
ax.add_patch(circle)
ax.annotate("start", xy=(self.start_pos[0], self.start_pos[1] - 8), fontsize=10, ha="center")
ax.annotate("goal", xy=(self.end_pos[0], self.end_pos[1] - 8), fontsize=10, ha="center")
ax.invert_yaxis()


class SimplePointBotLong(SimplePointBot):
Expand Down

0 comments on commit b2d1518

Please sign in to comment.