Skip to content

Commit

Permalink
Remove anti pattern.
Browse files Browse the repository at this point in the history
  • Loading branch information
drvinceknight committed Mar 11, 2017
1 parent 57cdb80 commit 4d19db8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions axelrod/plot.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@
dataType = List[List[Union[int, float]]]


def default_cmap(version: str = "2.0") -> str:
def default_cmap(version: str = None) -> str:
"""Sets a default matplotlib colormap based on the version."""
if LooseVersion(version) >= "1.5":
if version is None or LooseVersion(version) >= "1.5":
return 'viridis'
return 'YlGnBu'

Expand Down

0 comments on commit 4d19db8

Please sign in to comment.