only check kw is at least as long as group
This commit is contained in:
parent
9529246bfb
commit
6dba32bf99
@ -511,13 +511,13 @@ end
|
|||||||
|
|
||||||
# split the group into 1 series per group, and set the label and idxfilter for each
|
# split the group into 1 series per group, and set the label and idxfilter for each
|
||||||
@recipe function f(groupby::GroupBy, args...)
|
@recipe function f(groupby::GroupBy, args...)
|
||||||
|
lengthGroup = maximum(union(groupby.groupIds...))
|
||||||
for (i,glab) in enumerate(groupby.groupLabels)
|
for (i,glab) in enumerate(groupby.groupLabels)
|
||||||
@series begin
|
@series begin
|
||||||
label --> string(glab)
|
label --> string(glab)
|
||||||
idxfilter --> groupby.groupIds[i]
|
idxfilter --> groupby.groupIds[i]
|
||||||
for (key,val) in d
|
for (key,val) in d
|
||||||
length(args) == 0 && break
|
if key != :group && isa(val, AbstractArray) && size(val,1) >= lengthGroup
|
||||||
if key != :group && isa(val, AbstractArray) && size(val,1) == size(args[1],1)
|
|
||||||
n = ndims(val)
|
n = ndims(val)
|
||||||
:($key) := val[groupby.groupIds[i], fill(Colon(), n-1)...]
|
:($key) := val[groupby.groupIds[i], fill(Colon(), n-1)...]
|
||||||
end
|
end
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user