probabl-ai / skore

Skore lets you "Own Your Data Science." It provides a user-friendly interface to track and visualize your modeling results, and perform evaluation of your machine learning models with scikit-learn.
https://probabl-ai.github.io/skore/
MIT License
70 stars 7 forks source link

fix(docs): Augment dpi of matplotlib in conf.py #675

Open sylvaincom opened 1 week ago

sylvaincom commented 1 week ago

Following https://github.com/probabl-ai/skore/issues/672, we could augment the dpi of maptlotlib by changing the rcParams, for instance doing an import in the conf.py

Edit: I had this in mind for matplotlib: rcParams that allows to configure the fig size for all plots, and there is also something for the dpi https://matplotlib.org/stable/users/explain/customizing.html

import matplotlib as mpl
import matplotlib.pyplot as plt
import numpy as np

mpl.rcParams['figure.dpi'] = 200

plt.plot(np.arange(10))
plt.show()