Skip to content

Commit 4d19db8

Browse files
committed
Remove anti pattern.
1 parent 57cdb80 commit 4d19db8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

axelrod/plot.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,9 @@
2626
dataType = List[List[Union[int, float]]]
2727

2828

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

0 commit comments

Comments
 (0)