That's it! It should help with translating more things as well. It hadn't
crossed my mind that I could access matplotlib in this manner.
# Julia 0.3.2
# 27.11.2014
using PyPlot
using Dates
# Create Data
dt = Millisecond(100)
time = [DateTime(2014,11,20):dt:DateTime(2014,11,22)]
y =
using PyPlot
using Dates
# Create Data
dt = Millisecond(200)
time = [DateTime(2014,11,20):dt:DateTime(2014,11,24)]
y = fill!(Array(Float64,length(time)),42)
#y = floor(100*rand(length(time))) # Causes error: OverflowError:
Allocated too many blocks
font1 = [fontname=Sans,style=normal]
time =
You might try something like:
majorformatter = matplotlib[:dates][:DateFormatter](%m/%d)
minorformatter = matplotlib[:dates][:DateFormatter](%H:%M)
majorlocator = matplotlib[:dates][:DayLocator](interval=1)
minorlocator = matplotlib[:dates][:HourLocator](byhour=(8, 16))
If you post what you did in Python, we should be able to translate it to
Julia.