Skip to content

Commit ead78bf

Browse files
DOC/advanced tutorial "Plotting datetime charts": Minor update of code for pandas version (#3664)
1 parent 8cfdb5b commit ead78bf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

examples/tutorials/advanced/date_time_charts.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@
196196
# uses :func:`pandas.date_range` to fill the DataArray with data, but this is not
197197
# essential for the creation of a valid DataArray.
198198

199-
x = xr.DataArray(data=pd.date_range(start="2020-01-01", periods=4, freq="Q"))
199+
x = xr.DataArray(data=pd.date_range(start="2020-01-01", periods=4, freq="QE"))
200200
y = [4, 7, 5, 6]
201201

202202
fig = pygmt.Figure()
@@ -331,7 +331,7 @@
331331
# found at :gmt-term:`FORMAT_CLOCK_MAP`, :gmt-term:`FORMAT_CLOCK_IN`, and
332332
# :gmt-term:`FORMAT_CLOCK_OUT`.
333333

334-
x = pd.date_range("2021-04-15", periods=8, freq="6H")
334+
x = pd.date_range("2021-04-15", periods=8, freq="6h")
335335
y = [2, 5, 3, 1, 5, 7, 9, 6]
336336

337337
fig = pygmt.Figure()

0 commit comments

Comments
 (0)