XForms: downsampling data before plotting via xy_plot

From: zaphodb (zaphodb@wanadoo.nl)
Date: Wed Mar 07 2001 - 08:42:22 EST

  • Next message: Steve Lamont: "Re: XForms: fl_refresh_fselector causes program crash ver. 0.89"

    # To subscribers of the xforms list from "zaphodb" <zaphodb@wanadoo.nl> :

    Hi All,

    Evidently my question got lost in the thread on the fselector problem.
    So, to give y'all a second chance ... ;-)
    No spam intended ....
     I've been using the xy_plot routine a lot and only recently I noticed
    that when trying to plot a huge number of items in one window,
    sometimes nothing is shown at all although it is apparent
    that the window is refreshed.
    I'm talking about plotting an audio signal as a waveform here.
     Another thing of course is that given a specific screenresolution
    it does not seem to make any sense to try and plot more points in
    a plot than there are pixels. This is also a waste of processing time.
    So what I'm wondering about now is
    whether someone has (already) come up with some sort of
    downsampling paradigm to reduce the number of points to plot
    to the sensible number (i.e. hor. or vert. resolution)
     (avoiding aliasing of course).

    To unsubscribe, send the message "unsubscribe" to
    xforms-request@bob.usuhs.mil or see
    XForms Home Page: http://world.std.com/~xforms
    List Archive: http://bob.usuhs.mil/mailserv/list-archives/

    This archive was generated by hypermail 2b29 : Wed Mar 07 2001 - 03:43:47 EST