Skip to content

Commit

Permalink
AMD
Browse files Browse the repository at this point in the history
  • Loading branch information
christianbrodbeck committed Jul 1, 2021
1 parent b0ce2d3 commit f31433d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion eelbrain/plot/_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@
# Types
CMapArg = Any
ColorArg = Any
LegendArg = Union[str, int, Tuple[float, float], False, None]
LegendArg = Optional[Union[str, int, Tuple[float, float], bool]]


class PlotType(Enum):
Expand Down Expand Up @@ -3025,6 +3025,9 @@ def plot_legend(
elif loc is None:
choice = 0
arg = False
elif loc is True:
choice = 3
arg = 'best'
elif isinstance(loc, Sequence) and not isinstance(loc, str):
choice = 0
arg = loc
Expand Down

0 comments on commit f31433d

Please sign in to comment.