MCPcopy Create free account
hub / github.com/HxCa1/BEV-LIO-LC / text

Function text

include/matplotlibcpp.h:1448–1462  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1446
1447template<typename Numeric>
1448void text(Numeric x, Numeric y, const std::string& s = "")
1449{
1450 detail::_interpreter::get();
1451
1452 PyObject* args = PyTuple_New(3);
1453 PyTuple_SetItem(args, 0, PyFloat_FromDouble(x));
1454 PyTuple_SetItem(args, 1, PyFloat_FromDouble(y));
1455 PyTuple_SetItem(args, 2, PyString_FromString(s.c_str()));
1456
1457 PyObject* res = PyObject_CallObject(detail::_interpreter::get().s_python_function_text, args);
1458 if(!res) throw std::runtime_error("Call to text() failed.");
1459
1460 Py_DECREF(args);
1461 Py_DECREF(res);
1462}
1463
1464inline void colorbar(PyObject* mappable = NULL, const std::map<std::string, float>& keywords = {})
1465{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected