All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
matplotlib-commands.cc File Reference
#include <stdexcept>
#include "roboptim/core/config.hh"
#include <boost/format.hpp>
#include <boost/xpressive/xpressive.hpp>
#include <boost/preprocessor/stringize.hpp>
#include <roboptim/core/visualization/matplotlib-commands.hh>

Namespaces

namespace  roboptim
 defined(EIGEN_RUNTIME_NO_MALLOC) && !defined(ROBOPTIM_DO_NOT_CHECK_ALLOCATION)
 
namespace  roboptim::visualization
 Graphical visualization.
 
namespace  roboptim::visualization::matplotlib
 Matplotlib rendering.
 

Macros

#define MATPLOTLIB_UNARY_COMMAND(NAME)
 
#define MATPLOTLIB_UNARY_COMMAND_VAR(VAR, NAME)
 
#define MATPLOTLIB_UNARY_COMMAND_ARG(NAME, ARG)
 

Functions

ROBOPTIM_CORE_DLLAPI Import roboptim::visualization::matplotlib::import (const std::string &packages)
 Import function that follows the style of commands. More...
 
ROBOPTIM_CORE_DLLAPI Import roboptim::visualization::matplotlib::import (const std::string &from, const std::string &packages)
 Import function that follows the style of commands. More...
 
ROBOPTIM_CORE_DLLAPI Command roboptim::visualization::matplotlib::comment (const char *)
 Make a matplotlib comment. More...
 
ROBOPTIM_CORE_DLLAPI Command roboptim::visualization::matplotlib::set (const char *var, const char *val)
 Make a matplotlib set command. More...
 

Macro Definition Documentation

#define MATPLOTLIB_UNARY_COMMAND (   NAME)
Value:
Command \
NAME () \
{ \
return Command ("plt." BOOST_PP_STRINGIZE(NAME) "()"); \
}
#define MATPLOTLIB_UNARY_COMMAND_ARG (   NAME,
  ARG 
)
Value:
Command \
NAME (const char* ARG) \
{ \
return Command ((boost::format("plt." BOOST_PP_STRINGIZE(NAME) "(\"%1%\")") \
% ARG).str()); \
}
#define MATPLOTLIB_UNARY_COMMAND_VAR (   VAR,
  NAME 
)
Value:
Command \
NAME () \
{ \
return Command (BOOST_PP_STRINGIZE(VAR) " = plt." BOOST_PP_STRINGIZE(NAME) "()"); \
}