def num2julian(n):
 if cbook.iterable(n):
  n = np.asarray(n)
 return (n + JULIAN_OFFSET)

def num2julian ( n ) : if cbook . iterable ( n ) : n = np . asarray ( n ) return ( n + JULIAN_OFFSET )
convert a matplotlib date to a julian date .