This commit is contained in:
zhm-real
2020-06-20 19:52:56 -07:00
parent 45089174cb
commit a035aa5504
9 changed files with 24 additions and 52 deletions
-6
View File
@@ -14,7 +14,6 @@ class Plotting():
self.obs = self.env.obs_map()
self.lose = self.env.lose_map()
def animation(self, path, name):
"""
animation.
@@ -29,7 +28,6 @@ class Plotting():
self.plot_lose()
self.plot_path(path)
def plot_grid(self, name):
"""
plot the obstacles in environment.
@@ -48,7 +46,6 @@ class Plotting():
plt.title(name)
plt.axis("equal")
def plot_lose(self):
"""
plot losing states in environment.
@@ -60,7 +57,6 @@ class Plotting():
plt.plot(lose_x, lose_y, color = '#A52A2A', marker = 's', ms = 24)
def plot_visited(self, visited):
"""
animation of order of visited nodes.
@@ -87,7 +83,6 @@ class Plotting():
if count % length == 0: plt.pause(0.001)
def plot_path(self, path):
path.remove(self.xI)
path.remove(self.xG)
@@ -100,7 +95,6 @@ class Plotting():
plt.show()
plt.pause(0.5)
def plot_diff(self, diff, name):
plt.figure(2)
plt.title(name, fontdict=None)