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
Created attachment 97629 [details] Plotter: add support for linear interpolation proposed patch