Skip to content

Commit 11a50c3

Browse files
authored
Update syntax for loading sample datasets in gallery examples (#1749)
1 parent 5630df2 commit 11a50c3

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

examples/gallery/histograms/blockm.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
import pygmt
1111

1212
# Load sample data
13-
data = pygmt.datasets.load_japan_quakes()
13+
data = pygmt.datasets.load_sample_data(name="japan_quakes")
1414
# Select only needed columns
1515
data = data[["longitude", "latitude", "depth_km"]]
1616

examples/gallery/histograms/rose.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
# Load sample compilation of fracture lengths and azimuth as
1212
# hypothetically digitized from geological maps
13-
data = pygmt.datasets.load_fractures_compilation()
13+
data = pygmt.datasets.load_sample_data(name="fractures")
1414

1515
fig = pygmt.Figure()
1616

examples/gallery/images/track_sampling.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818

1919
# Load sample grid and point datasets
2020
grid = pygmt.datasets.load_earth_relief()
21-
points = pygmt.datasets.load_ocean_ridge_points()
21+
points = pygmt.datasets.load_sample_data(name="ocean_ridge_points")
2222
# Sample the bathymetry along the world's ocean ridges at specified track
2323
# points
2424
track = pygmt.grdtrack(points=points, grid=grid, newcolname="bathymetry")

0 commit comments

Comments
 (0)