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

Patch plotly pdf #348

Merged
merged 3 commits into from
Oct 20, 2021
Merged

Patch plotly pdf #348

merged 3 commits into from
Oct 20, 2021

Conversation

ttimbers
Copy link
Contributor

This PR reproducibly generates high resolution static plotly figures for the pdf. It depends on the reticulate + the python-kaleido package - which have been added to the Dockerfile. This means we need to now use the Docker image with the version v0.16.0 now. I have updated the build scripts to reflect this.

Note: I had to downsize the point size in the plotly figures to make them work for PDF. If they are now too smal for html (they are smaller, but I am not sure if it is too small) then we need to have the if statement also conditionally control the point size.

Closes:

@leem44
Copy link
Contributor

leem44 commented Oct 20, 2021

The plots look really good! Minor thing is it possible to make this one bigger? or the points smaller? It just looks a little jumbled, like hard to see where the lines go to the points etc and the plot itself is small relative to the axes' sizes Screen Shot 2021-10-20 at 11 09 51 AM

@ttimbers
Copy link
Contributor Author

AFAIK, I can't make the plot bigger, but I may be able to decrease the point size a little bit. These are not ideal plots for pdf...

@ttimbers
Copy link
Contributor Author

I have tried for as long as I can currently budget time to fix the point size in PDF programmatically, and I cannot. So for the classification plot I am resorting to a screenshot for now. But will open an issue that this is still not ideal.

@ttimbers ttimbers merged commit dad07d8 into dev Oct 20, 2021
@trevorcampbell trevorcampbell deleted the patch-plotly-pdf branch December 1, 2021 17:35
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

Successfully merging this pull request may close these issues.

2 participants