Matplotlib

Databricks Runtime は、Matplotlibの数値をインラインで表示します。

ノートブックの例: Matplotlib

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

Matplotlib Python ノートブック

ノートブックを新しいタブで開く

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

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

retina オプション:

%config InlineBackend.figure_format = 'retina'

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

png2xオプション:

%config InlineBackend.figure_format = 'png2x'

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

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

set_matplotlib_formats('png')

%config InlineBackend.figure_format = 'png'