Skip to content

Commit

Permalink
fixed small bug where colors are stored as tuples instead of lists
Browse files Browse the repository at this point in the history
  • Loading branch information
mmedl94 committed Dec 9, 2024
1 parent 3c8038a commit 7fa52d0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions inst/python/interactive_tour.py
Original file line number Diff line number Diff line change
Expand Up @@ -152,11 +152,11 @@ def get_colors(self, color_scale):
else:
cmap = plt.get_cmap("plasma")
values = np.linspace(0, 1, self.n_subsets)
colors = [cmap(value) for value in values]
colors = [list(cmap(value)) for value in values]
else:
cmap = plt.get_cmap(color_scale)
values = np.linspace(0, 1, self.n_subsets)
colors = [cmap(value) for value in values]
colors = [list(cmap(value)) for value in values]
return colors

def initialize_subselections(self):
Expand Down

0 comments on commit 7fa52d0

Please sign in to comment.