![](/img/trans.png)
[英]How to remove the window title of a matplotlib figure when using the widget backend
[英]Remove window title in matplotlib figure
在 jupyter notebook (python3) 中运行以下代码
%matplotlib notebook
import matplotlib.pyplot as plt
f, (ax1, ax2) = plt.subplots(1, 2, figsize=(9,2.5))
生成的图形被嵌入一个带有巨大边框的窗口中,这浪费了空间。 到目前为止,我只找到了一个函数来设置图形“canvas.set_window_title”的窗口标题。 如何更改窗口布局? 特别是如何去除窗口标题、窗口标题和“停止交互”按钮所在的区域?
编辑:我想保持 matplotlib 的交互模式。
代替:
%matplotlib notebook
和
%matplotlib inline
我看到你想保持互动……我不知道是否可以; inline
不是交互式的。 您可能不得不适应浮动窗口。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.