waveform viewer in wxPython

Chris Barker wrote:

Partridge Michael-A13286 wrote:
Make sure you have the latest version of wxPyPlot, which may
or may not
be what's in the wxPython library...which version of wxPython are you
using? I think 2.5.1 has a recent wxPyPlot, but I'm not sure
about older
releases

http://www.cyberus.ca/~g_will/wxPython/wxpyplot.html

Zoom should be easy, adding the cursors should be doable, you
should be
able to access the wxClientDC directly, or alter wxPyPlot.

Cool, hadn't come across wxPyPlot. Looks pretty good (especially if I can convince my users that they don't need cursors :slight_smile: ).

Oh, btw, I'm using wxPython 2.4.2.4 with python 2.2.3 (not for any particular reason other than that's what was easy to install at the time).

> 1) use the wxOGL package.

I'm not sure this is such a good idea, it doesn't natively deal with
floating point coords for you, it's kind of a dying package, and it's
written in C++, so reading, fixing or modifying the code
requires C++.
It was designed specifically for CASE style diagrams, so
might not be as
well suited to plotting.

Thanks for the advice.

> 2) use FloatCanvas. This seems to give pretty fine control
over placement of shapes and comes with zoom. Haven't
experiemented with a draggable object, but I assume would be possible.

The version in the wxPython lib is old, and does not have any mouse
interaction. There is a newer one here:
http://home.comcast.net/~chrishbarker/FloatCanvas/

<snipped very useful info from Chris>

Yeah, ok, I might see how I go with wxPyPlot in the first case (still prototyping the gui so trying to get as many features in as quickly as possible so I can get feedback). If I find that I need to go to something like FloatCanvas I'll get in touch with you.

Thank you very much for all the advice/help!

-Michael