Hello Martin, thank you for the help, it was very interesting and it helped me found what didn't work. This said, I don't know if it was an error on my part, or an error in pyqt, I'll explain briefly:
When setting borders ( *self.graphWidget.ci.setBorder((0, 50, 100))* <- my piece of code, *graphWidget *being my GraphicsLayoutWidget ) it seems that these borders will stay on the widget after using the command line* self.graphWidget.ci.clear()*, thus cleaning the lines and axes, but leaving the square borders on the graph. Those squares didn't even resize when the program window was resized, although the new plots would as normal. They would stay static on the view. I don't know if it is a bad manipulation on my part, but I wanted to inform you just in case. If you need more info you can contact me at this email. Anyway, my program has continued its development thanks to your help, so thank you very much! - Thomas On Wed, Sep 21, 2022 at 9:56 PM Martin Chase <[email protected]> wrote: > ...I hit send a little early there. > > As to your error, yeah, I was wrong earlier, your GraphicsLayoutWidget > object is pyqtgraph-specific and doesn't behave like a QLayout. It has an > attr `ci` on which you should be able to call `.clear()`. You can use the > dev console code I posted a moment ago to inspect the e.g. > `vars(yourTopLevelWidget.graphWidget) and see if any of those attrs can be > `clear()`ed to good effect, or if there's something else on your top-level > widget which has a layout you can clear one way or the other. > > Good luck! > - Martin > > -- > You received this message because you are subscribed to a topic in the > Google Groups "pyqtgraph" group. > To unsubscribe from this topic, visit > https://groups.google.com/d/topic/pyqtgraph/WHhkfCL2YFQ/unsubscribe. > To unsubscribe from this group and all its topics, send an email to > [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/pyqtgraph/CAD_p8v2M5c1sgyjnPjWD4VwhiBxTrvF9HyxO38%3D0UAcs%3DU0Q8w%40mail.gmail.com > <https://groups.google.com/d/msgid/pyqtgraph/CAD_p8v2M5c1sgyjnPjWD4VwhiBxTrvF9HyxO38%3D0UAcs%3DU0Q8w%40mail.gmail.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/CACVxXtJaGbb0H41ez9gKDxF3DtKRwvgw_CtY5s0b-XPG225DJQ%40mail.gmail.com.
