def _apply_style_colors(self, colors, kwds, col_num, label):
style = None<EOL>if self.style is not None:<EOL><INDENT>if isinstance(self.style, list):<EOL><INDENT>try:<EOL><INDENT>style = self.style[col_num]<EOL><DEDENT>except IndexError:<EOL><INDENT>pass<EOL><DEDENT><DEDENT>elif isinstance(self.style, dict):<EOL><INDENT>style = self.style.get(label, style)<EOL><DEDENT>else:<EOL><INDENT>style = self.style<EOL><DEDENT><DEDENT>has_color = '<STR_LIT>' in kwds or self.colormap is not None<EOL>nocolor_style = style is None or re.match('<STR_LIT>', style) is None<EOL>if (has_color or self.subplots) and nocolor_style:<EOL><INDENT>kwds['<STR_LIT>'] = colors[col_num % len(colors)]<EOL><DEDENT>return style, kwds<EOL>
Manage style and color based on column number and its label.
Returns tuple of appropriate style and kwds which "color" may be added.