[julia-users] Re: PyPlot.plot_date: How do I alter the time format?

2014-11-27 Thread RecentConvert
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 =

[julia-users] Re: PyPlot.plot_date: How do I alter the time format?

2014-11-26 Thread RecentConvert
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 =

[julia-users] Re: PyPlot.plot_date: How do I alter the time format?

2014-11-26 Thread Nat Wilson
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))

[julia-users] Re: PyPlot.plot_date: How do I alter the time format?

2014-11-21 Thread Steven G. Johnson
If you post what you did in Python, we should be able to translate it to Julia.