Skip to content

Commit

Permalink
DOC/advanced tutorial "Plotting datetime charts": Minor update of cod…
Browse files Browse the repository at this point in the history
…e for pandas version (#3664)
  • Loading branch information
yvonnefroehlich authored Dec 2, 2024
1 parent 8cfdb5b commit ead78bf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/tutorials/advanced/date_time_charts.py
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@
# uses :func:`pandas.date_range` to fill the DataArray with data, but this is not
# essential for the creation of a valid DataArray.

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

fig = pygmt.Figure()
Expand Down Expand Up @@ -331,7 +331,7 @@
# found at :gmt-term:`FORMAT_CLOCK_MAP`, :gmt-term:`FORMAT_CLOCK_IN`, and
# :gmt-term:`FORMAT_CLOCK_OUT`.

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

fig = pygmt.Figure()
Expand Down

0 comments on commit ead78bf

Please sign in to comment.