Skip to content

Commit

Permalink
Merge pull request #46 from wch/remove-setuptools
Browse files Browse the repository at this point in the history
Write colorbrewer palettes to .py file and remove setuptools dependency
  • Loading branch information
jiffyclub authored Apr 6, 2023
2 parents 7df1908 + e12e557 commit 12509bd
Show file tree
Hide file tree
Showing 5 changed files with 10,119 additions and 10,121 deletions.
6 changes: 1 addition & 5 deletions palettable/colorbrewer/colorbrewer.py
Original file line number Diff line number Diff line change
@@ -1,18 +1,14 @@
from __future__ import absolute_import
from __future__ import print_function

import json
import webbrowser

from pkg_resources import resource_string

from ..palette import Palette
from .colorbrewer_all_schemes import COLOR_MAPS

__all__ = ('COLOR_MAPS', 'print_maps', 'print_all_maps', 'print_maps_by_type',
'get_map', 'MAP_TYPES', 'BrewerMap')

f = resource_string(__name__, 'data/colorbrewer_all_schemes.json')
COLOR_MAPS = json.loads(f.decode('ascii'))

MAP_TYPES = ('sequential', 'diverging', 'qualitative')

Expand Down
Loading

0 comments on commit 12509bd

Please sign in to comment.