>>>>> "Steve" == Steve Chaplin <ste...@ya...> writes:
Steve> I've added an icon for use for when matplotlib windows are
Steve> minimized and chose an arbitrary icon (back.svg) to get it
Steve> working on the GTK+ backend. Since the icon has to be
Steve> resized to fit in the panel, and svg are good at resizing,
Steve> I used svg instead of the usual png format (png or other
Steve> formats could be used instead if required).
Steve> John, if you can find/create a suitable matplotlib icon
Steve> just copy it to images/matplotlib.svg and overwrite the
Steve> 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
|