diff options
author | Samuel Fadel <samuelfadel@gmail.com> | 2015-12-16 14:00:08 +0100 |
---|---|---|
committer | Samuel Fadel <samuelfadel@gmail.com> | 2015-12-16 14:02:30 +0100 |
commit | a184000e2086c0d86d5aef20d715f5e884a63ff3 (patch) | |
tree | 836fcb3363edd0e3d247ed1e99fbdb2f0982909f /historygraph.cpp | |
parent | f55e5dcfa82b552a1eb6642b093ed42a48565a3a (diff) |
Scale & LinearScale are now template classes.
Diffstat (limited to 'historygraph.cpp')
-rw-r--r-- | historygraph.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/historygraph.cpp b/historygraph.cpp index 0f05642..8ed5be4 100644 --- a/historygraph.cpp +++ b/historygraph.cpp @@ -122,8 +122,8 @@ void HistoryGraph::addScatterplot(QSGNode *node, const HistoryGraph::HistoryItem const arma::mat &xy = historyItemNode->item(); int vertexCount = calculateCircleVertexCount(GLYPH_SIZE / 2); - LinearScale sx(xy.col(0).min(), xy.col(0).max(), x, x + w); - LinearScale sy(xy.col(1).min(), xy.col(1).max(), y + h, y); // reverse on purpose + LinearScale<float> sx(xy.col(0).min(), xy.col(0).max(), x, x + w); + LinearScale<float> sy(xy.col(1).min(), xy.col(1).max(), y + h, y); // reverse on purpose for (arma::uword i = 0; i < xy.n_rows; i++) { const arma::rowvec &row = xy.row(i); |