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

feat: exporting plots in high and custom resolution #103

Open
abast opened this issue Jan 15, 2024 · 3 comments
Open

feat: exporting plots in high and custom resolution #103

abast opened this issue Jan 15, 2024 · 3 comments
Labels
enhancement New feature or request

Comments

@abast
Copy link

abast commented Jan 15, 2024

I would like to use panels from jupyter-scatter as is for figures in a publication. Is it possible to export to png in high resolution?

@flekschas
Copy link
Owner

It is possible to export to PNG. Simply click on the button with the download icon on the left side.

To maximize the resolution I recommend the following:
0. If you have multiple screens, move the browser to the screen with the highest pixel density

  1. Maximize the width of the Jupyter cell by maximizing the browser width and collapsing the Jupyter side bar
  2. Choose a large scatter height

tl/dr: The resolution of the downloaded image depends on your screen and browser window size. Or in other words, the PNG download follows the "what you see is what you get" approach. So to download a high resolution PNG you have to maximize the browser window and scatter height. And ideally use a screen with a high pixel density. Unfortunately there isn't any other way at the moment to set the PNG resolution directly but I have ideas for how to support this in the future.

Note that this currently only downloads a PNG per instance, so if you composed multiple instances, you have to download an image per instance by clicking on each instance's download button.

@abast
Copy link
Author

abast commented Jan 16, 2024

Thanks for your answer! This solves my issue for now. Some functionality to change the exported resolution independently of the screen would be a great feature in my opinion.

@flekschas flekschas changed the title exporting plots in high resolution Jan 16, 2024
@flekschas
Copy link
Owner

I 💯% agree! I have some ideas how to accomplish this but I can't give any timeline when the new feature will land.

@flekschas flekschas added the enhancement New feature or request label Jan 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
2 participants