visualization-gnuplot-simple.cc

Example shows simple Gnuplot visualization.

// Copyright (C) 2009 by Thomas Moulard, AIST, CNRS, INRIA.
//
// This file is part of the roboptim.
//
// roboptim is free software: you can redistribute it and/or modify
// it under the terms of the GNU Lesser General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// roboptim is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public License
// along with roboptim. If not, see <http://www.gnu.org/licenses/>.
#include "common.hh"
#include <iostream>
using namespace roboptim;
using namespace roboptim::visualization;
int run_test ()
{
using namespace roboptim::visualization::gnuplot;
Gnuplot gnuplot = Gnuplot::make_gnuplot ();
// Display nothing, generate just some valid Gnuplot commands.
std::cout
<< (gnuplot
<< set ("term", "x11 enhanced persist")
<< comment ("Hello, world!")
<< cd ("/tmp")
<< reset
);
return 0;
}
GENERATE_TEST ()