Skip to content

Instantly share code, notes, and snippets.

@cjlovering
Last active December 8, 2020 18:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cjlovering/af6294a02c996eda450056a427b62625 to your computer and use it in GitHub Desktop.
Save cjlovering/af6294a02c996eda450056a427b62625 to your computer and use it in GitHub Desktop.
Fix "too many values" for seaborn.

If you use seaborn and have too many values for the style (more than 6), add dashes=False and set the markers:

filled_markers = ('o', 'v', '^', '<', '>', '8', 's', 'p', '*', 'h', 'H', 'D', 'd', 'P', 'X')
sns.lineplot(data=df, markers=filled_markers, dashes=False)

See mwaskom/seaborn#1513 (comment).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment