ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

Subplots in rqt_plot

asked 2014-04-24 05:36:04 -0500

updated 2014-04-24 05:36:51 -0500


I remember in rxplot we could plot several topics either in the same plot, or in multiple subplots. This was achieved by separating the topic names with a comma or with a space.

I wrote a script to help multi-dimensional topic plotting because I was fed up with writing the list of sub-fields or indices. It allows giving only the raw topic name (with or without sub-fields), and the script will build the list of scalars to be plotted, that may come from scalar or array sub-fields.

However I'd like to allow subplotting in order to separate different sub-fields. For example geometry_msgs/Pose has two position and orientation sub-fields and it would be preferable that these two were displayed in separate plots.

It seems that separating fields with comma or space gives the same result in rqt_plot:

rqt_plot robot_pose/position/x,robot_pose/orientation/x
rqt_plot robot_pose/position/x robot_pose/orientation/x

Are there any plans to recover this functionality?

edit retag flag offensive close merge delete


Similar question here: Although marked as answered, the answer is not giving information about how to create subplots.

bit-pirate gravatar image bit-pirate  ( 2014-08-08 08:11:55 -0500 )edit

2 Answers

Sort by ยป oldest newest most voted

answered 2014-08-08 12:05:25 -0500

ahendrix gravatar image

There is no direct support for subplots in rqt_plot. As an alternative, you can start rqt directly and open multiple instances of the rqt_plot plugin to get multiple plots.

rqt_plot is a community package, so you are welcome to contribute subplots if they're useful to you, or open a feature request ticket and wait for someone else from the community to implement it.

edit flag offensive delete link more

answered 2014-08-08 08:23:56 -0500

bit-pirate gravatar image

Creating subplots via command line arguments seems not (yet) supported.

However, you can do it manually. See this answer for instructions:

edit flag offensive delete link more

Question Tools

1 follower


Asked: 2014-04-24 05:36:04 -0500

Seen: 3,919 times

Last updated: Aug 08 '14