diff --git a/glue_qt/plugins/dendro_viewer/data_viewer.py b/glue_qt/plugins/dendro_viewer/data_viewer.py index 78e76b4d..d888feb1 100644 --- a/glue_qt/plugins/dendro_viewer/data_viewer.py +++ b/glue_qt/plugins/dendro_viewer/data_viewer.py @@ -45,7 +45,7 @@ def _update_limits(self, layout=None): x, y = self.state._layout.xy x, y = x[::3], y[::3] xlim = np.array([x.min(), x.max()]) - xpad = .05 * xlim.ptp() + xpad = .05 * np.ptp(xlim) xlim[0] -= xpad xlim[1] += xpad @@ -56,7 +56,7 @@ def _update_limits(self, layout=None): ylim[0] /= pad ylim[1] *= pad else: - pad = .05 * ylim.ptp() + pad = .05 * np.ptp(ylim) ylim[0] -= pad ylim[1] += pad