Hi Vasilije, Thanks for the answer. The set range functions will zoom in or out to the dimensions given, but they don't stop the graph from being movable. If you click on the graph, you can still move it around, which is really annoying to me.
I think there must be some other function I need to set. On Sunday, September 1, 2019 at 7:59:19 PM UTC-4, [email protected] wrote: > > Or even better with setRange(): > > http://www.pyqtgraph.org/documentation/graphicsItems/viewbox.html#pyqtgraph.ViewBox.setRange > > On Sun, Sep 1, 2019 at 4:56 PM <[email protected] <javascript:>> wrote: > >> Hi Gene, >> >> You could try to do that with setXRange and setYRange functions: >> >> http://www.pyqtgraph.org/documentation/graphicsItems/viewbox.html#pyqtgraph.ViewBox.setXRange >> >> >> Cheers, >> Vasilije >> >> On Sun, Sep 1, 2019 at 4:16 PM Gene Beidl <[email protected] >> <javascript:>> wrote: >> >>> When I click on any of the graphs with all the examples in the example >>> code, the graphs move, updating the x and y axes. >>> >>> I want to lock the graph in place and not float all about. How can I >>> make it unmovable? >>> >>> Thanks! >>> >>> >>> -- >>> 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] <javascript:>. >>> To view this discussion on the web visit >>> https://groups.google.com/d/msgid/pyqtgraph/f87d8b83-8c12-49a2-aa0c-571bb4ac9b82%40googlegroups.com >>> >>> <https://groups.google.com/d/msgid/pyqtgraph/f87d8b83-8c12-49a2-aa0c-571bb4ac9b82%40googlegroups.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/e2be7377-d566-4a67-8295-14b0139c62e6%40googlegroups.com.
