Skip to content
Snippets Groups Projects
Commit 854d7139 authored by maljx's avatar maljx
Browse files

Merge branch 'master' of gitlab.aicrowd.com:flatland/flatland

parents ef60e4ce 65afa67a
No related branches found
No related tags found
No related merge requests found
......@@ -289,7 +289,7 @@ class RenderTool(object):
visit = visit.prev
xyPrev = xy
def renderEnv(self):
def renderEnv(self, show=False):
"""
Draw the environment using matplotlib.
Draw into the figure if provided.
......@@ -418,7 +418,8 @@ class RenderTool(object):
plt.xlim([0, env.width * cell_size])
plt.ylim([-env.height * cell_size, 0])
plt.show()
if show:
plt.show()
def _draw_square(self, center, size, color):
x0 = center[0]-size/2
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment