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

PyQtGraphDataPlot and MatDataPlot fail to load

asked 2013-03-15 09:23:42 -0500

rick187 gravatar image

updated 2014-01-28 17:15:45 -0500

ngrennan gravatar image


as soon as I launch rqt_plot using

rqt_plot "topic name"


rosrun rqt_plot rqt_plot "topic name"

I get the following errors

rqt_plot.plot: importing PyQtGraphDataPlot
rqt_plot.plot: import of PyQtGraphDataPlot failed
rqt_plot.plot: importing MatDataPlot
rqt_plot.plot: import of MatDataPlot failed

The plotting tools start but I miss the interface buttons. Moreover both the x and y scale don't change according to data. I am using Fedora 18 and groovy. I don't know where to start for debugging because I have never used python. Thanks for your help.

edit retag flag offensive close merge delete


Can you describe the command you used to run rqt_plot? You can add it to your your original question. Also what version of rqt_common_plugins you're using? You can get the version by $ dpkg -p ros-groovy-rqt-common-plugins on Ubuntu but not sure about Fedora..

130s gravatar image 130s  ( 2013-03-15 13:57:07 -0500 )edit

I don't know how to retrieve the version. Sorry but It wasn't me who installed ros on this machine and I don't have dpkg on mi Fedora distribution. Do you know any other way? BTW in the package.xml of rqt_plot it says 0.2.10.

rick187 gravatar image rick187  ( 2013-03-15 22:57:36 -0500 )edit

Actually, I'm seeing PyQtGraphDataPlot import failure on 1 of my machines too (Quantal 64b, Groovy, rqt_plot 0.2.14). Changing the loading order by modifying still yields the same failure, which indicates order doesn't matter. I'll ask the author.

130s gravatar image 130s  ( 2013-03-16 11:03:33 -0500 )edit

2 Answers

Sort by ยป oldest newest most voted

answered 2013-04-08 05:28:50 -0500

Dorian Scholz gravatar image

updated 2013-04-08 05:29:38 -0500

The messages you saw are not errors, but merely debug messages. They show that you are missing packages for two of the three available ploting backends:

  • MatPlotLib

  • PyQtGraph

If they are available pre-packaged for your distribution you can simply install them. If not, at least for PyQtGraph it should be enough the download the source code and put it into your Python path.

Since these two are missing, the least comfortable backend has to be used: QwtDataPlot. This one does not feature auto-scaling and other nice features, which the other two backends have. So if you want this, I suggest installing PyQtGraph.

edit flag offensive delete link more

answered 2014-12-14 03:03:14 -0500

Alexandre.Willame gravatar image

You need to manually install the PyQtGraph.

  1. Download the Debian/Ubuntu package on the PyQtGraph website
  2. Go to the download directory and type (my version of PyQtGraph is 0.9.8)

dpkg -i python-pyqtgraph_0.9.8-1_all.deb

You can now use

rqt_plot "topic name"


rosrun rqt_plot rqt_plot "topic name"

image description

There is no more errors.

edit flag offensive delete link more


You need to manually install the PyQtGraph.

Yes, as documented on the package wiki. Still +1 for reiterating that.

130s gravatar image 130s  ( 2014-12-14 03:58:34 -0500 )edit

Question Tools


Asked: 2013-03-15 09:23:42 -0500

Seen: 1,932 times

Last updated: Dec 14 '14