central_item = pg.GraphicsLayout()
main_subplot = central_item.addPlot()
img = pg.ImageItem()
img.setImage(self.plt_data)
main_subplot.addItem(img)
histogram = pg.HistogramLUTItem()
histogram.setImageItem(img)
histogram.setFixedWidth(128)histogram.gradient.loadPreset('thermal')
histogram.gradient.restoreState({"mode": "rgb", "ticks": [(0.00, (0, 0, 0)), (0.05, (0, 0, 128)), (0.50, (185, 0 , 0)), (0.75, (255, 220, 0)), (1.00, (255, 255, 255))]})--
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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/pyqtgraph/ddb0cf87-8665-4a0d-809e-ea242de5d469%40googlegroups.com.