I haven't seen an example of this but I wanted to know if any knows how to implement a colorbar with an adjustable slider using wxpython. Basically the slider should change the levels of the colorbar and as such adjust the colormap. If anyone has an idea of how to do and possible some example code it would be much appreciated.

有帮助吗?

解决方案

I think you're looking for one of the following widgets:

ColourDialog, ColourSelect, PyColourChooser or CubeColourDialog

They all let you choose colors in different ways and they have a slider to help adjust the colours too.

You can see each of them in action in the wxPython demo (downloadable from the wxPython web page)

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top