Winston how to show time on axis?


#1

julia> d=collect(DateTime(t1):Dates.Minute(1):(DateTime(t1))+Dates.Day(1))
1441-element Array{DateTime,1}:
2016-04-01T00:00:00
2016-04-01T00:01:100:…

using Winston

julia> plot(d,rand(1441))
ERROR: eltype of argument #1 is not Real or Complex
in #plot#103(::Array{Any,1}, ::Function, ::Winston.FramedPlot, ::Array{DateTime,1}, ::Vararg{Union{AbstractArray{T,1},A
bstractArray{T,2},AbstractString,Function,Real},N}) at C:\Users\PC.julia\v0.5\Winston\src\plot.jl:166
in plot(::Winston.FramedPlot, ::Array{DateTime,1}, ::Array{Float64,1}) at C:\Users\PC.julia\v0.5\Winston\src\plot.jl:1
15
in #plot#114(::Array{Any,1}, ::Function, ::Array{DateTime,1}, ::Vararg{Union{AbstractArray{T,1},AbstractArray{T,2},Abst
ractString,Function,Real},N}) at C:\Users\PC.julia\v0.5\Winston\src\plot.jl:240
in plot(::Array{DateTime,1}, ::Array{Float64,1}) at C:\Users\PC.julia\v0.5\Winston\src\plot.jl:240

how to show time on axis? Maybe ano other package ?
Paul


#2

The docs suggest this approach:

http://winston.readthedocs.io/en/latest/fun/timeplot.html

but I haven’t tried it myself.


#3

Very Thanks
Paul
W dniu 2017-10-31 o 17:37, Cormullion pisze:


#4

Was nice , but now a need somthnt like oplot (over oplot) to add new series

timeplotnot suport this ? :confused: Paul

W dniu 2017-10-31 o 17:37, Cormullion pisze: