| 1883 | } |
| 1884 | |
| 1885 | inline void suptitle(const std::string &suptitlestr, const std::map<std::string, std::string> &keywords = {}) |
| 1886 | { |
| 1887 | detail::_interpreter::get(); |
| 1888 | |
| 1889 | PyObject* pysuptitlestr = PyString_FromString(suptitlestr.c_str()); |
| 1890 | PyObject* args = PyTuple_New(1); |
| 1891 | PyTuple_SetItem(args, 0, pysuptitlestr); |
| 1892 | |
| 1893 | PyObject* kwargs = PyDict_New(); |
| 1894 | for (auto it = keywords.begin(); it != keywords.end(); ++it) { |
| 1895 | PyDict_SetItemString(kwargs, it->first.c_str(), PyUnicode_FromString(it->second.c_str())); |
| 1896 | } |
| 1897 | |
| 1898 | PyObject* res = PyObject_Call(detail::_interpreter::get().s_python_function_suptitle, args, kwargs); |
| 1899 | if(!res) throw std::runtime_error("Call to suptitle() failed."); |
| 1900 | |
| 1901 | Py_DECREF(args); |
| 1902 | Py_DECREF(kwargs); |
| 1903 | Py_DECREF(res); |
| 1904 | } |
| 1905 | |
| 1906 | inline void axis(const std::string &axisstr) |
| 1907 | { |
nothing calls this directly
no outgoing calls
no test coverage detected