禁用matplotlib工具栏 [英] disable matplotlib toolbar

查看:107
本文介绍了禁用matplotlib工具栏的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有办法禁用/隐藏显示在底部的matplotlib工具栏?

Is there a way to disable/hide matplotlib Toolbar that shows up on the bottom?

我尝试过这样的事情:

import matplotlib as mpl
mpl.rcParams['toolbar'] = 'None'

但不幸的是,这没有用.

but unfortunately that didn't work.

推荐答案

确保在实例化之前调用 mpl.rcParams['toolbar'] = 'None' 之前任何数字.

Make sure to call mpl.rcParams['toolbar'] = 'None' before you instantiate any figures.

这篇关于禁用matplotlib工具栏的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆