Prerequisites & Notation

Before You Begin

This chapter builds on Matplotlib fundamentals (Chapter 15) and extends into 3D. Familiarity with meshgrids and array broadcasting (Chapter 5) is essential for constructing 3D surfaces.

  • Matplotlib OO API, subplots, colormaps (Chapter 15)(Review ch15)

    Self-check: Can you create a figure with imshow and a colorbar?

  • NumPy meshgrid and 2D array operations (Chapter 5)(Review ch05)

    Self-check: Can you evaluate f(x,y)=x2+y2f(x,y) = x^2 + y^2 on a meshgrid?

  • 3D coordinate systems: Cartesian, spherical, cylindrical

    Self-check: Do you know x=rsinθcosϕx = r\sin\theta\cos\phi, y=rsinθsinϕy = r\sin\theta\sin\phi, z=rcosθz = r\cos\theta?

Notation for This Chapter

Symbols and conventions used in this chapter.

SymbolMeaningIntroduced
(r,theta,phi)(r, \\theta, \\phi)Spherical coordinates: radius, elevation, azimuths03
G(theta,phi)G(\\theta, \\phi)Antenna gain pattern in spherical coordinatess03
mathbfa(theta)\\mathbf{a}(\\theta)Array steering vectors03
STLSTLStereolithography file format for 3D meshess05
voxelvoxelVolume element — the 3D analogue of a pixels04