colormap menu

Hi,

I created a menu for selecting colormaps from a context menu on the
graph. The attached code cmapmenu.py contains a runnable example.

I've only implemented support for wx.

In general, I would like to be able to add context menu operations
to individual artists on the plot, and will be doing so for my
own applications. Is this something that could live in the
matplotlib backends? Are there users of Qt, Gtk, Tk, ... who
are willing to add support for them?

  - Paul

cmapmenu.py (6.79 KB)