So I eventually figured how to remove the auto button. You just have to call the hideButtons() function on the PlotItem or PlotWidget object, as easy as that!
On Friday, February 9, 2018 at 2:37:54 PM UTC-5, Nima Alamatsaz wrote: > > Hi all, > > I'm using pyqtgraph for a data acquisition/visualization software. I have > a scrolling plot that all of its configuration such as axes range and scale > will be controlled by the GUI, and thus, I would like to limit direct user > interaction with the plot. > > So far I've managed to disable mouse scrolling (setMouseEnabled) and also > the context menu (setMenuEnabled), however clicking the "A" (auto range) > button on the bottom left corner can still cause some issues. > > I was wondering if it's possible to remove the "A" (auto range) button in > order to prevent any direct user interaction with the plot? > > Thanks! > > -na > -- 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/0245e57f-c9cf-4a7f-81b9-260a4de4291b%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
