Hi Luke, I'm still working on this, but as usual there are so many other things that also need attention and suddenly gain higher priority.
On Friday, June 9, 2017 at 7:50:59 PM UTC+2, Luke Campagnola wrote: > > Ok, I think I have a sense of what is missing. Generally, it is possible > and easy to take any of pyqtgraph's components and recombine them in novel > ways. What you are trying to do, though, is reach inside the individual > components (such as PlotItem) to change the way they look/behave. There is > definitely much less support for this kind of use, and it's one area where > I would like to see pyqtgraph grow. Some parts can indeed be > customized--for example, a lot of the functionality you listed above is > provided by ImageView, but you would need to swap out the internal ViewBox > if you wanted axes (see: > https://groups.google.com/forum/#!topic/pyqtgraph/2KSFXY30WEk). If you > found that customizing past that point was too difficult, then it may be > easier to build your own from simpler components like ViewBox, AxisItem, > ImageItem, etc. > > I'll think on this some more. Whereas it's relatively easy to predict the > ways people will use the existing pyqtgraph components (and write > documentation/examples based on those), it's harder to predict all the ways > people might want to customize outside of those existing components. > This is the way I'm going now. I think that I have the basic layout now covered, and I'm trying to do this "custom building" from bottom up. The biggest nuisance in this is the lack of code/API documentation that includes all inherited functionality. I'm pretty sure there must be something like this for Python (I'm more a native C/C++). > > > > [...] > > In the end I want to add further things to the above display: >> a) fixing a crosshair-like object (using the mouse) and getting the data >> slice as side histograms in the correct size -- I don't know yet how to >> draw the histograms in the right size >> > > See "examples/crosshair.py" and > https://github.com/pyqtgraph/pyqtgraph/blob/develop/pyqtgraph/graphicsItems/ROI.py#L2233 > > for crosshair / mouse interaction ideas. > See ViewBox.setXLink() and .setYLink() to get the histogram to line up > with the image. > Yes, I've got this working in single examples, e.g. based on one of the pyqtgraph examples, > > >> b) pick a ROI, which is then displayed in a separate, detached QDialog >> > > "examples/imageAnalysis.py" and "examples/ROIExamples.py" have some > relevant material. > Thanks for the pointer. BTW, I've started to write some "internal" documentation about the/my way into pyqtgraph. Still very rough and incomplete, but you might want to have a look. I'm not the only one in our group that is using pyqtgraph, and it seems that I'm set up to become the "go-to - expert". I'm not sure though, if it might be helpful to someone outside me or my group. Cheers, Christoph -- 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/866b486f-f48b-4f5f-8593-ae6d36a2509e%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
