From 4aae6dae163927f4c4fc3292067747dbdb4d24b2 Mon Sep 17 00:00:00 2001 From: frievoe97 Date: Mon, 6 May 2024 11:08:49 +0200 Subject: [PATCH] added breakpoints and colors to GridMap --- .../simwrapper/dashboard/NoiseDashboard.java | 40 +++++++++---------- 1 file changed, 19 insertions(+), 21 deletions(-) diff --git a/contribs/simwrapper/src/main/java/org/matsim/simwrapper/dashboard/NoiseDashboard.java b/contribs/simwrapper/src/main/java/org/matsim/simwrapper/dashboard/NoiseDashboard.java index bc2eff09325..2d2f3a5070b 100644 --- a/contribs/simwrapper/src/main/java/org/matsim/simwrapper/dashboard/NoiseDashboard.java +++ b/contribs/simwrapper/src/main/java/org/matsim/simwrapper/dashboard/NoiseDashboard.java @@ -32,23 +32,10 @@ public void configure(Header header, Layout layout) { header.title = "Noise"; header.description = "Shows the noise footprint and spatial distribution."; - layout.row("links") + layout.row("aggregate noise") .el(GridMap.class, (viz, data) -> { - viz.title = "Noise Immissions"; - viz.description = "Noise Immissions per hour"; - viz.height = 12.0; - viz.cellSize = 250; - viz.opacity = 0.2; - viz.maxHeight = 20; - viz.center = data.context().getCenter(); - viz.zoom = data.context().mapZoomLevel; - viz.setColorRamp(new double[]{40, 50, 60}, new String[]{"#1175b3", "#95c7df", "#f4a986", "#cc0c27"}); - viz.file = data.computeWithPlaceholder(NoiseAnalysis.class, "immission_per_hour.%s", "avro"); - }); - layout.row("links2") - .el(GridMap.class, (viz, data) -> { - viz.title = "Noise Immissions"; - viz.description = "Noise Immissions per day"; + viz.title = "Noise Immissions (Grid)"; + viz.description = "Aggregate Noise Immissions per day"; viz.height = 12.0; viz.cellSize = 250; viz.opacity = 0.2; @@ -57,12 +44,10 @@ public void configure(Header header, Layout layout) { viz.zoom = data.context().mapZoomLevel; viz.setColorRamp(new double[]{40, 50, 60}, new String[]{"#1175b3", "#95c7df", "#f4a986", "#cc0c27"}); viz.file = data.computeWithPlaceholder(NoiseAnalysis.class, "immission_per_day.%s", "avro"); - }); - - layout.row("links3") + }) .el(MapPlot.class, (viz, data) -> { - viz.title = "Noise Emissions"; - viz.description = "Noise Emmissions per day"; + viz.title = "Noise Emissions (Link)"; + viz.description = "Aggregate Noise Emissions per day"; viz.height = 12.0; viz.center = data.context().getCenter(); viz.zoom = data.context().mapZoomLevel; @@ -80,5 +65,18 @@ public void configure(Header header, Layout layout) { viz.display.lineWidth.scaleFactor = 8d; viz.display.lineWidth.join = "Link Id"; }); + layout.row("hourly noise") + .el(GridMap.class, (viz, data) -> { + viz.title = "Hourly Noise Immissions (Grid)"; + viz.description = "Noise Immissions per hour"; + viz.height = 12.0; + viz.cellSize = 250; + viz.opacity = 0.2; + viz.maxHeight = 20; + viz.center = data.context().getCenter(); + viz.zoom = data.context().mapZoomLevel; + viz.setColorRamp(new double[]{40, 50, 60}, new String[]{"#1175b3", "#95c7df", "#f4a986", "#cc0c27"}); + viz.file = data.computeWithPlaceholder(NoiseAnalysis.class, "immission_per_hour.%s", "avro"); + }); } }