はじめに
MatplotlibはPython用のデータ可視化ライブラリです。Pythonで静的、アニメーション、インタラクティブな可視化を作成するためのさまざまなツールを提供します。Matplotlibのインタラクティブ機能の1つは、マウスが図または軸に入ったり離れたりするときを検出する機能です。この実験では、MatplotlibのFigureとAxesの入力/出力イベントを使用して、図と軸の枠の色を変更する方法を学びます。
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/FunctionsGroup(["Functions"])
python(("Python")) -.-> python/ModulesandPackagesGroup(["Modules and Packages"])
matplotlib(("Matplotlib")) -.-> matplotlib/AdvancedTopicsGroup(["Advanced Topics"])
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/tuples("Tuples")
python/FunctionsGroup -.-> python/function_definition("Function Definition")
python/FunctionsGroup -.-> python/build_in_functions("Build-in Functions")
python/ModulesandPackagesGroup -.-> python/importing_modules("Importing Modules")
matplotlib/AdvancedTopicsGroup -.-> matplotlib/event_handling("Event Handling")
python/DataScienceandMachineLearningGroup -.-> python/data_visualization("Data Visualization")
subgraph Lab Skills
matplotlib/importing_matplotlib -.-> lab-48730{{"Matplotlib の図と軸の入力/離脱イベント"}}
matplotlib/figures_axes -.-> lab-48730{{"Matplotlib の図と軸の入力/離脱イベント"}}
python/tuples -.-> lab-48730{{"Matplotlib の図と軸の入力/離脱イベント"}}
python/function_definition -.-> lab-48730{{"Matplotlib の図と軸の入力/離脱イベント"}}
python/build_in_functions -.-> lab-48730{{"Matplotlib の図と軸の入力/離脱イベント"}}
python/importing_modules -.-> lab-48730{{"Matplotlib の図と軸の入力/離脱イベント"}}
matplotlib/event_handling -.-> lab-48730{{"Matplotlib の図と軸の入力/離脱イベント"}}
python/data_visualization -.-> lab-48730{{"Matplotlib の図と軸の入力/離脱イベント"}}
end