Skip to content

Commit

Permalink
Fix get_style
Browse files Browse the repository at this point in the history
  • Loading branch information
jochenklar committed Dec 6, 2023
1 parent 140bb21 commit f581cdd
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion isimip_qa/mixins/plots.py
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,11 @@ def get_label(self, i):

def get_style(self, i):
if self.dimensions:
label = self.permutations[i][self.grid:]
if self.figs > 0:
label = self.permutations[i][self.grid:-self.figs]
else:
label = self.permutations[i][self.grid:]

if label not in self.styles:
index = len(self.styles.keys())
color_index = index % len(self.colors)
Expand Down

0 comments on commit f581cdd

Please sign in to comment.