def color_cycle(colors=None):
if colors:<EOL><INDENT>return itertools.cycle(colors)<EOL><DEDENT>try:<EOL><INDENT>return itertools.cycle(p["<STR_LIT>"] for p in rcParams["<STR_LIT>"])<EOL><DEDENT>except KeyError:  <EOL><INDENT>return itertools.cycle(rcParams["<STR_LIT>"])<EOL><DEDENT>
An infinite iterator of the given (or default) colors