Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Poor quality (Plotly) image export in container #147

Open
McPonolith opened this issue Oct 6, 2022 · 0 comments
Open

Poor quality (Plotly) image export in container #147

McPonolith opened this issue Oct 6, 2022 · 0 comments

Comments

@McPonolith
Copy link

Hi,

Im attempting to make the plotly image export match as close as possible to the interactive chart. One issue Im running into is when running the following python script on my Macbook I am getting an image more representative to the interactive plot than when I run into within the container. Considering Kaleido explicitly states it just works in containers (Ive also tried ubuntu:latest), I feel like there is some missing instructions in the documentation as to how to make the container image look like the Macbook image, potentially and missing dependency, or system config?

Macbook

plot_macos

Container

plot_container

Notice the large marker size, there are others but this it the most identifiable
Reproducible scripts have been attached.

FROM python:3.7.12
WORKDIR /app
RUN pip install plotly kaleido
CMD python ./scatter3d.py
from plotly.io import write_image, kaleido
write_image(plot, './plot.png', width=1300, height=350)
print('done')
docker compose up --build

large_marker_issue.zip

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant