dilemma, plot or scope or ...

hello,

I've a dilemma, and as I don't know any arguments,
(although I have the feeling I know some ;-),
I can't make a decision.

I need something like a virtual oscillosope screen, something like this
聽聽http://gpib82357a.sourceforge.net/pyGPIBscope.htm

Now the component in wxPython that comes closest, is "Plot".
The alternative is from the pyGPIBscope, called "Scope" (also "derived" from "Plot" ).
(I've seen even a better module, but can't find it anymore :frowning: )
Both don't fulfill my needs totally, so I have to make a "MyScope" .

The source code of Scope is less than half the size of Plot.
For what I need, Scope is somewhat better suited (no uggly scrollbars, no zooming, no axis labels, ...)

The things I need extra, are:
- erase bar, following the actual sample in real time display
- crosshair or vertical cursor, to perform measurements
- easy control of timebase, gain and offset of signals (but all these controls can be outside of the plot function)
- dimmed grid / raster
I haven't looked into the code in detail, so I don't know if these extensions are (easily) possible :wink:

The easiest way for me, is probably to modify "Scope" or make an extended version derived from Scope.
Now I assume(realizing how difficult it was to find the module "Scope" ),
that nobody knows "Scope" and it's certainly not (and will never become) a standard component.
Therefor I've the feeling that extending or deriving from "Plot" might be a better solution for the longer term.

So I would like to hear other's opinion about this dilemma.

btw: why are there more than 1 sources of plot.py (with the same date) in my package ?

thanks,
Stef Mientki

Just to make things more complicated, wx.lib.floatcanvas is an option too:

http://morticia.cs.dal.ca/FloatCanvas/

Your best bet it so use the SVN version. Check out this demo:

http://morticia.cs.dal.ca/FloatCanvas/browser/trunk/Demos/MovingPlot.py

-Chris

路路路

--
Christopher Barker, Ph.D.
Oceanographer

Emergency Response Division
NOAA/NOS/OR&R (206) 526-6959 voice
7600 Sand Point Way NE (206) 526-6329 fax
Seattle, WA 98115 (206) 526-6317 main reception

Chris.Barker@noaa.gov

hi Chris,

I see you're the creator of FloatCanvas ...

Christopher Barker wrote:

Just to make things more complicated, wx.lib.floatcanvas is an option too:

http://morticia.cs.dal.ca/FloatCanvas/

I had seen that, but rejected it, because ...
... from what I saw, I judged it should be too slow :wink:
So how is speed compared to wx.plot ?

Your best bet it so use the SVN version. Check out this demo:

http://morticia.cs.dal.ca/FloatCanvas/browser/trunk/Demos/MovingPlot.py

I'll try that tomorrow.

thanks,
Stef Mientki

Hi Stef and List

I am afraid to weigh in here. I am just learning the utmost basics of WxPython. However the application I am slowly trying to build sounds very much like your oceanography application. I want to control and process data from analytical instruments like spectrophotometers and gas chromatographs etc.

I am planning on using matplotlib(aka Pylab). It has WX gui support and it can be used as a "live plot". If you are interested I can pass along everything I have on this topic.

I would love to see your application when it is finished-Patrick

Stef Mientki wrote:

路路路

hi Chris,

I see you're the creator of FloatCanvas ...

Christopher Barker wrote:

Just to make things more complicated, wx.lib.floatcanvas is an option too:

http://morticia.cs.dal.ca/FloatCanvas/

I had seen that, but rejected it, because ...
... from what I saw, I judged it should be too slow :wink:
So how is speed compared to wx.plot ?

Your best bet it so use the SVN version. Check out this demo:

http://morticia.cs.dal.ca/FloatCanvas/browser/trunk/Demos/MovingPlot.py

I'll try that tomorrow.

thanks,
Stef Mientki

---------------------------------------------------------------------
To unsubscribe, e-mail: wxPython-users-unsubscribe@lists.wxwidgets.org
For additional commands, e-mail: wxPython-users-help@lists.wxwidgets.org

Stef Mientki wrote:

I had seen that, but rejected it, because ...
... from what I saw, I judged it should be too slow :wink:
So how is speed compared to wx.plot ?

actually, I think it's faster than wx.plot -- I don't think wx,plot uses numpy, and numpy should help with making the transforms faster.

Why did you think it was slow?

BTW, I didn't mention Matplotlib, because it IS slow (for this sort of thing)

-CHB

路路路

--
Christopher Barker, Ph.D.
Oceanographer

Emergency Response Division
NOAA/NOS/OR&R (206) 526-6959 voice
7600 Sand Point Way NE (206) 526-6329 fax
Seattle, WA 98115 (206) 526-6317 main reception

Chris.Barker@noaa.gov

Patrick wrote:

I am planning on using matplotlib(aka Pylab). It has WX gui support and it can be used as a "live plot".

MPL is fabulous, but it is a bit slow for "real time" plotting -- is it working OK in that regard for you?

-Chris

路路路

--
Christopher Barker, Ph.D.
Oceanographer

Emergency Response Division
NOAA/NOS/OR&R (206) 526-6959 voice
7600 Sand Point Way NE (206) 526-6329 fax
Seattle, WA 98115 (206) 526-6317 main reception

Chris.Barker@noaa.gov

Hi Chris

Honestly I have not been able to test it throughly. The closed source applications I am trying to replace are also very slow(which is funny because they cost 15-20K U.S.) so I have not been that worried about speed.

I would love to collaborate with you on your project. I am not sure if the WX list is the right place for this but I might be of help with the instrumentation you use. Perhaps I could trade instrumentation for software assistance and collaboration. It looks like you are further ahead on the software side so I can only provide minimal help-Patrick

Christopher Barker wrote:

路路路

Patrick wrote:

I am planning on using matplotlib(aka Pylab). It has WX gui support and it can be used as a "live plot".

MPL is fabulous, but it is a bit slow for "real time" plotting -- is it working OK in that regard for you?

-Chris

Christopher Barker <Chris.Barker <at> noaa.gov> writes:

Stef Mientki wrote:
> I had seen that, but rejected it, because ...
> ... from what I saw, I judged it should be too slow
> So how is speed compared to wx.plot ?

actually, I think it's faster than wx.plot -- I don't think wx,plot uses
numpy, and numpy should help with making the transforms faster.

wx.plot does use numpy or numeric if the former is not available.

Christian

Christian K. wrote:

wx.plot does use numpy or numeric if the former is not available.

Then I'd expect the performance to be pretty similar.

I did contributed to wx.plot a good while back, adding double buffering, so I think it does pretty much the same thing as FloatCanvas when it draws -- it's all about the same really -- you need to transform your points to pixel coords, and draw to a bitmap with a DC, then blit the bitmap to the screen -- not much to it.

If you are updating a lot, and performance is an issue, you could strip out the double buffering, but I'm not sure you'd notice the difference.

-Chris

路路路

--
Christopher Barker, Ph.D.
Oceanographer

Emergency Response Division
NOAA/NOS/OR&R (206) 526-6959 voice
7600 Sand Point Way NE (206) 526-6329 fax
Seattle, WA 98115 (206) 526-6317 main reception

Chris.Barker@noaa.gov

hi Patrick,

Patrick wrote:

Hi Stef and List

I am afraid to weigh in here. I am just learning the utmost basics of WxPython. However the application I am slowly trying to build sounds very much like your oceanography application. I want to control and process data from analytical instruments like spectrophotometers and gas chromatographs etc.

Well I'm in the water business, but more in the medical research :wink:
In medical research the two most well known packages are Matlab and LabView,
I'ld love to replace them both with a BETTER package written as open source in Python.
My first attempts can be seen here
(data-acquisition and graphical UI is written in Delphi, signal analysis was originally done with embedded Matlab, now fully replaced by embedded SciPy)
Data Acquisition:
  http://oase.uci.kun.nl/~mientki/data_www/pic/jalcc/help/jalcc_data_acquisition.html
Signal WorkBench:
  http://oase.uci.kun.nl/~mientki/data_www/pic/jalcc/help/jallcc_signal_workbench.html
Signal Workbench application, compared to Matlab:
  http://oase.uci.kun.nl/~mientki/data_www/pic/jalcc/help/jallcc_swb_filters.html

cheers,
Stef Mientki