def _get_mpl_date(dates, fmt='%d.%m.%Y %H:%M'):
"""Convert date strings into matplotlib time format.
Parameters:
dates (ndarray): Array containing date strings.
fmt (str): Date string format [0].
[0] http://pubs.opengroup.org/onlinepubs/009695399/functions/strptime.html
Returns:
np.array: Matplotlib time values.
"""
return np.array([strpdate2num(fmt)(d) for d in dates])
评论列表
文章目录