I tried
matplotlib.pyplot.title("Analysis of Tsunamis in Southeast Asia")
but the Python interpreter notes that NameError: name 'matplotlib' is not defined even though I am sure that I imported pyplot earlier:
import matplotlib.pyplot
How can I add a title to my map?
My guess is that you imported pyplot like this
In which case you’d need to do