Use built-in int as dtype

This commit is contained in:
Ogi Moore 2021-06-25 08:45:02 -07:00
parent 3fbb4f6b02
commit 418a181691
1 changed files with 1 additions and 1 deletions

View File

@ -900,7 +900,7 @@ class ImageItem(GraphicsObject):
step = int(self._xp.ceil((mx - mn) / 500.))
bins = []
if step > 0.0:
bins = self._xp.arange(mn, mx + 1.01 * step, step, dtype=self._xp.int)
bins = self._xp.arange(mn, mx + 1.01 * step, step, dtype=int)
else:
# for float data, let numpy select the bins.
bins = self._xp.linspace(mn, mx, 500)