Skip to content

Commit b60d7cf

Browse files
committed
Update one existing test
1 parent c9a7b6b commit b60d7cf

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

pygmt/tests/test_plot.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -483,14 +483,15 @@ def test_plot_timedelta64():
483483
"""
484484
Test plotting numpy.timedelta64 input data.
485485
"""
486+
tmin, tmax = np.timedelta64(0, "D"), np.timedelta64(8, "D")
486487
fig = Figure()
487488
fig.basemap(
488489
projection="X8c/5c",
489-
region=[0, 8, 0, 10],
490+
region=[tmin, tmax, 0, 10],
490491
frame=["WSne", "xaf+lForecast Days", "yaf+lRMSE"],
491492
)
492493
fig.plot(
493-
x=np.arange(np.timedelta64(0, "D"), np.timedelta64(8, "D")),
494+
x=np.arange(tmin, tmax),
494495
y=np.geomspace(start=0.1, stop=9, num=8),
495496
style="c0.2c",
496497
pen="1p",

0 commit comments

Comments
 (0)