8000 improve docstring · samaffolter/plotly.py@c0247d2 · GitHub
[go: up one dir, main page]

Skip to content

Commit c0247d2

Browse files
committed
improve docstring
1 parent 03ce500 commit c0247d2

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,9 @@ def imshow(
251251
tune the level of compression. 0 means no compression (not recommended).
252252
253253
binary_format: str, 'png' (default) or 'jpg'
254-
compression format used to generate b64 string
254+
compression format used to generate b64 string. 'png' is recommended
255+
since it uses lossless compression, but 'jpg' (lossy) compression can
256+
result if smaller binary strings for natural images.
255257
256258
Returns
257259
-------

0 commit comments

Comments
 (0)
0