| 1604 | |
| 1605 | template<typename Numeric> |
| 1606 | void xlim(Numeric left, Numeric right) |
| 1607 | { |
| 1608 | detail::_interpreter::get(); |
| 1609 | |
| 1610 | PyObject* list = PyList_New(2); |
| 1611 | PyList_SetItem(list, 0, PyFloat_FromDouble(left)); |
| 1612 | PyList_SetItem(list, 1, PyFloat_FromDouble(right)); |
| 1613 | |
| 1614 | PyObject* args = PyTuple_New(1); |
| 1615 | PyTuple_SetItem(args, 0, list); |
| 1616 | |
| 1617 | PyObject* res = PyObject_CallObject(detail::_interpreter::get().s_python_function_xlim, args); |
| 1618 | if(!res) throw std::runtime_error("Call to xlim() failed."); |
| 1619 | |
| 1620 | Py_DECREF(args); |
| 1621 | Py_DECREF(res); |
| 1622 | } |
| 1623 | |
| 1624 | |
| 1625 | inline double* xlim() |
nothing calls this directly
no outgoing calls
no test coverage detected