Add #/5 text to categorical legends

This commit is contained in:
XANTRONIX 2025-03-31 23:03:23 -04:00
parent bbd07b7f3a
commit 5fd10a24a3

View file

@ -689,6 +689,17 @@ class SPCOutlookMap(EquirectMap):
kind: SPCOutlookType):
if kind is SPCOutlookType.CATEGORICAL:
colors = self.__category_colors__
colors = dict()
i = 0
for key in self.__category_colors__:
text = "%d/5 (%s)" % (i, key)
colors[text] = self.__category_colors__[key]
i += 1
elif kind is SPCOutlookType.PROBABILISTIC:
colors = dict()