Skip to content

Commit dd21b48

Browse files
committed
version added in tutorial
1 parent eeb1988 commit dd21b48

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

doc/python/imshow.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -343,6 +343,8 @@ fig.show(config={'modeBarButtonsToAdd':['drawline',
343343

344344
### Passing image data as a binary string
345345

346+
_introduced in plotly.py 4.10_
347+
346348
`px.imshow` can pass the data to the figure object either as a list of numerical values, or as a png binary string which is passed directly to the browser. While the former solution offers more flexibility (values can be of float or int type, while values are rescaled to the range [0-255] for an image string), using a binary string is usually faster for large arrays. The parameter `binary_string` controls whether the image is passed as a png string (when `True`) or a list of values (`False`). Its default value is `True` for multi-channel images and `False` for single-channel images. When `binary_string=True`, image data are always represented using a `go.Image` trace.
347349

348350
```python

0 commit comments

Comments
 (0)