diff --git a/src/View/Results/PlotRKC.py b/src/View/Results/PlotRKC.py index 8c8f3c40..0c8e19d4 100644 --- a/src/View/Results/PlotRKC.py +++ b/src/View/Results/PlotRKC.py @@ -76,11 +76,14 @@ class PlotRKC(PamhyrPlot): @staticmethod def reach_geometry(reach): """Return geometry values for profiles present in the results.""" + # The study's enabled profiles can change after a calculation. Keep + # coordinates in the same order as the result profiles and columns. + profiles = reach.profiles return ( - reach.geometry.get_rk_enabled_profiles(), - reach.geometry.get_z_min_enabled_profiles(), - reach.geometry.get_z_max_enabled_profiles() - ) + [profile.rk for profile in profiles], + [profile.geometry.z_min() for profile in profiles], + [profile.geometry.z_max() for profile in profiles], + ) @timer def draw(self, highlight=None):