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.


Defines

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

Functions

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

Define 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) "()"); \
      }
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines