Release notes
v1.4.1 (April 20th, 2022)
New features
Starting with this release, every new releasgit re of nc-time-axis will be associated with a Digital Object Identifier (DOI) through Zenodo, making it easier to cite in academic articles (GH104). By Spencer Clark.
Bug fixes
As of matplotlib version 3.5, unit converters no longer need to support passing numeric or iterables of numeric values to their
convert
method. Accordingly, thematplotlib.units.ConversionInterface.is_numlike()
method has been deprecated. For backwards compatibility with older versions of matplotlib, we have vendored this function for the time being, but will remove it once the minimum version of matplotlib supported by nc-time-axis is at least 3.5 (GH97, PR106). By Spencer Clark.
Infrastructure
Update usage of
conda-lock
in continuous integration to continue to create lockfiles that can be used to create mamba environments (PR107). By Spencer Clark and Ruth Comer.
v1.4.0 (October 23rd, 2021)
Deprecations
The
CalendarDateTime
class has been deprecated and will be removed in nc-time-axis version 1.5.0. Please switch to plotting instances or subclasses ofcftime.datetime
directly (GH62, PR87). See the Examples for illustration. By Spencer Clark.
New features
Added a
CFTimeFormatter
class to enable custom formatting forcftime.datetime
ticks (GH41, PR84). By Spencer Clark.Added ability to plot calendar-aware
cftime.datetime
objects, e.g.cftime.datetime(2000, 1, 1, calendar="noleap")
, available as of cftime version 1.3.0 (GH75, PR80). By Spencer Clark.
Bug fixes
Enabled
NetCDFTimeConverter.convert()
to take alist
of datetimes as an argument, allowing matplotlib methods likematplotlib.axes.Axes.axvspan()
andmatplotlib.axes.Axes.fill_between()
to work properly with cftime values (GH47, GH74, PR78). By Pascal Bourgault.Fixed a bug that resulted in the resolution of tick labels being inconsistent with the resolution of tick values (GH48, PR79). By Spencer Clark.
Fixed a bug that prevented users from being able to explicitly set the ticks along axes using
matplotlib.axes.Axes.set_xticks()
ormatplotlib.axes.Axes.set_yticks()
(GH41, PR84). By Spencer Clark.
Documentation
Added a start on Read the Docs documentation. Added examples, release notes, and NumPy-style docstrings to nc-time-axis classes (GH62, PR87). By Spencer Clark.
Added some basic instructions for making a new release (PR94). By Spencer Clark.
v1.3.1 (June 14th, 2021)
Requirements
nc-time-axis now requires cftime of at least version 1.5 (GH61, PR69). By Bill Little.
v1.3.0 (June 11th, 2021)
Requirements
Support for Python 2 was dropped.
Infrastructure
Migrated continuous integration from Travis CI to Cirrus CI through GitHub Actions. Added formatting and linting checks. Updated packaging to use setuptools. Added issue and pull request templates. Enabled GitHub discussions. For more details see GH63 and PR66. By Bill Little.
Changed the name of the primary branch from “master” to “main” (PR68). By Bill Little.
Bug fixes
Removed ticks with year zero in calendars without year zero. Previously these would lead to errors in cftime, which would prevent plotting (GH44, PR50). By Julius Busecke.
Removed internal use of the deprecated
cftime.utime
class (PR59 through PR66). By Pascal Bourgault.Removed internal use of the deprecated
numpy.object
data type (PR56 through PR66). By Mathias Hauser.Updated internals for compatibility with the now calendar-aware
cftime.datetime
object (PR51 through PR66). By Jeff Whitaker.Improved handling of scalar values passed to
NetCDFTimeConverter.convert()
(GH45, PR46). By Spencer Clark.
v1.2.0 (January 25th, 2019)
Infrastructure
Included license in package data (PR37). By Filipe Fernandes.
New features
Added ability to directly plot subclasses of
cftime.datetime
, e.g.cftime.DatetimeNoLeap
, instead of requiringCalendarDateTime
objects (PR42). By Spencer Clark.
v1.1.0 (May 31st, 2018)
Requirements
nc-time-axis now requires matplotlib of at least version 2.0 (GH23, PR34). By Filipe Fernandes.
nc-time-axis now uses the standalone cftime package instead of the
netcdftime
module formerly packaged in netcdf4-python (PR30, PR32). By Filipe Fernandes.
Infrastructure
Updated continuous integration tests to be run with both Python 2 and Python 3 (PR33). By Filipe Fernandes.
Updated continuous integration to use
install_requires
information to install dependencies of nc-time-axis instead of a requirements file (GH27, PR28). By Phil Elson.Added installation and test requirements to
setup.py
(PR26). By Luke Carroll.
Documentation
v1.0.2 (March 7th, 2017)
Requirements
nc-time-axis now requires matplotlib less than version 2.0 (PR22). By Mark Hedley.
Bug fixes
Fixed a bug in comparing calendars (PR22). By Mark Hedley.
v1.0.1 (November 23rd, 2016)
Bug fixes
Fixed a bug the prevented converting NumPy arrays of datetime objects. This enables making Hovmoller diagrams using nc-time-axis. By Peter Killick.
v1.0.0 (July 1st, 2016)
This is the initial release of the nc-time-axis package. It is based on a prototype written by Phil Elson, which was made production-ready by lbdreyer.
New features
Added the fundamental objects of nc-time-axis, i.e.
NetCDFTimeDateLocator
,NetCDFTimeDateFormatter
, andNetCDFTimeConverter
(PR2). By lbdreyer and Phil Elson.Added a
__version__
attribute to nc-time-axis (PR9). By lbdreyer.Added the
CalendarDateTime
class (PR12, PR15). By lbdreyer.