| 1446 | |
| 1447 | template<typename Numeric> |
| 1448 | void 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 | |
| 1464 | inline void colorbar(PyObject* mappable = NULL, const std::map<std::string, float>& keywords = {}) |
| 1465 | { |
nothing calls this directly
no outgoing calls
no test coverage detected