matplotlib: howto set title of whole window?

D

dmitrey

hi all,
does anyone know howto set title of whole window? (I mean not just
area above plot but string in the same line where buttons 'close',
'iconify', 'fullscreen' are situated)

Thx, D.
 
A

attn.steven.kuo

hi all,
does anyone know howto set title of whole window? (I mean not just
area above plot but string in the same line where buttons 'close',
'iconify', 'fullscreen' are situated)


Use coordinates to set a title for the current figure.
E.g.,

from pylab import *
from matplotlib.font_manager import FontProperties

figtitle = 'This is my title above all subplots'

t = gcf().text(0.5,
0.95, figtitle,
horizontalalignment='center',
fontproperties=FontProperties(size=16))

subplot(121)
subplot(122)
show()
 
D

dmitrey

No, it's just another one title
it produces a figure with name "Figure 1" but I should somehow replace
the string.
It is possible in MATLAB via
set(figureHandler, 'Name', 'my_string_here')

D.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,432
Messages
2,571,682
Members
48,796
Latest member
Greg L.

Latest Threads

Top