backend_wx update revision 1.9

I have just made a further update to backend_wx.

Details below.

regards

Jeremy

Changes are:
- Support for mousewheel: using the mousewheel anywhere on the
  toolbar or client area will perform the last selected interactive
  function (if any)
- Added a status bar to interactive figure. This gives tooltips as
  mouse travels over buttons, and indicates the last selected
  interactive function: this is the function which will be called
  when the mousewheel is used.
- Fixed bug where legend was not displayed
- Fixed bug no clipping performed on text labels
- Fixed bug script session does not exit cleanly on Windows 2000
- Fixed bug vertical text renders incorrectly. Actually this is not
  a bug, but a wxPython feature: if you select a non-TrueType font
  on Windows platform, display of rotated text is not possible. Fix
  (for demo programs) was to trap the handle 'courier' and make it
  map to a TrueType font. Longer term fix is to make sure that you
  use a TrueType font.

Not yet implemented:
- Printing
- Measure between two points

Known bugs / issues:
- Under Windows 2000, the Figure window is larger than the figure
  (OK on Linux, however)
- pcolor almost works! See pcolor_demo. But there appears to be a
  rounding error in the locations of the patches, shich gives a
  banded appearance to the pcolor
- xlabel location is incorrect. Actually, I'm having a great deal
  of trouble tracking this one down.
- Display of axes menu under wxGTK is ugly (this is more of a wxGTK
  implementation issue!)
- No axes selected when menu initially called - have to press the
  menu key to 'select' an axis. Behaviour here could be improved.
- Using Y axis zoom causes vertical axis text to become misplaced.
- Vertical text renders incorrectly if you use a non TrueType font
  on Windows. This is a known wxPython issue.

The following example programs work for me (subject to caveats above):

···

---------------------------------------------------------------
                        > Windows 2000 | Linux |
                        > wxPython 2.3.3 | wxPython 2.4.2.4 |
--------------------------------------------------------------|
- arctest.py | OK |
- axes_demo.py | OK (1) |
- color_demo.py | OK |
- dynamic_demo.py | N/A (2) |
- embedding_in_gtk.py | N/A (2) |
- errorbar_demo.py | OK |
- figtext.py | OK |
- histogram_demo.py | OK |
- interactive.py | N/A (2) |
- interactive2.py | N/A (2) |
- legend_demo.py | OK |
- line_styles.py | OK |
- log_demo.py | OK |
- logo.py | FAIL (3) |
- mpl_with_glade.py | N/A (2) |
- mri_demo.py | FAIL (4) |
- mri_demo_with_eeg.py | FAIL (4) |
- multiple_figs_demo.py | OK |
- pcolor_demo.py | OK |
- scatter_demo.py | OK |
- simple_plot.py | OK |
- stock_demo.py | OK |
- subplot_demo.py | OK |
- system_monitor.py | N/A (2) |
- text_handles.py | OK |
- text_themes.py | OK |
- vline_demo.py | OK |
---------------------------------------------------------------

(1) - Do not see data in top right axis until zoom approx x5
      (probably a bug)
(2) - Script uses GTK-specific features - cannot not run,
      but wxPython equivalent should be written.
(3) - Script fails with: No such file or directory:
      'data/membrane.dat' - get the data file!
      (probably not a bug)
(4) - Script fails with: ValueError: string size must be a multiple
      of element size. (probably not a bug)