Skip to content

Commit

Permalink
Merge pull request #354 from materialsproject/legend-patch-1
Browse files Browse the repository at this point in the history
Update legend.py
  • Loading branch information
yang-ruoxi authored Jul 15, 2023
2 parents 577f3be + c915d06 commit fb7118d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crystal_toolkit/core/legend.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ def __init__(
for p in site_collection.site_properties[color_scheme]
if p is not None
]
prop_max = max(abs(min(props)), props)
prop_max = max([abs(min(props)), max(props)])
prop_min = -prop_max
cmap_range = (prop_min, prop_max)

Expand Down

0 comments on commit fb7118d

Please sign in to comment.