Is it possible to lineplot more than 6 columns with seaborn?

Rafael picture Rafael · Oct 8, 2018 · Viewed 7.9k times · Source

Is it possible to plot more than 6 columns using seaborn.lineplot?

When I try to plot it I receive following error message:

These `style` levels are missing dashes: {'LOGAN', 'HB20S', 'GOL'}

It works if I index the dataframe for 6 columns.

Here's the code that works:

sns.lineplot(data=movida_2.iloc[:,:6])

Answer

Thilo picture Thilo · Nov 20, 2018

The problem is that lineplot uses dashed lines for the second and any further column but the standard style only supports dashes for the first 6 colors.

This should work for you:

sns.lineplot(data=movida_2, dashes=False)