File tree Expand file tree Collapse file tree 1 file changed +6
-9
lines changed Expand file tree Collapse file tree 1 file changed +6
-9
lines changed Original file line number Diff line number Diff line change @@ -70,17 +70,14 @@ def find_in_lists(
70
70
left_list : Optional [List [str ]],
71
71
right_list : Optional [List [str ]],
72
72
) -> Optional [str ]:
73
- if left_list is not None :
74
- if i < len (left_list ):
75
- return left_list [i ]
76
- i -= len (left_labels )
77
- if right_list is not None and i >= 0 :
78
- return right_list [i ]
79
73
return None
80
74
81
- label = find_in_lists (i , left_labels , right_labels )
82
- if label is not None :
83
- new_series ["label" ] = label
75
+ if left_labels is not None and i < nb_left :
76
+ new_series ["label" ] = left_labels [i ]
77
+ if i >= nb_left :
78
+ if right_labels is not None :
79
+ new_series ["label" ] = right_labels [i - nb_left ]
80
+ new_series ["scale" ] = "right_axis"
84
81
85
82
# scale = find_in_lists(i, left_scales, right_scales)
86
83
# if scale is not None:
You can’t perform that action at this time.
0 commit comments