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

Improve rendering of matplotlib image in dark mode #1202

Open
glemaitre opened this issue Dec 14, 2024 · 1 comment
Open

Improve rendering of matplotlib image in dark mode #1202

glemaitre opened this issue Dec 14, 2024 · 1 comment
Labels
documentation Add or improve the documentation

Comments

@glemaitre
Copy link
Member

In dark mode, the text below figure is really close of the bottom of the figure. I think that we can change our css with a little trick:

/* sphinx-gallery */

/* add padding to images */
.bd-article img {
    height: unset !important;
    margin-top: 2%;
    margin-bottom: 2%;
}

We have something similar in scikit-learn by using padding but it is not super nice.

@jeromedockes jeromedockes added the documentation Add or improve the documentation label Dec 16, 2024
@jeromedockes
Copy link
Member

sounds good, why do we need the height: unset?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Add or improve the documentation
Projects
None yet
Development

No branches or pull requests

2 participants