MCPcopy Create free account
hub / github.com/deepglint/FAST_LIO_LOCALIZATION_HUMANOID / subplot

Function subplot

FAST_LIO/include/matplotlibcpp.h:1820–1835  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1818}
1819
1820inline void subplot(long nrows, long ncols, long plot_number)
1821{
1822 detail::_interpreter::get();
1823
1824 // construct positional args
1825 PyObject* args = PyTuple_New(3);
1826 PyTuple_SetItem(args, 0, PyFloat_FromDouble(nrows));
1827 PyTuple_SetItem(args, 1, PyFloat_FromDouble(ncols));
1828 PyTuple_SetItem(args, 2, PyFloat_FromDouble(plot_number));
1829
1830 PyObject* res = PyObject_CallObject(detail::_interpreter::get().s_python_function_subplot, args);
1831 if(!res) throw std::runtime_error("Call to subplot() failed.");
1832
1833 Py_DECREF(args);
1834 Py_DECREF(res);
1835}
1836
1837inline void subplot2grid(long nrows, long ncols, long rowid=0, long colid=0, long rowspan=1, long colspan=1)
1838{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected