When creating a figure in matplotlib by plt.figure(num)
, num
can be a number or a string.
I would like to obtain the string used for num
.
As in here I can do
plt.figure(3); plt.gcf().number => 3
but this does not work if num
is a string.
How to get the string value?
(I am not asking about suptitle
)