Introduction
Matplotlib is a data visualization library in Python that allows users to create a wide range of 2D and 3D plots. One of the many useful features of Matplotlib is the ability to create quiver plots, which display vector fields.
This lab will walk through some advanced options for the quiver()
and quiverkey()
functions in Matplotlib. These functions allow for customization of the arrows in a quiver plot, including arrow scale, pivot point, and arrow frequency.
VM Tips
After the VM startup is done, click the top left corner to switch to the Notebook tab to access Jupyter Notebook for practice.
Sometimes, you may need to wait a few seconds for Jupyter Notebook to finish loading. The validation of operations cannot be automated because of limitations in Jupyter Notebook.
If you face issues during learning, feel free to ask Labby. Provide feedback after the session, and we will promptly resolve the problem for you.
Skills Graph
%%%%{init: {'theme':'neutral'}}%%%%
flowchart RL
python(("`Python`")) -.-> python/FileHandlingGroup(["`File Handling`"])
matplotlib(("`Matplotlib`")) -.-> matplotlib/BasicConceptsGroup(["`Basic Concepts`"])
matplotlib(("`Matplotlib`")) -.-> matplotlib/PlottingDataGroup(["`Plotting Data`"])
matplotlib(("`Matplotlib`")) -.-> matplotlib/SpecializedPlotsGroup(["`Specialized Plots`"])
python(("`Python`")) -.-> python/DataStructuresGroup(["`Data Structures`"])
python(("`Python`")) -.-> python/ModulesandPackagesGroup(["`Modules and Packages`"])
python(("`Python`")) -.-> python/DataScienceandMachineLearningGroup(["`Data Science and Machine Learning`"])
python/FileHandlingGroup -.-> python/with_statement("`Using with Statement`")
matplotlib/BasicConceptsGroup -.-> matplotlib/importing_matplotlib("`Importing Matplotlib`")
matplotlib/BasicConceptsGroup -.-> matplotlib/figures_axes("`Understanding Figures and Axes`")
matplotlib/PlottingDataGroup -.-> matplotlib/scatter_plots("`Scatter Plots`")
matplotlib/SpecializedPlotsGroup -.-> matplotlib/quiver_plots("`Quiver Plots`")
python/DataStructuresGroup -.-> python/lists("`Lists`")
python/DataStructuresGroup -.-> python/tuples("`Tuples`")
python/DataStructuresGroup -.-> python/sets("`Sets`")
python/ModulesandPackagesGroup -.-> python/importing_modules("`Importing Modules`")
python/DataScienceandMachineLearningGroup -.-> python/numerical_computing("`Numerical Computing`")
python/DataScienceandMachineLearningGroup -.-> python/data_visualization("`Data Visualization`")
subgraph Lab Skills
python/with_statement -.-> lab-48893{{"`Advanced Quiver and Quiverkey Functions`"}}
matplotlib/importing_matplotlib -.-> lab-48893{{"`Advanced Quiver and Quiverkey Functions`"}}
matplotlib/figures_axes -.-> lab-48893{{"`Advanced Quiver and Quiverkey Functions`"}}
matplotlib/scatter_plots -.-> lab-48893{{"`Advanced Quiver and Quiverkey Functions`"}}
matplotlib/quiver_plots -.-> lab-48893{{"`Advanced Quiver and Quiverkey Functions`"}}
python/lists -.-> lab-48893{{"`Advanced Quiver and Quiverkey Functions`"}}
python/tuples -.-> lab-48893{{"`Advanced Quiver and Quiverkey Functions`"}}
python/sets -.-> lab-48893{{"`Advanced Quiver and Quiverkey Functions`"}}
python/importing_modules -.-> lab-48893{{"`Advanced Quiver and Quiverkey Functions`"}}
python/numerical_computing -.-> lab-48893{{"`Advanced Quiver and Quiverkey Functions`"}}
python/data_visualization -.-> lab-48893{{"`Advanced Quiver and Quiverkey Functions`"}}
end