| 1818 | } |
| 1819 | |
| 1820 | inline void subplot(long nrows, long ncols, long plot_number) |
| 1821 | { |
| 1822 | detail::_interpreter::get(); |
| 1823 | |
| 1824 | // construct positional args |
| 1825 | PyObject* args = PyTuple_New(3); |
| 1826 | PyTuple_SetItem(args, 0, PyFloat_FromDouble(nrows)); |
| 1827 | PyTuple_SetItem(args, 1, PyFloat_FromDouble(ncols)); |
| 1828 | PyTuple_SetItem(args, 2, PyFloat_FromDouble(plot_number)); |
| 1829 | |
| 1830 | PyObject* res = PyObject_CallObject(detail::_interpreter::get().s_python_function_subplot, args); |
| 1831 | if(!res) throw std::runtime_error("Call to subplot() failed."); |
| 1832 | |
| 1833 | Py_DECREF(args); |
| 1834 | Py_DECREF(res); |
| 1835 | } |
| 1836 | |
| 1837 | inline void subplot2grid(long nrows, long ncols, long rowid=0, long colid=0, long rowspan=1, long colspan=1) |
| 1838 | { |
nothing calls this directly
no outgoing calls
no test coverage detected