Skip to content

Commit bc196db

Browse files
authored
Update syntax for loading sample datasets in tutorials (#1750)
1 parent 11a50c3 commit bc196db

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

examples/tutorials/basics/plot.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,10 @@
1414

1515
###############################################################################
1616
# For example, let's load the sample dataset of tsunami generating earthquakes
17-
# around Japan (:func:`pygmt.datasets.load_japan_quakes`). The data is loaded
18-
# as a :class:`pandas.DataFrame`.
17+
# around Japan (:func:`pygmt.datasets.load_sample_data(name="japan_quakes")`).
18+
# The data is loaded as a :class:`pandas.DataFrame`.
1919

20-
data = pygmt.datasets.load_japan_quakes()
20+
data = pygmt.datasets.load_sample_data(name="japan_quakes")
2121

2222
# Set the region for the plot to be slightly larger than the data bounds.
2323
region = [

0 commit comments

Comments
 (0)