Hello Marcus,<div><br></div><div>Thank you for response and for great job: new chart API is much easier to use than old one. However VTK is still quite complex and more oriented for 3d rendering (including parallel processing).</div>
<div><br></div><div>Since I don't have tight CPU constraints for this project I chose python over C++. For initial prototype python is much better since it doesn't need to be compiled and moreover provides interactivity. Also it has good 2d plotting alternatives. For my purposes I picked matplotlib (moreover, it allows to have 2 axes on the same plot: <meta http-equiv="content-type" content="text/html; charset=utf-8"><a href="http://matplotlib.sourceforge.net/examples/api/two_scales.html">http://matplotlib.sourceforge.net/examples/api/two_scales.html</a>) and numpy's convolution routine (<a href="http://www.scipy.org/Cookbook/SignalSmooth">http://www.scipy.org/Cookbook/SignalSmooth</a>) makes it easy to fit whole program into a half of screen.</div>
<div><br></div><div>Regards,</div><div>Yuri</div><meta http-equiv="content-type" content="text/html; charset=utf-8"><div><br><div class="gmail_quote">On Wed, Jun 29, 2011 at 7:46 PM, Marcus D. Hanwell <span dir="ltr"><<a href="mailto:marcus.hanwell@kitware.com">marcus.hanwell@kitware.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div><div></div><div class="h5">On Thu, Jun 23, 2011 at 10:46 AM, Yuri Timenkov <<a href="mailto:yuri@timenkov.ru">yuri@timenkov.ru</a>> wrote:<br>
> Hello,<br>
> I have a raw set of 2D data from vtkTable using new vtkChartXY API (function<br>
> in time). But it has a lot of peaks and falls and too much details (see<br>
> example in attachment). I want to make it look niceer, so I see 3 options:<br>
><br>
> Draw every Nth point.<br>
> Reduce number of points my averaging adjacent values.<br>
> Draw kind of envelope.<br>
><br>
> Does VTK provide any means to do it automatically or I have to prepare data<br>
> somehow before plotting?<br>
<br>
</div></div>I am not aware of any filters that do that, but this kind of thing<br>
could be made into a filter. It would be good to get a few of the<br>
commonly used algorithms encapsulated into some filters for treating<br>
chart data, and the pipeline would be the right place to do it.<br>
<font color="#888888"><br>
Marcus<br>
</font></blockquote></div><br></div>