Set various parameters of a plot window.

Hello everybody,

I am trying to write a rule for AwesomeWM, so that all matplotlib
related windows would be floating and not tiled. For this purpose I want
to filter matplotlib windows by some window attribute, like class,
instance or title. Is there a way to modify the window class or instance
easily?

I already know how to modify the title of the window, but this is not
sufficient as any dialogs, which would be created from the toolbar on
the plot window will not have the same title and the filtering can not
be applied to them.

If I have not explained this clearly enough, please let me know, what
I need to clarify.

All best,
Ignas A.

I am not quite sure what you are asking, but, can you simply just add your
own attribute to the window objects? Python is friendly that way, you know?
It's dynamic.

···

--
View this message in context: http://old.nabble.com/Set-various-parameters-of-a-plot-window.-tp33479160p33480317.html
Sent from the matplotlib - users mailing list archive at Nabble.com.

There are some dialogs not accesible using the mpl api. The save
dialogs seem to be the standard ones for the underlying toolkit so
reading the toolkit docs may help. Then there are the subplot params
configuration dialogs.

Goyo

···

El día 11 de marzo de 2012 11:31, gsal <salgerman@...287...> escribió:

I am not quite sure what you are asking, but, can you simply just add your
own attribute to the window objects? Python is friendly that way, you know?
It's dynamic.

Thanks for replies. What I wanted can be achieved with following:

import gobject
gobject.set_prgname('matplotlib')

This sets the instance attribute of the window to matplotlib instead of
the name of the script matplotlib window is produced from. All the
various window attributes can be looked-upon by running xprop tool from
terminal.

Is there any way of incorporating the above 2 lines of python code into
the matplotlibrc so that whenever matplotlib produces any windows, this
code is executed and the window has a proper name?

Cheers,
Ignas A.

···

On 11/03/12 14:19, Goyo wrote:

El día 11 de marzo de 2012 11:31, gsal <salgerman@...287...> escribió:

I am not quite sure what you are asking, but, can you simply just add your
own attribute to the window objects? Python is friendly that way, you know?
It's dynamic.

There are some dialogs not accesible using the mpl api. The save
dialogs seem to be the standard ones for the underlying toolkit so
reading the toolkit docs may help. Then there are the subplot params
configuration dialogs.

Goyo