We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7f50aff commit 3ff0243Copy full SHA for 3ff0243
packages/python/plotly/plotly/express/_imshow.py
@@ -346,7 +346,7 @@ def imshow(
346
binary_string = img.ndim >= (3 + slice_dimensions) and not is_dataframe
347
348
# Cast bools to uint8 (also one byte)
349
- if img.dtype == np.bool:
+ if img.dtype == np.bool_:
350
img = 255 * img.astype(np.uint8)
351
352
if range_color is not None:
0 commit comments