From a7841829edc941b78a61365f52fab804c68d2344 Mon Sep 17 00:00:00 2001 From: "Andrew S. Rosen" Date: Sun, 13 Feb 2022 20:10:42 -0800 Subject: [PATCH] Update ptable_trends.py --- ptable_trends.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/ptable_trends.py b/ptable_trends.py index a1d70eb..563bf01 100644 --- a/ptable_trends.py +++ b/ptable_trends.py @@ -189,9 +189,10 @@ def ptable_plotter( else: color_list[element_index] = to_hex(color_scale[i]) - for k, v in elements["symbol"].iteritems(): - if v in special_elements: - color_list[k] = special_color + if special_elements: + for k, v in elements["symbol"].iteritems(): + if v in special_elements: + color_list[k] = special_color # Define figure properties for visualizing data source = ColumnDataSource(