@@ -1039,59 +1039,6 @@ bool errorbar(const std::vector<NumericX> &x, const std::vector<NumericY> &y,
10391039 return res;
10401040}
10411041
1042- template <typename Numeric>
1043- bool named_plot (const std::string &name, const std::vector<Numeric> &y,
1044- const std::string &format = " " ) {
1045- PyObject *kwargs = PyDict_New ();
1046- PyDict_SetItemString (kwargs, " label" , PyString_FromString (name.c_str ()));
1047-
1048- PyObject *yarray = get_array (y);
1049-
1050- PyObject *pystring = PyString_FromString (format.c_str ());
1051-
1052- PyObject *plot_args = PyTuple_New (2 );
1053-
1054- PyTuple_SetItem (plot_args, 0 , yarray);
1055- PyTuple_SetItem (plot_args, 1 , pystring);
1056-
1057- PyObject *res = PyObject_Call (
1058- detail::_interpreter::get ().s_python_function_plot , plot_args, kwargs);
1059-
1060- Py_DECREF (kwargs);
1061- Py_DECREF (plot_args);
1062- if (res)
1063- Py_DECREF (res);
1064-
1065- return res;
1066- }
1067-
1068- template <typename Numeric>
1069- bool named_plot (const std::string &name, const std::vector<Numeric> &x,
1070- const std::vector<Numeric> &y, const std::string &format = " " ) {
1071- PyObject *kwargs = PyDict_New ();
1072- PyDict_SetItemString (kwargs, " label" , PyString_FromString (name.c_str ()));
1073-
1074- PyObject *xarray = get_array (x);
1075- PyObject *yarray = get_array (y);
1076-
1077- PyObject *pystring = PyString_FromString (format.c_str ());
1078-
1079- PyObject *plot_args = PyTuple_New (3 );
1080- PyTuple_SetItem (plot_args, 0 , xarray);
1081- PyTuple_SetItem (plot_args, 1 , yarray);
1082- PyTuple_SetItem (plot_args, 2 , pystring);
1083-
1084- PyObject *res = PyObject_Call (
1085- detail::_interpreter::get ().s_python_function_plot , plot_args, kwargs);
1086-
1087- Py_DECREF (kwargs);
1088- Py_DECREF (plot_args);
1089- if (res)
1090- Py_DECREF (res);
1091-
1092- return res;
1093- }
1094-
10951042template <typename Numeric>
10961043bool named_semilogx (const std::string &name, const std::vector<Numeric> &x,
10971044 const std::vector<Numeric> &y,
0 commit comments