ros 运行rqt_plot报错、无法绘图、红字、matplotlib版本过低

1.指令后的错误信息
/usr/lib/python2.7/dist-packages/matplotlib/font_manager.py:273: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
warnings.warn(‘Matplotlib is building the font cache using fc-list. This may take a moment.’)
/usr/lib/python2.7/dist-packages/matplotlib/axis.py:1015: UserWarning: Unable to find pixel distance along axis for interval padding of ticks; assuming no interval padding needed.
warnings.warn("Unable to find pixel distance along axis "
/usr/lib/python2.7/dist-packages/matplotlib/axis.py:1025: UserWarning: Unable to find pixel distance along axis for interval padding of ticks; assuming no interval padding needed.
warnings.warn("Unable to find pixel distance along axis "
Traceback (most recent call last):
File “/opt/ros/kinetic/lib/python2.7/dist-packages/rqt_plot/data_plot/mat_data_plot.py”, line 107, in resizeEvent
self.figure.tight_layout()
在这里插入图片描述

2.个人解决方法(先安装pip)
安装pip:pip为python的包管理工具

参考链接:https://www.runoob.com/w3cnote/python-pip-install-usage.html

以下图片均转自该网站。如有侵权请联系。

在这里插入图片描述
在这里插入图片描述

3.升级matplotlib
$ pip show matplotlib
查看matplotlib版本,

然后升级,
在这里,我先用无线网络升级失败,然后我用手机做热点,升级成功。
$ pip install --upgrade matplotlib
升级完后运行,plot

$ rqt_plot
然后可以对数据进行绘图了。
在这里插入图片描述

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值