diff --git a/src/plot.jl b/src/plot.jl index ecb0902f..57586856 100644 --- a/src/plot.jl +++ b/src/plot.jl @@ -167,7 +167,7 @@ function _plot!(plt::Plot, d::KW, args...) # we simply add the GroupBy object to the front of the args list to allow # the recipe to be applied if haskey(d, :group) - args = tuple(extractGroupArgs(d[:group], args...), args...) + args = (extractGroupArgs(d[:group], args...), args...) end diff --git a/src/recipes.jl b/src/recipes.jl index da4ff3b0..a5f55f9a 100644 --- a/src/recipes.jl +++ b/src/recipes.jl @@ -549,6 +549,7 @@ type OHLC{T<:Real} low::T close::T end +Base.convert(::Type{OHLC}, tup::Tuple) = OHLC(tup...) tuple(ohlc::OHLC) = (ohlc.open, ohlc.high, ohlc.low, ohlc.close) # get one OHLC path