diff --git a/docs/conf.py b/docs/conf.py index b3c25ec..624b918 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -24,7 +24,7 @@ project = "superblockify" copyright = "2023-2024, superblockify developers" author = "superblockify developers" -release = "1.0.0rc9" +release = "1.0.0rc10" # -- General configuration --------------------------------------------------- # https://www.sphinx-doc.org/en/master/usage/configuration.html#general-configuration diff --git a/superblockify/_version.py b/superblockify/_version.py index 8477503..83132b7 100644 --- a/superblockify/_version.py +++ b/superblockify/_version.py @@ -1,3 +1,3 @@ """superblockify package version.""" -__version__ = "1.0.0rc9" +__version__ = "1.0.0rc10" diff --git a/superblockify/metrics/distances.py b/superblockify/metrics/distances.py index 861f43e..952f179 100644 --- a/superblockify/metrics/distances.py +++ b/superblockify/metrics/distances.py @@ -156,7 +156,7 @@ def calculate_path_distance_matrix( [graph.nodes[node]["y"] for node in node_order], ), coord_title="Projected coordinates of nodes", - labels=("Longitude (m)", "Latitude (m)"), + labels=("x (m)", "y (m)"), distance_unit=unit_symbol, ) @@ -230,7 +230,7 @@ def calculate_euclidean_distance_matrix_projected( dist_title="Distribution of Euclidean distances", coords=(x_coord, y_coord), coord_title="Scatter plot of projected coordinates", - labels=("Longitude (m)", "Latitude (m)"), + labels=("x (m)", "y (m)"), ) return dist_matrix @@ -448,7 +448,7 @@ def calculate_partitioning_distance_matrix( [partitioner.graph.nodes[node]["y"] for node in node_order], ), coord_title="Projected coordinates of nodes", - labels=("Longitude (m)", "Latitude (m)"), + labels=("x (m)", "y (m)"), distance_unit=unit_symbol, ) diff --git a/superblockify/metrics/plot.py b/superblockify/metrics/plot.py index 8b24974..2ee5070 100644 --- a/superblockify/metrics/plot.py +++ b/superblockify/metrics/plot.py @@ -38,7 +38,9 @@ def plot_distance_distributions( # Plot distribution of distances axe[0].hist(dist_matrix.flatten(), bins=100) axe[0].set_title(dist_title) - axe[0].set_xlabel(f"Distance ({distance_unit})") + axe[0].set_xlabel( + "Travel time (s)" if distance_unit == "s" else f"Distance ({distance_unit})" + ) axe[0].set_ylabel("Count") # Plot scatter plot of lat/lon, aspect ratio should be 1:1 axe[1].set_aspect("equal")