Plot numpy datetime64 with matplotlib

前端 未结 3 1086
暗喜
暗喜 2020-12-03 05:17

I have two numpy arrays 1D, one is time of measurement in datetime64 format, for example:

array([2011-11-15 01:08:11, 2011-11-16 02:08:04, ..., 2012-07-0         


        
3条回答
  •  温柔的废话
    2020-12-03 05:46

    from datetime import datetime
    a=np.datetime64('2002-06-28').astype(datetime)
    plot_date(a,2)
    

提交回复
热议问题