From e80fc33214a1418d5ac82f16fc883606985a3269 Mon Sep 17 00:00:00 2001 From: Sarthak Srivastava Date: Fri, 28 Jun 2024 18:38:25 +0530 Subject: [PATCH] Add Comment --- tardis/visualization/tools/interaction_radius_plot.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tardis/visualization/tools/interaction_radius_plot.py b/tardis/visualization/tools/interaction_radius_plot.py index ba26e69f0b6..96c33118fa0 100644 --- a/tardis/visualization/tools/interaction_radius_plot.py +++ b/tardis/visualization/tools/interaction_radius_plot.py @@ -149,6 +149,10 @@ def _make_colorbar_colors(self): Creates a list of colors corresponding to the species names. """ + # the colours depends on the species present in the model and what's requested + # some species need to be shown in the same colour, so the exact colours have to be + # worked out + color_list = [] species_keys = list(self._species_mapped.keys()) num_species = len(species_keys)