Add #/5 text to categorical legends
This commit is contained in:
parent
bbd07b7f3a
commit
5fd10a24a3
1 changed files with 11 additions and 0 deletions
|
@ -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()
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue