メインコンテンツまでスキップ
非公開のページ
このページは非公開です。 検索対象外となり、このページのリンクに直接アクセスできるユーザーのみに公開されます。

Matplotlib

Databricks Runtime では、Matplotlib の数値がインラインで表示されます。

ノートブックの例: Matplotlib

次のノートブックは、Matplotlib Pythonノートブックで 図を表示する方法を示しています。

Matplotlib Python ノートブック

Open notebook in new tab

高解像度で画像をレンダリングする

Python ノートブックで matplotlib 画像を標準解像度の 2 倍でレンダリングできるため、高解像度画面のユーザーにより優れた視覚化エクスペリエンスを提供できます。 ノートブックのセルに次のいずれかを設定します。

retina オプション:

Python
%config InlineBackend.figure_format = 'retina'

from IPython.display import set_matplotlib_formats
set_matplotlib_formats('retina')

png2xオプション:

Python
%config InlineBackend.figure_format = 'png2x'

from IPython.display import set_matplotlib_formats
set_matplotlib_formats('png2x')

標準解像度に戻すには、ノートブックのセルに以下を追加します。

Python
set_matplotlib_formats('png')

%config InlineBackend.figure_format = 'png'