From 5621f90fc91a81c06e1e6f80bcaf72dc7ee9a574 Mon Sep 17 00:00:00 2001 From: Filipe Fernandes Date: Mon, 28 May 2018 11:06:54 -0300 Subject: [PATCH] update readme to mention cftime --- README.rst | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/README.rst b/README.rst index 06fe5e2..e5e0ba4 100644 --- a/README.rst +++ b/README.rst @@ -3,14 +3,14 @@ nc-time-axis |Travis|_ |Coveralls|_ -Support for netcdftime axis in matplotlib. +Support for cftime axis in matplotlib. See also -------- * `matplotlib `_ -* `netcdftime `_ +* `cftime `_ Installation ------------ @@ -27,9 +27,9 @@ Example Code import matplotlib.pyplot as plt import nc_time_axis - import netcdftime + import cftime - d_time = [netcdftime.datetime(year=2017, month=2, day=n) for n in range(1, 31)] + d_time = [cftime.datetime(year=2017, month=2, day=n) for n in range(1, 31)] c_d_time = [nc_time_axis.CalendarDateTime(item, "360_day") for item in d_time] temperatures = [round(random.uniform(0, 12), 3) for _ in range(len(c_d_time))]