I've checked a few threads already, like: itertools.cycle().next()?
but can't seem to make heads or tails of this. I have a pandas datafrom consisting of several rows, each of which are just lists of number and want to use seaborn.distplot to put them all on the same axis and just cycle through a standard color palette.
i'm currently trying:
palette = sns.color_palette()
sns.distplot(data_pandas, color = next(iter.cycle(palette)))
and getting:
Traceback (most recent call last):
File "multiBx_single_plot.py", line 105, in <module>
sns.distplot(data_pandas, color = next(iter.cycle(palette)))
AttributeError: 'builtin_function_or_method' object has no attribute 'cycle'
I've tried a few other methods, all of which fail. any help would be much appreciated. I don't want to have to assign colors manually...
cheers,
jake