I think I've found it. But now I need to know what the values should be. I assume the application name should be "matplotlib" (no quotes, with no capitalization). What about the window role? I am think either "figure" or "plot" would be good, probably the former (once again without quotes and with no capitalization). Is that reasonable? It is easy to change later, although the change should be consistent across all backends.
The other issue is whether I should use the same window role for all backends, or separate roles for each backend (such as "qt4 figure"). Does anyone have an opinion on this? -Todd On Tue, Jan 18, 2011 at 12:54 PM, todd rme <toddrme2...@gmail.com> wrote: > Maybe, I am not that familiar with X11 programming. Do you happen to > know which source files I should change? > > -Todd > > On Tue, Jan 18, 2011 at 8:39 AM, Michael Droettboom <md...@stsci.edu> wrote: >> You're right -- matplotlib doesn't set any of these attributes. Fixing >> this problem would involve adding a few lines of code to set them in >> each GUI backend (since each GUI toolkit, gtk, qt, tk etc. presumably >> handles them differently). Is this something you'd be interested in >> providing a patch for? >> >> Mike >> >> On 01/15/2011 03:06 PM, todd rme wrote: >>> On X11 systems, windows generally provide information about themselves >>> to the system. These include things like the window title, window >>> class, window role, and window type. These allow window managers to >>> properly handle the windows, and in some window managers (like KDE's >>> kwin), lets you set rules for windows of certain types. >>> >>> As best as I can tell, by default matplotlib does not provide most of >>> this information. It provides the window title and the window type, >>> but it doesn't seem to provide the window class or the window role. >>> These two properties, however, are exactly the properties someone >>> would want to use when trying to set up rules for particular windows. >>> This makes it impossible to set window-specific rules for the plots. >>> >>> Is there something in the matplotlib configuration that would let >>> someone set these properties, and if not is there any way matplotlib >>> could set them itself? >>> >>> I'm sorry if this is a common question. >>> >>> -Todd >>> >>> ------------------------------------------------------------------------------ >>> Protect Your Site and Customers from Malware Attacks >>> Learn about various malware tactics and how to avoid them. Understand >>> malware threats, the impact they can have on your business, and how you >>> can protect your company and customers by using code signing. >>> http://p.sf.net/sfu/oracle-sfdevnl >>> _______________________________________________ >>> Matplotlib-users mailing list >>> Matplotlib-users@lists.sourceforge.net >>> https://lists.sourceforge.net/lists/listinfo/matplotlib-users >> >> >> ------------------------------------------------------------------------------ >> Protect Your Site and Customers from Malware Attacks >> Learn about various malware tactics and how to avoid them. Understand >> malware threats, the impact they can have on your business, and how you >> can protect your company and customers by using code signing. >> http://p.sf.net/sfu/oracle-sfdevnl >> _______________________________________________ >> Matplotlib-users mailing list >> Matplotlib-users@lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/matplotlib-users >> > ------------------------------------------------------------------------------ Protect Your Site and Customers from Malware Attacks Learn about various malware tactics and how to avoid them. Understand malware threats, the impact they can have on your business, and how you can protect your company and customers by using code signing. http://p.sf.net/sfu/oracle-sfdevnl _______________________________________________ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users