From 3f4b07327ee4164fcb4c43e764078577e59a513e Mon Sep 17 00:00:00 2001
From: Philipp Rudiger
Date: Sun, 8 Jan 2017 15:42:39 +0000
Subject: [PATCH] Fixed bug in HeatmapPlot
---
holoviews/plotting/mpl/raster.py | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/holoviews/plotting/mpl/raster.py b/holoviews/plotting/mpl/raster.py
index 879e6046ca..a68fe443fe 100644
--- a/holoviews/plotting/mpl/raster.py
+++ b/holoviews/plotting/mpl/raster.py
@@ -113,8 +113,7 @@ def _annotate_plot(self, ax, annotations):
def _annotate_values(self, element):
val_dim = element.vdims[0]
- aggregate = element.gridded
- vals = aggregate.dimension_values(2)
+ vals = element.dimension_values(2)
d1uniq, d2uniq = [element.dimension_values(i, False) for i in range(2)]
num_x, num_y = len(d1uniq), len(d2uniq)
xpos = np.linspace(0.5, num_x-0.5, num_x)