From 3dc53dacffc9a0d3134d49b9df20333f3408946a Mon Sep 17 00:00:00 2001 From: hagrid67 <jdhwatson@gmail.com> Date: Fri, 26 Apr 2019 12:09:27 +0100 Subject: [PATCH] replaced size with s in scatter call --- flatland/utils/rendertools.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/flatland/utils/rendertools.py b/flatland/utils/rendertools.py index edf5292..1444645 100644 --- a/flatland/utils/rendertools.py +++ b/flatland/utils/rendertools.py @@ -21,6 +21,7 @@ class MPLGL(GraphicsLayer): plt.plot(*args, **kwargs) def scatter(self, *args, **kwargs): + print(args, kwargs) plt.scatter(*args, **kwargs) def text(self, *args, **kwargs): @@ -208,7 +209,7 @@ class RenderTool(object): xyDir = np.matmul(rcDir, rt.grc2xy) # agent direction in xy 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. self.gl.plot(*xyDirLine, color=color, lw=5, ms=0, alpha=0.6) -- GitLab