Browse code

add dimension="y" to the AverageLearner.plot method

Bas Nijholt authored on 09/04/2020 09:27:43
Showing 1 changed files
... ...
@@ -137,7 +137,7 @@ class AverageLearner(BaseLearner):
137 137
             return hv.Histogram([[], []])
138 138
         num_bins = int(max(5, sqrt(self.npoints)))
139 139
         vals = hv.Points(vals)
140
-        return hv.operation.histogram(vals, num_bins=num_bins)
140
+        return hv.operation.histogram(vals, num_bins=num_bins, dimension="y")
141 141
 
142 142
     def _get_data(self):
143 143
         return (self.data, self.npoints, self.sum_f, self.sum_f_sq)