Bug 359962

Summary: [wish] linear interpolation in Plotter (QtQuick item)
Product: [Frameworks and Libraries] frameworks-kdeclarative Reporter: Lukas Schneiderbauer <lukas.schneiderbauer>
Component: generalAssignee: Marco Martin <notmart>
Status: REPORTED ---    
Severity: wishlist CC: kdelibs-bugs-null
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: Plotter: add support for linear interpolation

Description Lukas Schneiderbauer 2016-03-01 18:30:26 UTC
The QtQuick item 'Plotter' (as for example used in the plasma-nm plasmoid) always uses catmull-rom interpolation on any data it gets. This might not always be the desired way of plotting the given data. Also, it can lead to poor artefacts (for example on big steps of the y-values).
To remedy this, I suggest to add an option to choose linear interpolation instead of Catmull-Rom interpolation.

The soon to be attached patch implements this by adding a Q_PROPERTY "interpolation" to the Plotter-class, which allows the options Interpolation.Linear and Interpolation.CatmullRom. The default is still Interpolation.CatmullRom to avoid changing the behaviour of existing Plasmoids.

Reproducible: Always
Comment 1 Lukas Schneiderbauer 2016-03-01 18:31:28 UTC
Created attachment 97629 [details]
Plotter: add support for linear interpolation

proposed patch