plotly / orca

Command line application for generating static images of interactive plotly charts
MIT License
294 stars 40 forks source link

conversion fails with scatter3d #293

Open YurongYou opened 4 years ago

YurongYou commented 4 years ago

Hi,

I found I can save the 2d scene to image but could not do it on 3d, could you help me on this? i.e.

it works fine on

pio.write_image(go.Figure(data=[go.Scatter(
        x=[1],
        y=[1],)]),'simple_fig.png')

but on

pio.write_image(go.Figure(data=[go.Scatter3d(
        x=[1],
        y=[1],
        z=[1])]),'simple_fig.png')

I got

---------------------------------------------------------------------------
ValueError                                Traceback (most recent call last)
<ipython-input-45-251a0b097151> in <module>
      2         x=[1],
      3         y=[1],
----> 4         z=[1])]),'simple_fig.png')

~/anaconda3/envs/vis-utility/lib/python3.7/site-packages/plotly/io/_orca.py in write_image(fig, file, format, scale, width, height, validate)
   1765     # Do this first so we don't create a file if image conversion fails
   1766     img_data = to_image(
-> 1767         fig, format=format, scale=scale, width=width, height=height, validate=validate
   1768     )
   1769 

~/anaconda3/envs/vis-utility/lib/python3.7/site-packages/plotly/io/_orca.py in to_image(fig, format, width, height, scale, validate)
   1674 Unfortunately, we don't yet know of an easy way to install poppler on Windows.
   1675 """
-> 1676         raise ValueError(err_message)
   1677 
   1678 

ValueError: 
The image request was rejected by the orca conversion utility
with the following error:
   525: plotly.js error