Anteckning
Åtkomst till den här sidan kräver auktorisering. Du kan prova att logga in eller ändra kataloger.
Åtkomst till den här sidan kräver auktorisering. Du kan prova att ändra kataloger.
Databricks Runtime visar Matplotlib-figurer inbäddade.
Notebook-exempel: Matplotlib
Följande notebook-fil visar hur du visar Matplotlib-figurer i Python-notebook-filer.
Matplotlib Python-notebook
Rendera bilder med högre upplösning
Du kan återge matplotlib-bilder i Python-notebook-filer med dubbel standardupplösning, vilket ger användare av högupplösta skärmar en bättre visualiseringsupplevelse. Ange något av följande i en notebook-cell:
retina alternativ:
%config InlineBackend.figure_format = 'retina'
from IPython.display import set_matplotlib_formats
set_matplotlib_formats('retina')
png2xalternativ:
%config InlineBackend.figure_format = 'png2x'
from IPython.display import set_matplotlib_formats
set_matplotlib_formats('png2x')
Om du vill växla tillbaka till standardupplösning lägger du till följande i en notebook-cell:
set_matplotlib_formats('png')
%config InlineBackend.figure_format = 'png'