2 void JChart::Plot( T input ) {
8 uint k = static_cast<uint>( ceil( static_cast<double>(N) / 2048.0f ) );
10 for ( uint i = 0; i < N ; i += k ) {
11 time_series->append(i, input[i]);
14 auto min = std::min_element(input.begin(), input.end());
15 auto max = std::max_element(input.begin(), input.end());
17 chart->axisX()->setRange(0, N);
18 chart->axisY()->setRange(*min, *max);
22 void JChart::Plot( T input, std::string chart_title ) {
25 chart->setTitle( QString::fromStdString( chart_title ) );