skrub icon indicating copy to clipboard operation
skrub copied to clipboard

Improve rendering of matplotlib image in dark mode

Open glemaitre opened this issue 1 year ago • 1 comments

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.

glemaitre avatar Dec 14 '24 22:12 glemaitre

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

jeromedockes avatar Dec 16 '24 13:12 jeromedockes