Skip to content

Commit 039cb80

Browse files
region blocks to avoid execution
1 parent 4d60f5b commit 039cb80

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Diff for: doc/python/static-image-export.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,7 @@ fig.write_image("images/fig1.eps")
157157

158158
**Note:** It is important to note that any figures containing WebGL traces (i.e. of type `scattergl`, `heatmapgl`, `contourgl`, `scatter3d`, `surface`, `mesh3d`, `scatterpolargl`, `cone`, `streamtube`, `splom`, or `parcoords`) that are exported in a vector format will include encapsulated rasters, instead of vectors, for some parts of the image.
159159

160+
<!-- #region -->
160161
### Install orca on Google Colab
161162
```
162163
!pip install plotly>=4.7.1
@@ -170,7 +171,6 @@ Once this is done you can use this code to make, show and export a figure:
170171
```python
171172
import plotly.graph_objects as go
172173
fig = go.Figure( go.Scatter(x=[1,2,3], y=[1,3,2] ) )
173-
fig.show()
174174
fig.write_image("fig1.svg")
175175
fig.write_image("fig1.png")
176176
```
@@ -182,6 +182,7 @@ from google.colab import files
182182
files.download('fig1.svg')
183183
files.download('fig1.png')
184184
```
185+
<!-- #endregion -->
185186

186187
### Get Image as Bytes
187188
The `plotly.io.to_image` function is used to return an image as a bytes object. You can also use the `.to_image` graph object figure method.

0 commit comments

Comments
 (0)