Skip to content

Commit

Permalink
repeat levels in contour data to be of the same length as input
Browse files Browse the repository at this point in the history
  • Loading branch information
shashi committed Aug 18, 2016
1 parent f6fa242 commit dd3ea4e
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/statistics.jl
Original file line number Diff line number Diff line change
Expand Up @@ -1529,8 +1529,10 @@ function apply_statistic(stat::ContourStatistic,
xc, yc = Contour.coordinates(line)
append!(contour_xs, xc)
append!(contour_ys, yc)
for _ in 1:length(xc); push!(groups, group); end
push!(levels, Contour.level(level))
for _ in 1:length(xc)
push!(groups, group)
push!(levels, Contour.level(level))
end
group += 1
end
end
Expand Down

0 comments on commit dd3ea4e

Please sign in to comment.