Skip to content

Download button -> pdf instead of png? #3254

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

Closed
srosenzweig09 opened this issue Aug 17, 2021 · 3 comments
Closed

Download button -> pdf instead of png? #3254

srosenzweig09 opened this issue Aug 17, 2021 · 3 comments

Comments

@srosenzweig09
Copy link

Problem

I love the toolbar that accompanies figures, especially since I can click to save them directly to my local drive (I work remotely). Currently, the download button defaults to .png file type. I would love the option to set this button to download as .pdf file types. Is this possible? Thanks!

@martinRenou
Copy link
Member

Is this for ipympl specifically? I see that you opened matplotlib/ipympl#339 already. If this is only for ipympl, then please close this issue in ipywidgets :)

@srosenzweig09
Copy link
Author

Hi, so I'm not sure, honestly. Here is the procedure:

%matplotlib widget
import Matplotlib.pyplot as plt

fig, ax = plt.subplots()
** plot something **

A figure appears with a toolbar, as shown here:

Screen Shot 2021-08-17 at 11 23 15 AM

Clicking on the "Save" button downloads to my local drive. I'm not sure whether this is an ipympl or matplotlib mechanism... I just figured I'd post to a couple of places and see if anyone has an answer.

@martinRenou
Copy link
Member

This is more likely to be an issue related to ipympl, or maybe matplotlib. But I believe this is unrelated to ipywidgets.

I answered to the ipympl one, let's continue to chat there :)

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

2 participants