Skip to content
Snippets Groups Projects
Commit 3dc53dac authored by hagrid67's avatar hagrid67
Browse files

replaced size with s in scatter call

parent 11107145
No related branches found
No related tags found
No related merge requests found
...@@ -21,6 +21,7 @@ class MPLGL(GraphicsLayer): ...@@ -21,6 +21,7 @@ class MPLGL(GraphicsLayer):
plt.plot(*args, **kwargs) plt.plot(*args, **kwargs)
def scatter(self, *args, **kwargs): def scatter(self, *args, **kwargs):
print(args, kwargs)
plt.scatter(*args, **kwargs) plt.scatter(*args, **kwargs)
def text(self, *args, **kwargs): def text(self, *args, **kwargs):
...@@ -208,7 +209,7 @@ class RenderTool(object): ...@@ -208,7 +209,7 @@ class RenderTool(object):
xyDir = np.matmul(rcDir, rt.grc2xy) # agent direction in xy xyDir = np.matmul(rcDir, rt.grc2xy) # agent direction in xy
xyPos = np.matmul(rcPos - rcDir / 2, rt.grc2xy) + rt.xyHalf xyPos = np.matmul(rcPos - rcDir / 2, rt.grc2xy) + rt.xyHalf
self.gl.scatter(*xyPos, color=color, size=40) # agent location self.gl.scatter(*xyPos, color=color, s=40) # agent location
xyDirLine = array([xyPos, xyPos + xyDir/2]).T # line for agent orient. xyDirLine = array([xyPos, xyPos + xyDir/2]).T # line for agent orient.
self.gl.plot(*xyDirLine, color=color, lw=5, ms=0, alpha=0.6) self.gl.plot(*xyDirLine, color=color, lw=5, ms=0, alpha=0.6)
......
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