Window minimize icon

I've added an icon for use for when matplotlib windows are

    > minimized and chose an arbitrary icon (back.svg) to get it
    > working on the GTK+ backend. Since the icon has to be
    > resized to fit in the panel, and svg are good at resizing,
    > I used svg instead of the usual png format (png or other
    > formats could be used instead if required).

    > John, if you can find/create a suitable matplotlib icon
    > just copy it to images/matplotlib.svg and overwrite the
    > existing icon file.

I had the bright idea to use the svg backend to generate the
minimization icon. See examples/matplotlib_icon.svg. It displays
correctly on my web browser, but not when minimized. I don't know if
this reflects a problem in the svg backend, or how gtk handles svg
icons.

If we can get this example to work, the next thing to do is connect
the icon setting to the window minimize event, and set the icon to be
the svg output of the current figure window!

JDH

I viewed matplotlib.svg in gqview (on Linux) and it looks like the icon
image only uses about two thirds of the svg width and height, so the
minimize icon ends up being too small.

Steve

···

On Tue, 2004-07-27 at 04:36, John Hunter wrote:

I had the bright idea to use the svg backend to generate the
minimization icon. See examples/matplotlib_icon.svg. It displays
correctly on my web browser, but not when minimized. I don't know if
this reflects a problem in the svg backend, or how gtk handles svg
icons.

If we can get this example to work, the next thing to do is connect
the icon setting to the window minimize event, and set the icon to be
the svg output of the current figure window!

JDH