SourceForge logo
SourceForge logo
Menu

matplotlib-users

From: Steve C. <ste...@ya...> - 2004年01月18日 05:32:05
When using the matlab interface (with the default GTK+ backend),
matlab.title() sets the current axis title, but can you set the window
title - it defaults to "Figure 1"?
-- 
Steve
From: John H. <jdh...@ac...> - 2004年01月18日 18:55:26
>>>>> "Steve" == Steve Chaplin <ste...@ya...> writes:
 Steve> When using the matlab interface (with the default GTK+
 Steve> backend), matlab.title() sets the current axis title, but
 Steve> can you set the window title - it defaults to "Figure 1"?
 Steve> -- Steve
In the matlab interface there is a function called
_get_current_fig_manager, which I didn't intend for public consumption
but perhaps I should remove the leading underscore and make it
'public'
The FigureManager class in backend_bases.py is used by backend
implementations. For the GTK backend, it contains a window attribute
with is a gtk.Window. You can change the title by doing
 figManager = _get_current_fig_manager()
 figManager.window.set_title('My title')
or call any of the other methods defined for gtk.Window
 http://www.gnome.org/~james/pygtk-docs/class-gtkwindow.html
For the wx backend there is a 'frame' attribute that you can use to
control the wx frame.
In the next release, I'll make a public version of this function.
JDH
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.
Thanks for helping keep SourceForge clean.
X





Briefly describe the problem (required):
Upload screenshot of ad (required):
Select a file, or drag & drop file here.
Screenshot instructions:

Click URL instructions:
Right-click on the ad, choose "Copy Link", then paste here →
(This may not be possible with some types of ads)

More information about our ad policies

Ad destination/click URL:

AltStyle によって変換されたページ (->オリジナル) /