Skip to content

Enhance to_jshtml with frame_format parameter#31430

Draft
CarlGao4 wants to merge 1 commit intomatplotlib:mainfrom
CarlGao4:patch-1
Draft

Enhance to_jshtml with frame_format parameter#31430
CarlGao4 wants to merge 1 commit intomatplotlib:mainfrom
CarlGao4:patch-1

Conversation

@CarlGao4
Copy link
Copy Markdown

PR summary

Added frame_format parameter to to_jshtml method for specifying image format in HTML output.

AI Disclosure

Only commit message is generated with AI

PR checklist

Added frame_format parameter to to_jshtml method for specifying image format in HTML output.
@github-actions
Copy link
Copy Markdown

Thank you for opening your first PR into Matplotlib!

If you have not heard from us in a week or so, please leave a new comment below and that should bring it to our attention. Most of our reviewers are volunteers and sometimes things fall through the cracks. We also ask that you please finish addressing any review comments on this PR and wait for it to be merged (or closed) before opening a new one, as it can be a valuable learning experience to go through the review process.

You can also join us on gitter for real-time discussion.

For details on testing, writing docs, and our review process, please see the developer guide.
Please let us know if (and how) you use AI, it will help us give you better feedback on your PR.

We strive to be a welcoming and open project. Please follow our Code of Conduct.

@story645
Copy link
Copy Markdown
Member

Thanks for the PR, but I'm not following what it does. Can you provide a screenshot/screen cast of what this does?

@melissawm melissawm moved this to Waiting for author in First Time Contributors Mar 31, 2026
@CarlGao4
Copy link
Copy Markdown
Author

CarlGao4 commented Apr 1, 2026

Currently we can't set the image format of to_jshtml function. Usually I use %config InlineBackend.figure_format = 'svg' so the image could be clearer, but when using aminated images, I find no way to generate svg image seqences embedded into the file, it was locked to png.

Using PNG:
image

Using SVG:
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Status: Waiting for author

Development

Successfully merging this pull request may close these issues.

3 participants