简体   繁体   中英

Subscripts in matplotlib window title (figure num)

Is there a way to write a subscript in the window title ( plt.figure(num='Window title') ). I tried with the standard format for matplotlib mathematical expressions but it doesn't interpret it like it does for other texts:

plt.figure('$Something_{subscript}$')

在此处输入图片说明

The window title of a GUI application has nothing to do with matplotlib. You may check in how far the GUI application would support markup. Usually unicode is supported, hence something like plt.figure(u'H\₂SO\₄') would work and result in

在此处输入图片说明

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM