From 54ad2a8e844cc96257607320e1a4c6a7a76de8c0 Mon Sep 17 00:00:00 2001 From: ki-n-n Date: Thu, 26 Sep 2024 21:02:20 +0900 Subject: [PATCH] simulation_colab.py --- people_flow/simulation_colab.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/people_flow/simulation_colab.py b/people_flow/simulation_colab.py index 56746ff..541a4cc 100755 --- a/people_flow/simulation_colab.py +++ b/people_flow/simulation_colab.py @@ -375,8 +375,8 @@ def __paint(self, x, target, on_paint): ax.add_patch(obj) else: # 出口の描画 - exit = pt.Rectangle(xy=(target[i, 0] - self.R / 2, target[i, 1]), width=self.R / 2, - height=self.R / 2, fc='r', ec='r', fill=True) + entrance = pt.Rectangle(xy=(self.wall_x * 0.45, self.wall_y * 0.99), width=self.wall_x * 0.1, + height=self.wall_y * 0.01, fc='r', ec='r', fill=True) ax.add_patch(exit) # 入口の描画 entrance = pt.Rectangle(xy=(self.wall_x * 0.45, self.wall_y * 0.99), width=self.wall_x * 0.1,