Set matplotlib default figure window title
问题 The default window title of a figure is figure X, where X is increased each figure. I know how to change the title of a figure: fig = pylab.gcf() fig.canvas.set_window_title('Test') But how do I change the default window title (So that it will be Test 1, Test 2 etc..)? so that I will not need to change the window title each time. I did not find a key in the mpl.rcParams Thanks 回答1: When creating a figure using matplotlib.pyplot.subplots , there is an optional argument num that, even if not