-
Notifications
You must be signed in to change notification settings - Fork 446
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3501 from matsim-org/noiseAnalysis
Introduce DashboardUtils ...
- Loading branch information
Showing
7 changed files
with
61 additions
and
71 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
23 changes: 23 additions & 0 deletions
23
contribs/simwrapper/src/main/java/org/matsim/simwrapper/DashboardUtils.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
package org.matsim.simwrapper; | ||
|
||
import org.matsim.simwrapper.viz.GridMap; | ||
|
||
public class DashboardUtils { | ||
static final String DARK_BLUE = "#1175b3"; | ||
static final String LIGHT_BLUE = "#95c7df"; | ||
static final String ORANGE = "#f4a986"; | ||
static final String RED = "#cc0c27"; | ||
static final String SAND = "#dfb095"; | ||
static final String YELLOW = "#dfdb95"; | ||
|
||
public static void setGridMapStandards(GridMap viz, Data data, String crs) { | ||
viz.height = 12.0; | ||
viz.cellSize = 100; | ||
viz.opacity = 0.1; | ||
viz.maxHeight = 15; | ||
viz.projection = crs; | ||
viz.center = data.context().getCenter(); | ||
viz.zoom = data.context().mapZoomLevel; | ||
viz.setColorRamp(new double[]{30, 40, 50, 60, 70}, new String[]{DARK_BLUE, LIGHT_BLUE, YELLOW, SAND, ORANGE, RED}); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters