diff --git a/src/backends.jl b/src/backends.jl index 7cd4e898..46b23dcb 100644 --- a/src/backends.jl +++ b/src/backends.jl @@ -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) diff --git a/src/recipes.jl b/src/recipes.jl index 78db2d7d..809c3477 100644 --- a/src/recipes.jl +++ b/src/recipes.jl @@ -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