Skip to content

Commit ec9ef7c

Browse files
committed
Use matplotlib.image.FigureImage
1 parent 96d477f commit ec9ef7c

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/mslice/plotting/pyplot.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@
2626
import matplotlib
2727
import matplotlib.colorbar
2828
import matplotlib.image
29-
from matplotlib.image import FigureImage
3029
from matplotlib import _api
3130
from matplotlib import rcsetup, style
3231
from matplotlib import _pylab_helpers, interactive
@@ -2185,7 +2184,7 @@ def figimage(
21852184
origin: Literal["upper", "lower"] | None = None,
21862185
resize: bool = False,
21872186
**kwargs,
2188-
) -> FigureImage:
2187+
) -> matplotlib.image.FigureImage:
21892188
return gcf().figimage(
21902189
X,
21912190
xo=xo,

0 commit comments

Comments
 (0)