diff options
author | Samuel Fadel <samuelfadel@gmail.com> | 2015-09-03 17:05:54 -0300 |
---|---|---|
committer | Samuel Fadel <samuelfadel@gmail.com> | 2015-09-03 17:05:54 -0300 |
commit | e00551288d06fc7d913aab6473dcab8fa9934410 (patch) | |
tree | 5c4daa7ea8b2e11bf783a5d57b33db0e44ad6635 /main.cpp | |
parent | e05a1bd658a7bacb4e13f05b7125ceed7a33dd4b (diff) |
Code standardization and new builtin continuous color scales scheme.
Diffstat (limited to 'main.cpp')
-rw-r--r-- | main.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -25,10 +25,11 @@ int main(int argc, char **argv) QQmlApplicationEngine engine(QUrl("qrc:///main_view.qml")); arma::mat dataset; - if (argc > 1) + if (argc > 1) { dataset.load(argv[1], arma::raw_ascii); - else + } else { dataset.load(std::cin, arma::raw_ascii); + } arma::mat X = dataset.cols(0, dataset.n_cols - 2); arma::vec labels = dataset.col(dataset.n_cols - 1); @@ -60,7 +61,7 @@ int main(int argc, char **argv) QObject::connect(&distortionObs, SIGNAL(mapChanged(const arma::vec &)), plot, SLOT(setColorData(const arma::vec &))); - ContinuousColorScale colorScale; + ContinuousColorScale colorScale = ContinuousColorScale::builtin(ContinuousColorScale::RED_GRAY_BLUE); colorScale.setExtents(-1, 1); plot->setColorScale(&colorScale); interactionHandler.setSubsample(Ys); |