Knuppknou
Knuppknou

Reputation: 31

Remove window title in matplotlib figure

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.

Screenshot of the output.

Upvotes: 3

Views: 1773

Answers (1)

Reblochon Masque
Reblochon Masque

Reputation: 36662

replace:

%matplotlib notebook

with

%matplotlib inline

Edit:

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

Related Questions