Skip to content

Commit

Permalink
Update ptable_trends.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrew-S-Rosen authored Feb 14, 2022
1 parent c933684 commit a784182
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions ptable_trends.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit a784182

Please sign in to comment.