lol figured it out. I have my matrix orientation set to row-major, and 
ColorBarItem was not sensitive to that. Issue & PR now on github

https://github.com/pyqtgraph/pyqtgraph/pull/1734

On Friday, April 16, 2021 at 7:19:02 AM UTC-7 [email protected] wrote:

> ColorBarItem was introduced in 0.12.1 but it is undocumented right now 
> (we'll add documenting before too long I promise).
>
> On Fri, Apr 16, 2021 at 01:38 [email protected] <[email protected]> wrote:
>
>> Hello
>> I tried to run your example in my environment with pyqtgraph 0.12 and 
>> pyside2, but I actually don't have the ColorBarItem. The only colorbaritem 
>> I found online was part of pyqtgraph-extensions which I did not have 
>> installed. Can you tell me if you installed that separately ? 
>> On Thursday, April 15, 2021 at 8:29:51 PM UTC+2 [email protected] wrote:
>>
>>> Thanks for the great graphics library!
>>>
>>> I've been trying to incorporate the new colorbar into my app, with 
>>> partial success. The widget works in every way, except that the actual 
>>> "color map" ImageItem shows up as a blank image (with possibly a compressed 
>>> image at the bottom?)
>>>
>>> [image: colorbar.png]
>>>
>>> My ignorance about Qt can't be helping.. perhaps there's a problem with 
>>> the way I'm setting up the panel where these items live. Within a 
>>> GraphicsLayoutWidget, I do
>>>
>>> 1) addLayout to get a new panel
>>> 2) create ImageItem, layout.addPlot to get plot, add image to plot
>>> 3) create ColorBarItem, attach to ImageItem
>>> 4) layout.addItem for colorbar
>>>
>>> Attached: I have successfully modified the colorbar demo to use the same 
>>> steps (bottom left image). Just don't know why it's blank in my app.
>>>
>>> Appreciate any insights..
>>>
>>> cheers
>>> Mike
>>>
>>>
>>> -- 
>> 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/f5d80afa-0f96-400e-a74f-ff0f84c7cf9en%40googlegroups.com
>>  
>> <https://groups.google.com/d/msgid/pyqtgraph/f5d80afa-0f96-400e-a74f-ff0f84c7cf9en%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>>
>

-- 
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/a84cb3a3-1c18-48ad-afea-a2d6480378b6n%40googlegroups.com.

Reply via email to