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