Hi there,
I am trying to find the min and max values in the Graph.
To do that I use a Lambda:
QCPData min = *std::min_element(ui->plot->graph(0)->data()->begin(), ui->plot->graph(0)->data()->end(),[](QCPData const & s1, QCPData const & s2) {return s1.value < s2.value;});
//QCPData max = *std::max_element(ui->plot->graph(0)->data()->begin(), ui->plot->graph(0)->data()->end(),[](QCPData const & s1, QCPData const & s2) {return s1.value > s2.value);});
But then min.value and max.value have exactly the same value, wich cannot be. Am I using it correctly? I am using 1.3.2 version.
Also can I find the documentation for this version somewhere? Because in the Documentation link in this website I cannot find the QCPDataMap class anylonger - as I see it has been replaced in beta 2 . Right?