From 6f0b8d1d7b0e304a1938247f0b80eec74c922aca Mon Sep 17 00:00:00 2001 From: Thomas Breloff Date: Mon, 23 May 2016 15:13:20 -0400 Subject: [PATCH] group fix; ohlc fix --- src/plot.jl | 2 +- src/recipes.jl | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) 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