Matplotlib
Databricks Runtime affiche les figures Matplotlib en ligne.
Exemple de Notebook : Matplotlib
Le Notebook suivant montre comment afficher des figures Matplotlib dans des Notebooks Python.
Matplotlib Python Notebook
Rendre les images en plus haute résolution
Vous pouvez rendre les images matplotlib dans les Notebook Python à double la résolution standard, offrant ainsi aux utilisateurs d'écrans haute résolution une meilleure expérience de visualisation. Définissez l'un des éléments suivants dans une cellule de Notebook :
retina option :
Python
%config InlineBackend.figure_format = 'retina'
from IPython.display import set_matplotlib_formats
set_matplotlib_formats('retina')
png2xoption :
Python
%config InlineBackend.figure_format = 'png2x'
from IPython.display import set_matplotlib_formats
set_matplotlib_formats('png2x')
Pour revenir à la résolution standard, ajoutez ce qui suit à une cellule de Notebook :
Python
set_matplotlib_formats('png')
%config InlineBackend.figure_format = 'png'