Skip to content

Commit

Permalink
fix(colorobj): Ensure that LegendParameters.segment_count is respected
Browse files Browse the repository at this point in the history
  • Loading branch information
chriswmackey authored and Chris Mackey committed Mar 18, 2024
1 parent 496b5be commit 30d201d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion honeybee/colorobj.py
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,8 @@ def graphic_container(self):

# produce legend parameters with an ordinal dict for the attributes
l_par = self.legend_parameters.duplicate()
l_par.segment_count = len(self._attributes_unique)
if l_par.is_segment_count_default:
l_par.segment_count = len(self._attributes_unique)
l_par.ordinal_dictionary = attr_dict
if l_par.is_title_default:
l_par.title = self.attr_name_end.replace('_', ' ').title()
Expand Down

0 comments on commit 30d201d

Please sign in to comment.