summaryrefslogtreecommitdiff
path: root/src/Persistence_representations/utilities/persistence_landscapes/plot_landscapes.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/Persistence_representations/utilities/persistence_landscapes/plot_landscapes.cpp')
-rw-r--r--src/Persistence_representations/utilities/persistence_landscapes/plot_landscapes.cpp27
1 files changed, 12 insertions, 15 deletions
diff --git a/src/Persistence_representations/utilities/persistence_landscapes/plot_landscapes.cpp b/src/Persistence_representations/utilities/persistence_landscapes/plot_landscapes.cpp
index 670f0364..4761a095 100644
--- a/src/Persistence_representations/utilities/persistence_landscapes/plot_landscapes.cpp
+++ b/src/Persistence_representations/utilities/persistence_landscapes/plot_landscapes.cpp
@@ -22,26 +22,23 @@
#include <gudhi/Persistence_landscape.h>
-
-
using namespace Gudhi;
using namespace Gudhi::Persistence_representations;
#include <iostream>
#include <sstream>
+int main(int argc, char** argv) {
+ std::cout << "This program plot persistence landscape stored in a file (the file needs to be created beforehand). "
+ "Please call the code with the name of a landscape file \n";
+ Persistence_landscape l;
+ l.load_landscape_from_file(argv[1]);
+
+ std::stringstream ss;
+ ss << argv[1] << "_gnuplot_script";
+ l.plot(ss.str().c_str());
+
+ std::cout << "Done \n";
-int main( int argc , char** argv )
-{
- std::cout << "This program plot persistence landscape stored in a file (the file needs to be created beforehand). Please call the code with the name of a landscape file \n";
- Persistence_landscape l;
- l.load_landscape_from_file( argv[1] );
-
- std::stringstream ss;
- ss << argv[1] << "_gnuplot_script";
- l.plot( ss.str().c_str() );
-
- std::cout << "Done \n";
-
- return 0;
+ return 0;
}