I would go with
zentara's suggestion to just do normal xy plotting on a canvas widget. "Good old Perl/Tk" might a tad slow if you have lots of data points per display, but there's Inline::C and clever tricks for data reduction in case you are trying to put (say) pu to 200,000 sample points onto a time line that's only 1000 pixels wide. But you already plan on using something newer than that, and speed probably won't be much of an issue. As for this point:
I figure {vector graphics} would make zooming in and out less painful.
In terms of time-series waveform data, it's fairly typical to want to control the vertical and horizontal zoom independently -- e.g. zoom in or out on just the y-axis scale according to the amplitude of (the portion of) the waveform that happens to be on display at the moment, or zoom in or out on just the x-axis scale in order to see either more detail or more data in the window. Maybe vector graphics does this very elegantly, but if your xy-plot rendering is reasonably fast, it's just as good to redraw however many dots or line segments are needed to fill a 1000-pixel-wide display of a time series.
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.