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

Show matplotlib plot in rqt

asked 2017-11-10 05:11:41 -0600

ravijoshi gravatar image

I have a plot in matplotlib, which I am using to control the robot. I have plt.connect('motion_notify_event', self.moveRobot) function, which controls the robot. Below is the code snippet:

import matplotlib
from matplotlib import cm
import matplotlib.pyplot as plt

fig = plt.figure()
ax = fig.add_subplot(111)
ax.set_xlim((xmin, xmax))
ax.set_ylim((ymin, ymax))


plt.connect('motion_notify_event', self.moveRobot)

I want to see this plot inside rqt. Any suggestions, please?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2017-11-17 23:44:10 -0600

ravijoshi gravatar image

I am able to do it by following this tutorial. Thank you very much.

edit flag offensive delete link more

Question Tools


Asked: 2017-11-10 05:11:41 -0600

Seen: 1,302 times

Last updated: Nov 17 '17