Hi,
I enhanced wxPlotCanvas somewhat. I need to rework it a little further
and might add some more stuff later, but since that won't happen
within the next few weeks I am posting it in it's current state. Maybe
this can go into cvs as well. Here's the ChangeLog:
wxPlotCanvas.py (27 KB)
···
2001-11-01 Jochen Küpper <jochen@jochen-kuepper.de>
* wxPlotCanvas.py: Start putting this into a more useful state. Only
catch Numeric ImportErrors, let other exceptions pass by. Add
documentation strings to many classes and functions. Some were copied
from TkPlotCanvas.
(BitmapType): Add this dictionary to map graphics mimetypes to
wxBITMAP_TYPEs.
(PlotCanvas.clear): Copy functionality from the demo AppFrame here
where it actually belongs.
(PlotCanvas.add, PlotCanvas.export): Added.
(PlotCanvas._axisInterval): Make this an if, elif, ... structure.
(wxPlotCanvasPrintout): Implemented. Mostly copied from
PrintFramework.py in wxPython/demos.
(PlotCanvas._rubberband): Add, copied from my wxplt-implementation. Add
possibility to delete last rubberband.
(PlotCanvas._zoom): Added. Only approximate zooming for now. Needs to
be reworked!
(PlotCanvas._mouse): Make this a generic handler for all mouse events
we respond to.
(AppFrame): Enhance demo, use additional PlotCanvas features.
Greetings,
Jochen
--
Einigkeit und Recht und Freiheit http://www.Jochen-Kuepper.de
Liberté, Égalité, Fraternité GnuPG key: 44BCCD8E
Sex, drugs and rock-n-roll