Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added new version of Tableau 10 palette to tableau.py #51

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions palettable/tableau/tableau.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
palette_type = 'qualitative'

palette_names = [
'Tableau_10_New'
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This needs a comma to end the line, but otherwise I think this looks good!

Suggested change
'Tableau_10_New'
'Tableau_10_New',

'Tableau_10',
'TableauLight_10',
'TableauMedium_10',
Expand All @@ -36,6 +37,17 @@
lookup = dict((name.lower(), i) for i, name in enumerate(palette_names))

colors_rgb = [
# Tableau 10 New
[[78, 121, 167],
[242, 142, 43],
[225, 87, 89],
[118, 183, 178],
[89, 161, 78],
[237, 201, 73],
[175, 122, 161],
[255, 157, 167],
[156, 117, 95],
[156, 117, 95]],
# Tableau 10
[[ 31, 119, 180],
[255, 127, 14],
Expand Down