Bug 359962 - [wish] linear interpolation in Plotter (QtQuick item)
Summary: [wish] linear interpolation in Plotter (QtQuick item)
Status: REPORTED
Alias: None
Product: frameworks-kdeclarative
Classification: Frameworks and Libraries
Component: general (show other bugs)
Version: unspecified
Platform: Other Linux
: NOR wishlist
Target Milestone: ---
Assignee: Marco Martin
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-03-01 18:30 UTC by Lukas Schneiderbauer
Modified: 2016-03-01 18:31 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
Plotter: add support for linear interpolation (5.24 KB, patch)
2016-03-01 18:31 UTC, Lukas Schneiderbauer
Details

Note You need to log in before you can comment on or make changes to this bug.
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