Hi RC, what you're looking for is in the file *pyqtgraph\graphicsItems\GradientEditorItem.py* The default gradients get defined at the top of the file, the menu is created in the constructor of the *GradientEditorItem().* You can add your own by adding a list with (position, RGBA-value) tuples there.
Cheers Sebastian Am Montag, 24. April 2017 15:48:31 UTC+2 schrieb RC: > > Hey Guys > > I can create an image and then use pg.HistogramLUTItem() to show the > histogram of the image. When you click on the context menu of the histogram > you have a list of 8 or so default colormaps which you can click on the > change the image colours. I wish to add my own to this list. Does anyone > know how to do this? I cant seem to find the context menu to edit. > > Thanks for any help > -- 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/1d3c30f7-6836-46c6-9738-fc10e5796410%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
