Hi,

You can access the GradientEditorItem 
(http://www.pyqtgraph.org/documentation/graphicsItems/gradienteditoritem.html) 
component directly and set one of the default colormaps by:

histogram.gradient.loadPreset('thermal')

You can also make your own custom gradient with something like:
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))]})


Patrick

-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/pyqtgraph/ddb0cf87-8665-4a0d-809e-ea242de5d469%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to