if bins == 'auto': if stepData.dtype.kind in "ui": mn = stepData.min() mx = stepData.max() step = np.ceil((mx-mn) / 500.) bins = np.arange(mn, mx+1.01*step, step, dtype=np.int) if len(bins) == 0: bins = [mn, mx] else: bins = 500
if bins == 'auto': if stepData.dtype.kind in "ui": mn = stepData.min() mx = stepData.max() step = np.ceil((mx-mn) / 500.)
bins = np.arange(mn, mx+1.01*step, step, dtype=np.int) if len(bins) == 0: bins = [mn, mx] else: bins = 500
Sorry, somehow this got posted before I was finished. The new code should be:
if bins == 'auto':
if stepData.dtype.kind in "ui":
mn = stepData.min()
mx = stepData.max()
step = np.ceil((mx-mn) / 500.)
if step == 0: step = 1.0
bins = np.arange(mn, mx+1.01*step, step, dtype=np.int)
if len(bins) == 0:
bins = [mn, mx]
else:
bins = 500
--
You received this message because you are subscribed to the Google Groups "pyqtgraph" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pyqtgraph+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/pyqtgraph/d6dfc5ad-8fda-45ab-9531-81f84fa5a89b%40googlegroups.com.
************************************************ Erik Johansson Project Manager, Wavefront Correction System National Solar Observatory Daniel K Inouye Solar Telescope 3665 Discovery Drive, Boulder, CO 80303 Tel: 303-735-7723 ************************************************