MCPcopy Create free account
hub / github.com/HxCa1/BEV-LIO-LC / xlim

Function xlim

include/matplotlibcpp.h:1606–1622  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1604
1605template<typename Numeric>
1606void 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
1625inline double* xlim()

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected