From 3d067158ed6e5993e3555207a45c852a69dc8869 Mon Sep 17 00:00:00 2001
From: "Egli Adrian (IT-SCI-API-PFI)" <adrian.egli@sbb.ch>
Date: Mon, 30 Sep 2019 23:40:05 +0200
Subject: [PATCH] rendering city

---
 flatland/utils/graphics_pil.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/flatland/utils/graphics_pil.py b/flatland/utils/graphics_pil.py
index 0597f4e2..8774158c 100644
--- a/flatland/utils/graphics_pil.py
+++ b/flatland/utils/graphics_pil.py
@@ -513,7 +513,7 @@ class PILSVG(PILGL):
 
             city_size = 1
             if num_agents is not None:
-                city_size = max(1,np.log(1+num_agents))
+                city_size = max(1,np.log(1+num_agents)/1.5)
 
             if binary_trans == 0:
                 if self.background_grid[col][row] <= 4 + np.ceil(((col * row + col) % 10)/city_size):
-- 
GitLab