The main reason for viewbox to exist is that there are many cases where we
don't want the viewbox to cover the entire graphicsview -- for example,
when making space for axes/labels, or when we have multiple view boxes per
graphicsview. As you have found, one downside to this approach is that the
nice shared-scene feature of graphicsview becomes useless.

I agree with Patrick that usually just duplicating items is the easiest way
to go here, but in the rare cases where duplication is not an option, then
using bare graphicsview is a reasonable solution.

On Wed, May 8, 2019 at 5:03 AM 'Andre G' via pyqtgraph <
[email protected]> wrote:

> Hi,
>
> yes, it really is nothing to fancy. But I will add a significant amount
> (several thousands) of GraphicItems and they all are supposed to be synced
> to a central resource keeping all information about the items.
>
> However, I found a solution to the problem: Instead of using ViewBoxes I
> straight using GraphicViews. The main functionally (synronizing the view
> range between individual views, panning, scaling) is either already
> implemented or (hopfully) easily to implement. The GraphicsItems can be
> added to a shared scene and I will use the drawBackground to paint the
> 'view local' items.
>
> The standing question now is: Is there any drawback to this approach? Do I
> miss something when using GraphicsViews over ViewBoxes?
>
>
> Best,
> Acha
>
> --
> 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/03ffe149-02e0-41bc-9d27-e68223cbf69c%40googlegroups.com
> <https://groups.google.com/d/msgid/pyqtgraph/03ffe149-02e0-41bc-9d27-e68223cbf69c%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/CACZXET9q-wTrtq-2SKQY-7JBM5bMZ%2BA5-HHVvPvxGx7aSVhZ2w%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to