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
|
else
|
||||||
vals, labs = ticks
|
vals, labs = ticks
|
||||||
ptsz = axis[:tickfont].pointsize * pt
|
ptsz = axis[:tickfont].pointsize * pt
|
||||||
|
|
||||||
# we need to compute the size of the ticks generically
|
# we need to compute the size of the ticks generically
|
||||||
# this means computing the bounding box and then getting the width/height
|
# this means computing the bounding box and then getting the width/height
|
||||||
longest_label = maximum(length(lab) for lab in labs)
|
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)
|
@recipe function f{T<:AbstractArray{Date}}(::Type{T}, dts::T)
|
||||||
date_formatter = dt -> string(convert(Date, dt))
|
date_formatter = dt -> string(convert(Date, dt))
|
||||||
xformatter := date_formatter
|
Formatted(map(dt->convert(Int,dt), dts), date_formatter)
|
||||||
map(dt->convert(Int,dt), dts)
|
|
||||||
end
|
end
|
||||||
|
|
||||||
@recipe function f{T<:AbstractArray{DateTime}}(::Type{T}, dts::T)
|
@recipe function f{T<:AbstractArray{DateTime}}(::Type{T}, dts::T)
|
||||||
date_formatter = dt -> string(convert(DateTime, dt))
|
date_formatter = dt -> string(convert(DateTime, dt))
|
||||||
xformatter := date_formatter
|
Formatted(map(dt->convert(Int,dt), dts), date_formatter)
|
||||||
map(dt->convert(Int,dt), dts)
|
|
||||||
end
|
end
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user