cate icon indicating copy to clipboard operation
cate copied to clipboard

trend_line_parameter_request

Open Evadzi opened this issue 7 years ago • 4 comments

@JanisGailis Is it possible to have one additional parameter for the 'plot' operation to display trend (line ) for time series plot?

this parameter should also be created/enabled for the 'create time series plot from selected placemark' feature for the highlighted variable in the Cate's Workspace area.

Evadzi avatar Jun 22 '18 09:06 Evadzi

Do you mean doing a linear regression, or just adding a line y = ax + b, where a and b can be defined? What do you mean by trend value?

I think it's possible only to add this for the time-series plot, as plot() is a very generic operation that works on all kinds of data.

JanisGailis avatar Jun 22 '18 13:06 JanisGailis

@JanisGailis Thank you. yes for now the line y=ax+b that best fits a data set in the least squares sense is okay. In the future with regards to the plot() operator, Is it possible to have option for multiple plots?

Evadzi avatar Jun 25 '18 07:06 Evadzi

That is a question for @forman. If I remember correctly he researched that option and it was not trivial (impossible) to implement with the current plotting library.

JanisGailis avatar Jun 25 '18 08:06 JanisGailis

Yes, that's a very reasonable if not mandatory requirement for any data analysis. It should become part at least of the scatter plot. I don't remember the actual problem at that time anymore, but it should be easy to do in matplotlib, see here for example.

forman avatar Jun 27 '18 14:06 forman