Skip to content

Commit

Permalink
💬 Update type hints
Browse files Browse the repository at this point in the history
  • Loading branch information
arafune committed Mar 18, 2024
1 parent 1a076af commit 2e8cf70
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/arpes/plotting/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -632,7 +632,7 @@ def lineplot_arr(


def plot_arr(
arr: XrTypes,
arr: xr.DataArray,
ax: Axes | None = None,
over: AxesImage | None = None,
mask: XrTypes | None = None,
Expand Down Expand Up @@ -663,7 +663,7 @@ def imshow_mask(
mask: XrTypes,
ax: Axes | None = None,
over: AxesImage | None = None,
**kwargs: Incomplete,
**kwargs: Unpack[IMshowParam],
) -> None:
"""Plots a mask by using a fixed color and transparency."""
assert over is not None
Expand All @@ -672,7 +672,7 @@ def imshow_mask(
ax = plt.gca()
assert isinstance(ax, Axes)

default_kwargs = {
default_kwargs: IMshowParam = {
"origin": "lower",
"aspect": ax.get_aspect(),
"alpha": 1.0,
Expand Down Expand Up @@ -706,7 +706,7 @@ def imshow_arr(
"""Similar to plt.imshow but users different default origin, and sets appropriate extents.
Args:
arr (XrTypes): ARPES data
arr (xr.DataArray): ARPES data
ax (Axes): [TODO:description]
over ([TODO:type]): [TODO:description]
kwargs: pass to ax.imshow
Expand Down

0 comments on commit 2e8cf70

Please sign in to comment.