JKQtPlotter/examples/simpletest_speed/speedtestplot.h
jkriege2 2d08250db6 - added new graph: JKQTPSingleColumnSymbolsGraph
- fixed additional renames JKQTPLotter->JKQTPlotter
- improved documentation (boxplots, JKQTMathText)
- added several examples
2019-01-20 16:15:10 +01:00

25 lines
466 B
C++

#pragma once
#include <array>
#include <random>
#include <chrono>
#include "jkqtplotter/jkqtplotter.h"
#define NDATA 500
class SpeedTestPlot: public JKQTPlotter {
Q_OBJECT
protected:
std::array<double, NDATA> X, Y, Y2;
const double dx;
double x0;
std::chrono::system_clock::time_point t_lastplot;
public:
SpeedTestPlot();
virtual ~SpeedTestPlot();
public slots:
void plotNewData();
};