psyplot / psy-simple

psy-simple: The psyplot plugin for simple visualizations
https://psyplot.github.io/psy-simple
1 stars 3 forks source link

NEW FEATURE: add a formatoption to calculate the rolling mean #3

Open Chilipp opened 6 years ago

Chilipp commented 6 years ago

Summary

add a 'rolling' formatoption to calculate the rolling mean for line plots

Reason

For wiggly lines, it is often not very useful to display them as is but rather to display the rolling mean.

Detailed explanation

Of course one can always do da.rolling(50).mean().psy.plot(...) but since the window (50) might vary, it would be a useful feature to add a formatoption to the psy_simple.plotters.LinePlotter for it. This should then have START priority.