Matplotlib
Databricks Runtime では、Matplotlib の数値がインラインで表示されます。
ノートブックの例: Matplotlib
次のノートブックは、Matplotlib Pythonノートブックで 図を表示する方法を示しています。
Matplotlib Python ノートブック
高解像度で画像をレンダリングする
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'