はじめに
この実験では、Axesオブジェクトが不要な場合に、Matplotlibのfigimage
関数を使って画像を直接グラフに配置する方法を学びます。これは、プロットの一部ではない画像(ロゴや透かしなど)を含めたい場合に便利です。
VMのヒント
VMの起動が完了したら、左上隅をクリックしてノートブックタブに切り替え、Jupyter Notebookを使って練習しましょう。
時々、Jupyter Notebookが読み込み終わるまで数秒待つ必要がある場合があります。Jupyter Notebookの制限により、操作の検証を自動化することはできません。
学習中に問題に遭遇した場合は、Labbyにお問い合わせください。セッション後にフィードバックを提供してください。すぐに問題を解決いたします。
Skills Graph
%%%%{init: {'theme':'neutral'}}%%%%
flowchart RL
matplotlib(("Matplotlib")) -.-> matplotlib/BasicConceptsGroup(["Basic Concepts"])
python(("Python")) -.-> python/DataStructuresGroup(["Data Structures"])
python(("Python")) -.-> python/ModulesandPackagesGroup(["Modules and Packages"])
python(("Python")) -.-> python/DataScienceandMachineLearningGroup(["Data Science and Machine Learning"])
matplotlib/BasicConceptsGroup -.-> matplotlib/importing_matplotlib("Importing Matplotlib")
matplotlib/BasicConceptsGroup -.-> matplotlib/figures_axes("Understanding Figures and Axes")
python/DataStructuresGroup -.-> python/lists("Lists")
python/DataStructuresGroup -.-> python/tuples("Tuples")
python/ModulesandPackagesGroup -.-> python/importing_modules("Importing Modules")
python/DataScienceandMachineLearningGroup -.-> python/numerical_computing("Numerical Computing")
python/DataScienceandMachineLearningGroup -.-> python/data_visualization("Data Visualization")
subgraph Lab Skills
matplotlib/importing_matplotlib -.-> lab-48728{{"Matplotlibのグラフ画像"}}
matplotlib/figures_axes -.-> lab-48728{{"Matplotlibのグラフ画像"}}
python/lists -.-> lab-48728{{"Matplotlibのグラフ画像"}}
python/tuples -.-> lab-48728{{"Matplotlibのグラフ画像"}}
python/importing_modules -.-> lab-48728{{"Matplotlibのグラフ画像"}}
python/numerical_computing -.-> lab-48728{{"Matplotlibのグラフ画像"}}
python/data_visualization -.-> lab-48728{{"Matplotlibのグラフ画像"}}
end