Skip to content

Commit

Permalink
fix #309
Browse files Browse the repository at this point in the history
  • Loading branch information
goldbattle committed Mar 15, 2023
1 parent 0145057 commit 0429390
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ov_core/src/plot/matplotlibcpp.h
Original file line number Diff line number Diff line change
Expand Up @@ -1398,9 +1398,9 @@ template <typename Numeric> inline void yticks(const std::vector<Numeric> &ticks
inline void subplot(long nrows, long ncols, long plot_number) {
// construct positional args
PyObject *args = PyTuple_New(3);
PyTuple_SetItem(args, 0, PyFloat_FromDouble(nrows));
PyTuple_SetItem(args, 1, PyFloat_FromDouble(ncols));
PyTuple_SetItem(args, 2, PyFloat_FromDouble(plot_number));
PyTuple_SetItem(args, 0, PyLong_FromLong(nrows));
PyTuple_SetItem(args, 1, PyLong_FromLong(ncols));
PyTuple_SetItem(args, 2, PyLong_FromLong(plot_number));

PyObject *res = PyObject_CallObject(detail::_interpreter::get().s_python_function_subplot, args);
if (!res)
Expand Down

0 comments on commit 0429390

Please sign in to comment.