Skip to content

Commit 3ff0243

Browse files
committed
fix issue plotly#3403 deprecated numpy.bool
1 parent 7f50aff commit 3ff0243

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/python/plotly/plotly/express/_imshow.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -346,7 +346,7 @@ def imshow(
346346
binary_string = img.ndim >= (3 + slice_dimensions) and not is_dataframe
347347

348348
# Cast bools to uint8 (also one byte)
349-
if img.dtype == np.bool:
349+
if img.dtype == np.bool_:
350350
img = 255 * img.astype(np.uint8)
351351

352352
if range_color is not None:

0 commit comments

Comments
 (0)