-
-
Notifications
You must be signed in to change notification settings - Fork 43
Open
Description
If I want to create an offline plot that contains the plotly Scattergl command I get an error message.
Consider the example below (which is run through a jupyter notebook with linux host and windows guest):
import plotly.io as pio
import plotly.graph_objs as go
traces = []
traces.append(
go.Scattergl(
y=[1, 3, 2]))
layout = go.Layout(
width=800)
fig = go.Figure(data=traces, layout=layout)
# Plot and embed in ipython notebook
pio.write_image(fig, "simple_fig.png")
This will give the following error:
---------------------------------------------------------------------------
ValueError Traceback (most recent call last)
<ipython-input-10-92d1a9d074fc> in <module>()
14
15 # Plot and embed in ipython notebook
---> 16 pio.write_image(fig, "simple_fig.png")
~/usr/local/lib/python3.6/site-packages/plotly/io/_orca.py in write_image(fig, file, format, scale, width, height, validate)
1483 width=width,
1484 height=height,
-> 1485 validate=validate)
1486
1487 # Open file
~/usr/local/lib/python3.6/site-packages/plotly/io/_orca.py in to_image(fig, format, width, height, scale, validate)
1388 Unfortunately, we don't yet know of an easy way to install poppler on Windows.
1389 """
-> 1390 raise ValueError(err_message)
1391
1392
ValueError:
The image request was rejected by the orca conversion utility
with the following error:
525: plotly.js error
Changing Scattergl to Scatter will make the example work.
Metadata
Metadata
Assignees
Labels
No labels