lucid  0.0.1
Lifting-based Uncertain Control Invariant Dynamics
Loading...
Searching...
No Matches
matplotlib.h File Reference
#include <pybind11/eigen.h>
#include <pybind11/embed.h>
#include <pybind11/stl.h>
#include <pybind11/numpy.h>
#include <array>
#include <map>
#include <stdexcept>
#include <string>
#include <vector>
#include "lucid/lib/eigen.h"

Classes

struct  lucid::plt::PlotKwargs
 Keyword arguments for the plot function. More...
 
struct  lucid::plt::PlotSurfaceKwargs
 Keyword arguments for plot_surface. More...
 
struct  lucid::plt::PlotWireframeKwargs
 Keyword arguments for plot_wireframe. More...
 
struct  lucid::plt::FillBetweenKwargs
 Keyword arguments for fill_between. More...
 
struct  lucid::plt::SaveKwargs
 Keyword arguments for savefig. More...
 
struct  lucid::plt::ScatterKwargs
 Keyword arguments for scatter. More...
 

Namespaces

namespace  lucid::plt
 Lucid's matplotlib wrapper.
 
namespace  lucid
 Root namespace for the lucid library.
 

Functions

void lucid::plt::backend (const std::string &name)
 Set the backend used by matplotlib.
 
bool lucid::plt::annotate (const std::string &text, const double x, const double y)
 Annotate the point xy with text.
 
int lucid::plt::figure (const int fig_number=-1)
 Create a new figure or select an existing figure.
 
template<class ContainerX, class ContainerY>
bool lucid::plt::plot (const ContainerX &x, const ContainerY &y, const PlotKwargs &kwargs={})
 Plot y versus x as lines and/or markers.
 
template<class ContainerX, class ContainerY, class ContainerZ>
bool lucid::plt::plot_surface (const ContainerX &x, const ContainerY &y, const ContainerZ &z, const PlotSurfaceKwargs &kwargs={})
 Create a surface plot.
 
template<class ContainerX, class ContainerY, class ContainerZ>
bool lucid::plt::plot_wireframe (const ContainerX &x, const ContainerY &y, const ContainerZ &z, const PlotWireframeKwargs &kwargs={})
 
template<class ContainerX, class ContainerY1, class ContainerY2>
bool lucid::plt::fill_between (const ContainerX &x, const ContainerY1 &y1, const ContainerY2 &y2, const FillBetweenKwargs &kwargs={})
 Fill the area between two horizontal curves.
 
bool lucid::plt::savefig (const std::string &filename, const SaveKwargs &kwargs={})
 Save the current figure as an image or vector graphic to a file.
 
bool lucid::plt::xlim (double left, double right)
 Set the x-axis view limits.
 
bool lucid::plt::ylim (double bottom, double top)
 Set the y-axis view limits.
 
std::array< double, 2 > lucid::plt::xlim ()
 Get the x-axis view limits.
 
std::array< double, 2 > lucid::plt::ylim ()
 Get the y-axis view limits.
 
void lucid::plt::show (const bool block=true)
 Show the current figure.
 
template<class ContainerX, class ContainerY>
bool lucid::plt::scatter (const ContainerX &x, const ContainerY &y, const ScatterKwargs &kwargs={})
 A scatter plot of y vs x with varying marker size and/or color.
 
template<class ContainerX, class ContainerY, class ContainerZ>
bool lucid::plt::scatter (const ContainerX &x, const ContainerY &y, const ContainerZ &z, const ScatterKwargs &kwargs={})
 A scatter plot of y vs x vs z with varying marker size and/or color.
 

Detailed Description

Author
Room 6.030
Benno Evers
Licence:
BSD 3-Clause License

A C++ wrapper for python's matplotlib. Inspired by Benno Evers' matplotlib-cpp