ok so I found the method connected to the signal of the button. The button is 'autoBtn' and is connected to the 'autoBtnClicked' slot, which, calls the viewbox 'enableAutoRange' method. For what I wanted I had to rewrite the 'autoBtnClicked' method and play around the 'state' dictionary... very painful.
The button can be disbled by the "disableButtons" method on the PloItem class. On Monday, July 30, 2018 at 10:25:40 AM UTC-4, dhabbyc wrote: > > Hello everyone, > > I have a PlotWidget inside a pyside application. > > For my purposes, I have manipulated the X axis limits (using the > 'setXRange' method). But on the plot, on hover, appears a small button on > the bottom left corner: > > > <https://lh3.googleusercontent.com/-PAF7EOAAtjQ/W18femzSu-I/AAAAAAAAAec/mCuZbMu5hakzWGCdzhtOgUTef4UMNd3ngCLcBGAs/s1600/update_button.png> > Which 'updates', when clicked, the plot. But the result has no regard for > the range setted by 'setXRange'. > > How can I override the behaviour of this update? > > Regards. > > D. > -- 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/11868b54-1692-426e-89a8-db0b5eca15f4%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
