| 1585 | |
| 1586 | template<typename Numeric> |
| 1587 | void ylim(Numeric left, Numeric right) |
| 1588 | { |
| 1589 | detail::_interpreter::get(); |
| 1590 | |
| 1591 | PyObject* list = PyList_New(2); |
| 1592 | PyList_SetItem(list, 0, PyFloat_FromDouble(left)); |
| 1593 | PyList_SetItem(list, 1, PyFloat_FromDouble(right)); |
| 1594 | |
| 1595 | PyObject* args = PyTuple_New(1); |
| 1596 | PyTuple_SetItem(args, 0, list); |
| 1597 | |
| 1598 | PyObject* res = PyObject_CallObject(detail::_interpreter::get().s_python_function_ylim, args); |
| 1599 | if(!res) throw std::runtime_error("Call to ylim() failed."); |
| 1600 | |
| 1601 | Py_DECREF(args); |
| 1602 | Py_DECREF(res); |
| 1603 | } |
| 1604 | |
| 1605 | template<typename Numeric> |
| 1606 | void xlim(Numeric left, Numeric right) |
nothing calls this directly
no outgoing calls
no test coverage detected