Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit e667b1a

Browse filesBrowse files
authored
mention PIL in Layout image tutorial (plotly#2004)
1 parent 39ac9f3 commit e667b1a
Copy full SHA for e667b1a

File tree

Expand file treeCollapse file tree

1 file changed

+5
-0
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+5
-0
lines changed

‎doc/python/images.md

Copy file name to clipboardExpand all lines: doc/python/images.md
+5Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,11 @@ jupyter:
3737

3838
In this page we explain how to add static, non-interactive images as background, logo or annotation images to a figure. For exploring image data in interactive charts, see the [tutorial on displaying image data](/python/imshow).
3939

40+
A background image can be added to the layout of a figure with
41+
`fig.add_layout_image` or by setting the `images` parameter of `go.Layout`. The
42+
`source` attribute of a `go.layout.Image` can be the URL of an image, or a PIL
43+
Image object (`from PIL import Image; img = Image.open('filename.png')`).
44+
4045
```python
4146
import plotly.graph_objects as go
4247

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.