[vtkusers] Smoothing 2D plot in ChartXY
Marcus D. Hanwell
marcus.hanwell at kitware.com
Wed Jun 29 11:46:37 EDT 2011
On Thu, Jun 23, 2011 at 10:46 AM, Yuri Timenkov <yuri at timenkov.ru> wrote:
> Hello,
> I have a raw set of 2D data from vtkTable using new vtkChartXY API (function
> in time). But it has a lot of peaks and falls and too much details (see
> example in attachment). I want to make it look niceer, so I see 3 options:
>
> Draw every Nth point.
> Reduce number of points my averaging adjacent values.
> Draw kind of envelope.
>
> Does VTK provide any means to do it automatically or I have to prepare data
> somehow before plotting?
I am not aware of any filters that do that, but this kind of thing
could be made into a filter. It would be good to get a few of the
commonly used algorithms encapsulated into some filters for treating
chart data, and the pipeline would be the right place to do it.
Marcus
More information about the vtkusers
mailing list