Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
Datetime64 fixes #816
I've now overhauled the PR again. The main changes here are that you can now register datetime formatters for datetime64 and datetime types, which means you can now do this:
%%opts Curve [xrotation=15 xticks=5] import numpy as np from datetime import date import pandas as pd start = date(2012, 1, 15) end = date(2012, 1, 30) hv.Dimension.type_formatters[np.datetime64] = '%m/%d' hv.Curve((pd.date_range(start, end, freq='D'), np.random.rand(16)))
Additionally I fixed various bugs in xarray date range handling and made formatting of grid tick labels consistent with everything else. Ready to merge now, but there's a definite possibility tests will break due to Grid tick formatting changes.