Dear all,
I'm currently implementing an ImageWidget on PyQtGraph, very similar to the ImageView widget, but with some layout modifications and the addition of a dedicated axisitem to the gradient (screenshot provided in attachement : file named ImageWidget.png). This widget is composed of 3 widgets connected together:
- a PlotWidget displaying an image (widget 1)
- a GradientWidget composed of a colorbar and an axis indicating the values related to the colobar (widget 2)
- a PlotWidget displaying the histogram of the image and a LinearRegionItem connected to the colorbar and its axis (widget 3)
Everything is fully functionnal, but there remains two problems:
1. I want the size of the colorbar (and its axis) to be exactly the same as the widget 1 PlotItem (and in the prolongation) as illustrated by the red element in the fileImageWidget_wanted.png. I would like to It is possible to do that in PyQtGraph?
2. I would like to adapt the size of the PlotItem axis of widget 3 so that its width is exactly the same as the widget 1 PlotItem axis (in the prolongation in fact) as illustrated by the blue lines in the file ImageWidget_wanted.png. Is it possible with PyQtGraph?
Any help will be grealty appreciated. When these problems are solved, I will of course provide the source code!
Regards,
vls