Skip to content

Commit

Permalink
fixes intro plot (weighted mixed uses)
Browse files Browse the repository at this point in the history
  • Loading branch information
songololo committed Aug 16, 2023
1 parent 6142ba9 commit 74bf1b8
Show file tree
Hide file tree
Showing 7 changed files with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions docs/plots/plots.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
)
# custom colourmap
segment_harmonic_vals = nodes_gdf["cc_metric_segment_harmonic_800"]
mixed_uses_vals = nodes_gdf["cc_metric_hill_q0_400"]
mixed_uses_vals = nodes_gdf["cc_metric_hill_wt_q0_800"]
cmap = colors.LinearSegmentedColormap.from_list("cityseer", ["#64c1ff", "#d32f2f"])
segment_harmonic_vals = colors.Normalize()(segment_harmonic_vals)
segment_harmonic_cols = cmap(segment_harmonic_vals)
Expand Down Expand Up @@ -91,7 +91,7 @@

G_dual = graphs.nx_to_dual(G_simple)
plot.plot_nx_primal_or_dual(
G_simple, G_dual, plot_geoms=True, path=f"{IMAGES_PATH}/graph_dual.{FORMAT}", dpi=200, figsize=(5, 5)
G_simple, G_dual, plot_geoms=False, path=f"{IMAGES_PATH}/graph_dual.{FORMAT}", dpi=200, figsize=(5, 5)
)

# graph cleanup examples
Expand Down Expand Up @@ -217,6 +217,7 @@ def simple_plot(_G, _path, plot_geoms=True):

G = mock.mock_graph()
G_simple = graphs.nx_simple_geoms(G)
# below actually duplicates / overwrites same file...
G_dual = graphs.nx_to_dual(G_simple)
plot.plot_nx_primal_or_dual(
G_simple, G_dual, plot_geoms=False, path=f"{IMAGES_PATH}/graph_dual.{FORMAT}", dpi=200, figsize=(5, 5)
Expand Down
Binary file modified docs/public/images/cityseer_only_simplification.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/public/images/graph_cleaning_1b.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/public/images/graph_cleaning_5.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/public/images/graph_cleaning_6.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/public/images/intro_mixed_uses.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/public/images/osmnx_cityseer_simplification.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 74bf1b8

Please sign in to comment.