Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update readme to mention cftime #32

Merged
merged 1 commit into from
May 30, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@ nc-time-axis

|Travis|_ |Coveralls|_

Support for netcdftime axis in matplotlib.
Support for cftime axis in matplotlib.


See also
--------

* `matplotlib <http://matplotlib.org/>`_
* `netcdftime <https://github.com/Unidata/netcdf4-python/blob/master/netcdftime/netcdftime.py>`_
* `cftime <https://github.com/Unidata/cftime>`_

Installation
------------
Expand All @@ -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))]

Expand Down