[英]Remove window title in matplotlib figure
Running the following code in a jupyter notebook (python3)在 jupyter notebook (python3) 中运行以下代码
%matplotlib notebook
import matplotlib.pyplot as plt
f, (ax1, ax2) = plt.subplots(1, 2, figsize=(9,2.5))
The resulting figure is embedded in a window with huge borders that are wasting space.生成的图形被嵌入一个带有巨大边框的窗口中,这浪费了空间。 Up to now, I only found a function to set the window title of a figure "canvas.set_window_title".
到目前为止,我只找到了一个函数来设置图形“canvas.set_window_title”的窗口标题。 How can the window layout be changed?
如何更改窗口布局? In particular, how can the window header be removed, the area where the window title and the "Stop Interaction" Button resides?
特别是如何去除窗口标题、窗口标题和“停止交互”按钮所在的区域?
EDIT: I want to keep the interactive mode of matplotlib.编辑:我想保持 matplotlib 的交互模式。
replace:代替:
%matplotlib notebook
with和
%matplotlib inline
I see you want to keep interactive... I don't know if it is possible;我看到你想保持互动……我不知道是否可以;
inline
is not interactive. inline
不是交互式的。 You may have to settle for a floating window.您可能不得不适应浮动窗口。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.