matplotlib中此标题栏的正式名称是什么,如何隐藏它? [英] What is the official name of this title bar from matplotlib and how do I hide it?
问题描述
我是matplotlib的新手,我不知道下图中带箭头的标题栏的名称是什么.
参见 我如何设置为我的IPython/IHaskell/Jupyter笔记本自定义CSS?了解如何在默认情况下将其潜在地应用于任何笔记本.
另一种方法是不使用 %matplotlib notebook
后端,而是使用 %matplotlib 小部件
.这是 jupyter-matplotlib 的一部分,当前需要单独安装,如链接所示.默认情况下,它将没有标题栏,同时仍提供完整的交互性.有一个 looong term 计划让它取代 %matplotlib notebook
后端 - 但looong"在这里有很多o".
I am new to matplotlib, and I don't know what the name of the title bar arrowed in following image is.
I googled and dug from matplotlib official documentation, but I didn't get a clue.
What is the official name of this title bar from matplotlib, and how do I to hide it?
I don't want to remove the interactivity; I just want to hide the bar, because when I interact with the plot, the title bar flex/Stretch rapidly, which is so boring and distracting
The title bar of the figure may be called dialog-titlebar
judging from its name in the layout. It is a <div>
element of the output's DOM tree. To hide such elements, they may be given the display: none;
property via CSS. Somewhere in your notebook you may state
%%html
<style>
div.ui-dialog-titlebar {display: none;}
</style>
See How do I set custom CSS for my IPython/IHaskell/Jupyter Notebook? for how to apply this potentially to any notebook by default.
An alternative is to not use the %matplotlib notebook
backend, but %matplotlib widget
instead. This is part of jupyter-matplotlib and currently needs to be installed separately as shown in the link. It'll by default have no titlebar while still providing full interactivity. There is a looong term plan to have it replace the %matplotlib notebook
backend - but "looong" has many "o"s here.
这篇关于matplotlib中此标题栏的正式名称是什么,如何隐藏它?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!