| 1006 | } |
| 1007 | |
| 1008 | inline bool subplots_adjust(const std::map<std::string, double>& keywords = {}) |
| 1009 | { |
| 1010 | detail::_interpreter::get(); |
| 1011 | |
| 1012 | PyObject* kwargs = PyDict_New(); |
| 1013 | for (std::map<std::string, double>::const_iterator it = |
| 1014 | keywords.begin(); it != keywords.end(); ++it) { |
| 1015 | PyDict_SetItemString(kwargs, it->first.c_str(), |
| 1016 | PyFloat_FromDouble(it->second)); |
| 1017 | } |
| 1018 | |
| 1019 | |
| 1020 | PyObject* plot_args = PyTuple_New(0); |
| 1021 | |
| 1022 | PyObject* res = PyObject_Call(detail::_interpreter::get().s_python_function_subplots_adjust, plot_args, kwargs); |
| 1023 | |
| 1024 | Py_DECREF(plot_args); |
| 1025 | Py_DECREF(kwargs); |
| 1026 | if(res) Py_DECREF(res); |
| 1027 | |
| 1028 | return res; |
| 1029 | } |
| 1030 | |
| 1031 | template< typename Numeric> |
| 1032 | bool named_hist(std::string label,const std::vector<Numeric>& y, long bins=10, std::string color="b", double alpha=1.0) |
nothing calls this directly
no outgoing calls
no test coverage detected