I would use the PLOT function rather than the IMAGE image to display an histogram. For example:
data = [[-5, 4, 2, -8, 1], [ 3, 0, 5, -5, 1], [ 6, -7, 4, -4, -8], [-1, -5, -14, 2, 1]]
hist = HISTOGRAM(data)
bins = FINDGEN(N_ELEMENTS(hist)) + MIN(data)
p=plot(bins, hist, YRANGE = [MIN(hist)-1, MAX(hist)+1])
If you want to display it as an image you would perhaps need to use CONGRID to make the image enough large. You can check the size of your image using the HELP routine.
|