MCPcopy Create free account
hub / github.com/HViktorTsoi/FAST_LIO_LOCALIZATION / show

Function show

include/matplotlibcpp.h:2083–2106  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2081}
2082
2083inline void show(const bool block = true)
2084{
2085 detail::_interpreter::get();
2086
2087 PyObject* res;
2088 if(block)
2089 {
2090 res = PyObject_CallObject(
2091 detail::_interpreter::get().s_python_function_show,
2092 detail::_interpreter::get().s_python_empty_tuple);
2093 }
2094 else
2095 {
2096 PyObject *kwargs = PyDict_New();
2097 PyDict_SetItemString(kwargs, "block", Py_False);
2098 res = PyObject_Call( detail::_interpreter::get().s_python_function_show, detail::_interpreter::get().s_python_empty_tuple, kwargs);
2099 Py_DECREF(kwargs);
2100 }
2101
2102
2103 if (!res) throw std::runtime_error("Call to show() failed.");
2104
2105 Py_DECREF(res);
2106}
2107
2108inline void close()
2109{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected