By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,551 Members | 1,127 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,551 IT Pros & Developers. It's quick & easy.

matplotlib: howto set title of whole window?

P: n/a
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.

May 11 '07 #1
Share this Question
Share on Google+
2 Replies


P: n/a
On May 11, 3:44 pm, dmitrey <open...@ukr.netwrote:
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()

--
Hope this helps,
Steven

May 11 '07 #2

P: n/a
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.

On May 12, 2:52 am, attn.steven....@gmail.com wrote:
On May 11, 3:44 pm, dmitrey <open...@ukr.netwrote:
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()

--
Hope this helps,
Steven

May 12 '07 #3

This discussion thread is closed

Replies have been disabled for this discussion.