Skip to content

Commit

Permalink
fixed TypeError for crange
Browse files Browse the repository at this point in the history
  • Loading branch information
Merlin committed May 24, 2015
1 parent 7dc4747 commit cc01dfe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mpltools/color.py
Expand Up @@ -166,7 +166,7 @@ def colors_from_cmap(length=50, cmap=None, start=None, stop=None):
if isinstance(cmap, str):
cmap = getattr(plt.cm, cmap)

crange = CMAP_RANGE.get(cmap.name, (0, 1))
crange = list(CMAP_RANGE.get(cmap.name, (0, 1)))
if start is not None:
crange[0] = start
if stop is not None:
Expand Down

0 comments on commit cc01dfe

Please sign in to comment.