From 084bb2981850c8b98026ff0d4202db8de54f01e9 Mon Sep 17 00:00:00 2001 From: Tamas Nagy Date: Thu, 31 May 2018 18:02:41 -0700 Subject: [PATCH] fix for missed renaming --- src/statistics.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/statistics.jl b/src/statistics.jl index 20cff731b..f4d1a0266 100644 --- a/src/statistics.jl +++ b/src/statistics.jl @@ -643,7 +643,7 @@ function apply_statistic(stat::DensityStatistic, # if the densities are stacked then we'll need to clamp them so that they # share the same evaluation points (e.g. x values) - (stat.position != :dodge) && (boundary = extrema(getfield(aes, densityvar))) + (stat.position != :dodge) && (boundary = extrema(getfield(aes, output_dims[2]))) for (idx, (keys, belongs)) in enumerate(grouped_data) input = getfield(aes, output_dims[2])[belongs]