staged date fix, still not working
This commit is contained in:
parent
5e8c88d657
commit
ae608d4d78
@ -59,7 +59,7 @@ function tick_padding(axis::Axis)
|
||||
else
|
||||
vals, labs = ticks
|
||||
ptsz = axis[:tickfont].pointsize * pt
|
||||
|
||||
|
||||
# we need to compute the size of the ticks generically
|
||||
# this means computing the bounding box and then getting the width/height
|
||||
longest_label = maximum(length(lab) for lab in labs)
|
||||
|
||||
@ -792,12 +792,10 @@ abline!(args...; kw...) = abline!(current(), args...; kw...)
|
||||
|
||||
@recipe function f{T<:AbstractArray{Date}}(::Type{T}, dts::T)
|
||||
date_formatter = dt -> string(convert(Date, dt))
|
||||
xformatter := date_formatter
|
||||
map(dt->convert(Int,dt), dts)
|
||||
Formatted(map(dt->convert(Int,dt), dts), date_formatter)
|
||||
end
|
||||
|
||||
@recipe function f{T<:AbstractArray{DateTime}}(::Type{T}, dts::T)
|
||||
date_formatter = dt -> string(convert(DateTime, dt))
|
||||
xformatter := date_formatter
|
||||
map(dt->convert(Int,dt), dts)
|
||||
Formatted(map(dt->convert(Int,dt), dts), date_formatter)
|
||||
end
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user