Thank you kind sir.

On Tue, Aug 7, 2018 at 7:26 AM, Patrick <[email protected]> wrote:

> 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
> <https://groups.google.com/d/msgid/pyqtgraph/ddb0cf87-8665-4a0d-809e-ea242de5d469%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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/CAAr%3DJ-hiVy984bD-FhD1wJj%2BODCa5xAaP-UMWOnkFmQUB36W1Q%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to