Ask Your Question

Changing rqt_plot x-axis while it plays in real-time

asked 2014-06-11 09:50:00 -0500

Eric Schneider gravatar image

Hi, I'm new and just going through the turtlesim tutorials. When I probe the variables with rqt_plot and watch them change over time, I would really like to expand the x-axis from a 5 second window to an n-second window, in order to see larger patterns, but I don't know how even after some googling. Thoughts? One can pause the graph and change x-min and x-max in the Figure options, but that only works when the graph is paused. The change vanishes once you turn auto-scrolling back on.

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted

answered 2014-06-11 12:14:01 -0500

ahendrix gravatar image

Yep. This is a bug in the matplotlib backend of the current released version of rqt_plot. If you have pyqtgraph or qwtplot installed, those backends tend to do a better job at this. (Click the little gear icon in the widget's title bar to switch backends)

The latest version from source no longer has this bug, as of yesterday. See and

edit flag offensive delete link more


Is there a way to change the parameters in the X and Y axis, as well as their names, etc? I want to plot, for example, my robot's velocity vs Current instead of velocity vs time.

Pototo gravatar image Pototo  ( 2014-07-01 23:54:31 -0500 )edit

Sorry, no.

ahendrix gravatar image ahendrix  ( 2014-07-02 00:29:51 -0500 )edit

answered 2014-06-11 15:37:20 -0500

Eric Schneider gravatar image

Thanks! I just wanted a rough look, so the QwtPlot worked. The right-click and drag interface seemed a bit rough and hard to use, but that's okay.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower


Asked: 2014-06-11 09:50:00 -0500

Seen: 2,152 times

Last updated: Jun 11 '14