Reputation: 31
Running the following code in a 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". 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.
Upvotes: 3
Views: 1773
Reputation: 36662
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. You may have to settle for a floating window.
Upvotes: 2