Update syntax for loading sample datasets in tutorials
@@ -14,10 +14,10 @@ import pygmt
###############################################################################
# For example, let's load the sample dataset of tsunami generating earthquakes
-# around Japan (:func:`pygmt.datasets.load_japan_quakes`). The data is loaded
-# as a :class:`pandas.DataFrame`.
+# around Japan (:func:`pygmt.datasets.load_sample_data(name="japan_quakes")`).
+# The data is loaded as a :class:`pandas.DataFrame`.
-data = pygmt.datasets.load_japan_quakes()
+data = pygmt.datasets.load_sample_data(name="japan_quakes")
# Set the region for the plot to be slightly larger than the data bounds.
region = [
