Skip to content

Commit 6895c7e

Browse files
authored
Update parameter 'table' to 'data' for gallery examples (#1567)
1 parent 3c908aa commit 6895c7e

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

examples/gallery/3d_plots/scatter3d.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
# Use pygmt.info to get region bounds (xmin, xmax, ymin, ymax, zmin, zmax)
2525
# The below example will return a numpy array [0.0, 3.0, 4.0, 8.0, 1.0, 7.0]
2626
region = pygmt.info(
27-
table=df[["petal_width", "sepal_length", "petal_length"]], # x, y, z columns
27+
data=df[["petal_width", "sepal_length", "petal_length"]], # x, y, z columns
2828
per_column=True, # report the min/max values per column as a numpy array
2929
# round the min/max values of the first three columns to the nearest
3030
# multiple of 1, 2 and 0.5, respectively

examples/gallery/histograms/histogram.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
fig = pygmt.Figure()
2121

2222
fig.histogram(
23-
table=data,
23+
data=data,
2424
# define the frame, add title and set background color to
2525
# lightgray, add annotations for x and y axis
2626
frame=['WSne+t"Histogram"+glightgray', 'x+l"Elevation (m)"', 'y+l"Counts"'],

examples/gallery/symbols/points_categorical.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
# Use pygmt.info to get region bounds (xmin, xmax, ymin, ymax)
2222
# The below example will return a numpy array like [30.0, 60.0, 12.0, 22.0]
2323
region = pygmt.info(
24-
table=df[["bill_length_mm", "bill_depth_mm"]], # x and y columns
24+
data=df[["bill_length_mm", "bill_depth_mm"]], # x and y columns
2525
per_column=True, # report the min/max values per column as a numpy array
2626
# round the min/max values of the first two columns to the nearest multiple
2727
# of 3 and 2, respectively

examples/tutorials/date_time_charts.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,7 @@
257257

258258
fig = pygmt.Figure()
259259
region = pygmt.info(
260-
table=df[["Date", "Score"]], per_column=True, spacing=(700, 700), coltypes="T"
260+
data=df[["Date", "Score"]], per_column=True, spacing=(700, 700), coltypes="T"
261261
)
262262

263263
fig.plot(

0 commit comments

Comments
 (0)