Notebook: How to set the window title for matplotlib

Created on 1 Jan 2016  路  3Comments  路  Source: jupyter/notebook

Using %matplotlib notebook for the interactive plot, I can set the window title with

plt.gcf().canvas.set_window_title('This title does not last')

but once the cell finishes execution, the title is reset to _Figure 1_. How should this title be set to last?

jupyter-window-title

Most helpful comment

Okay, I can set the title with figure:

plt.figure(num='This is the title')

All 3 comments

Okay, I can set the title with figure:

plt.figure(num='This is the title')

This additionally prints <Figure size 432x288 with 0 Axes> which sounds like a debug message to me, does anyone know how to suppress that?

This additionally prints <Figure size 432x288 with 0 Axes> which sounds like a debug message to me, does anyone know how to suppress that?

You should end the line with a semicolon:
plt.figure(num='This is the title');

Was this page helpful?
0 / 5 - 0 ratings

Related issues

mikepqr picture mikepqr  路  3Comments

harshinielath picture harshinielath  路  3Comments

mowe96 picture mowe96  路  3Comments

fonnesbeck picture fonnesbeck  路  3Comments

CarlatBuffalo picture CarlatBuffalo  路  3Comments