Introduction
In this lab, you will learn how to use Matplotlib to create a gradient plot of an electrical dipole. You will learn how to create a triangulation, refine data, and compute the electrical field. Finally, you will plot the triangulation, the potential iso-contours, and the vector field.
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
matplotlib(("`Matplotlib`")) -.-> matplotlib/SpecializedPlotsGroup(["`Specialized Plots`"])
python(("`Python`")) -.-> python/BasicConceptsGroup(["`Basic Concepts`"])
python(("`Python`")) -.-> python/DataStructuresGroup(["`Data Structures`"])
python(("`Python`")) -.-> python/FunctionsGroup(["`Functions`"])
matplotlib/SpecializedPlotsGroup -.-> matplotlib/quiver_plots("`Quiver Plots`")
python/BasicConceptsGroup -.-> python/booleans("`Booleans`")
python/DataStructuresGroup -.-> python/lists("`Lists`")
python/DataStructuresGroup -.-> python/tuples("`Tuples`")
python/FunctionsGroup -.-> python/function_definition("`Function Definition`")
python/FunctionsGroup -.-> python/build_in_functions("`Build-in Functions`")
subgraph Lab Skills
matplotlib/quiver_plots -.-> lab-49008{{"`Electrical Dipole Gradient Visualization with Matplotlib`"}}
python/booleans -.-> lab-49008{{"`Electrical Dipole Gradient Visualization with Matplotlib`"}}
python/lists -.-> lab-49008{{"`Electrical Dipole Gradient Visualization with Matplotlib`"}}
python/tuples -.-> lab-49008{{"`Electrical Dipole Gradient Visualization with Matplotlib`"}}
python/function_definition -.-> lab-49008{{"`Electrical Dipole Gradient Visualization with Matplotlib`"}}
python/build_in_functions -.-> lab-49008{{"`Electrical Dipole Gradient Visualization with Matplotlib`"}}
end