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.
