7. Matplotlib
Examples (30)
- E7.1A scatter plot of demographic data
- E7.2Median age at first marriage in the US over time
- E7.3Population changes in five US cities
- E7.4Lifetimes of an exponential decay
- E7.5Tick mark customization
- E7.6Fledging bird weights
- E7.7The one-dimensional diffusion equation
- E7.8Ganged subplots
- E7.9Letter frequencies in Moby Dick
- E7.10Renewable energy in Germany
- E7.11A pie chart of greenhouse gas emissions
- E7.12Modelling an antenna array
- E7.13Arrow styles
- E7.14An annotated plot of a share price
- E7.15Using ax.vlines and ax.hlines
- E7.16A depiction of the electromagnetic spectrum
- E7.17BMI data with confidence ellipses
- E7.18Some colourful shapes
- E7.19Electrostatic potential of an electric dipole
- E7.20A simple contour plot
- E7.21Visualizing a matrix with imshow
- E7.22The Barnsley fern
- E7.23A heatmap of Boston temperatures
- E7.24The two-dimensional diffusion equation
- E7.25Simple surface plots
- E7.26A torus
- E7.27Depicting a helix
- E7.28Animating a decaying sine curve 1
- E7.29Animating a decaying sine curve 2: blitting
- E7.30Animating a bouncing ball
Questions (4)
Problems (14)
- P7.4.1The Big Mac index
- P7.4.2West Nile Virus disease statistics
- P7.4.3BMI variation with of GDP
- P7.4.4Atmospheric carbon dioxide concentrations
- P7.4.5The Planck function
- P7.4.6A circular pattern
- P7.5.1The Chaos Game
- P7.5.2BMI contours
- P7.5.3The two-dimensional advection equation
- P7.5.4The Julia set
- P7.5.5The effect of sea-level rise on Great Britain
- P7.7.1Animating a pendulum
- P7.7.2Animation of the diffusion equation
- P7.7.3The Voyager 2 space probe trajectory