Skip to content

Commit 3c2205d

Browse files
Merge pull request #1900 from plotly/percy-imshow
added imshow visual test for percy
2 parents b5f72c8 + c0b7e5b commit 3c2205d

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

test/percy/plotly-express.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -341,6 +341,16 @@
341341
)
342342
fig.write_html(os.path.join(dir_name, "line_ternary.html"))
343343

344+
import plotly.express as px
345+
import numpy as np
346+
347+
img_rgb = np.array(
348+
[[[255, 0, 0], [0, 255, 0], [0, 0, 255]], [[0, 255, 0], [0, 0, 255], [255, 0, 0]]],
349+
dtype=np.uint8,
350+
)
351+
fig = px.imshow(img_rgb)
352+
fig.write_html(os.path.join(dir_name, "imshow.html"))
353+
344354
# #### 3D Coordinates
345355

346356
import plotly.express as px

0 commit comments

Comments
 (0)