Remove the "A" (auto range) button

291 views
Skip to first unread message

Nima Alamatsaz

unread,
Feb 9, 2018, 2:37:54 PM2/9/18
to pyqtgraph
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

Nima Alamatsaz

unread,
Feb 27, 2018, 2:49:00 PM2/27/18
to pyqtgraph
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!
Reply all
Reply to author
Forward
0 new messages