Skip to content

[ENH]: hi-res plot directive... #25497

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
jklymak opened this issue Mar 18, 2023 · 0 comments · Fixed by #25515
Closed

[ENH]: hi-res plot directive... #25497

jklymak opened this issue Mar 18, 2023 · 0 comments · Fixed by #25515

Comments

@jklymak
Copy link
Member

jklymak commented Mar 18, 2023

Problem

Our plot directive makes 100-dpi figures for the webpage. These look pretty fuzzy on hiDPI screens, and we should do what we did for sphinx gallery and allow hi-res figures..

Proposed solution

Not quite sure how to fix this. We currently make a .. figure:: from the plot directive, which is exactly the same as a .. image:: except it allows a caption. Internally, we use the caption functionality exactly once. If we could drop the caption we could just use .. sg-image:: from sphinx gallery, which allows srcset multiple resolution images.

Just increasing the dpi doesn't really work because it makes the images twice as big, but still low resolution, unless we have specified the :width: manually.

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

Successfully merging a pull request may close this issue.

2 participants