Skip to content
Merged
Changes from 1 commit
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
Prev Previous commit
show_cmaps bugfix
  • Loading branch information
lukelbd committed Jan 7, 2020
commit 2b80888ca34d55d018643864f5131fdd8306bbac
2 changes: 1 addition & 1 deletion proplot/styletools.py
Original file line number Diff line number Diff line change
Expand Up @@ -3555,7 +3555,7 @@ def show_cmaps(*args, N=None, unknown='User', **kwargs):
# Get dictionary of registered colormaps and their categories
cmapdict = {}
names_all = list(map(str.lower, names))
names_known = sum(CMAPS_TABLE.values(), [])
names_known = sum(map(list, CMAPS_TABLE.values()), [])
cmapdict[unknown] = [name for name in names if name not in names_known]
for cat, names in CMAPS_TABLE.items():
cmapdict[cat] = [name for name in names if name.lower() in names_all]
Expand Down