group fix; ohlc fix

This commit is contained in:
Thomas Breloff 2016-05-23 15:13:20 -04:00
parent ef0d99340a
commit 6f0b8d1d7b
2 changed files with 2 additions and 1 deletions

View File

@ -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

View File

@ -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