@@ -1060,92 +1060,6 @@ bool errorbar(const std::vector<NumericX> &x, const std::vector<NumericY> &y,
10601060 return res;
10611061}
10621062
1063- template <typename Numeric>
1064- bool named_semilogx (const std::string &name, const std::vector<Numeric> &x,
1065- const std::vector<Numeric> &y,
1066- const std::string &format = " " ) {
1067- PyObject *kwargs = PyDict_New ();
1068- PyDict_SetItemString (kwargs, " label" , PyString_FromString (name.c_str ()));
1069-
1070- PyObject *xarray = get_array (x);
1071- PyObject *yarray = get_array (y);
1072-
1073- PyObject *pystring = PyString_FromString (format.c_str ());
1074-
1075- PyObject *plot_args = PyTuple_New (3 );
1076- PyTuple_SetItem (plot_args, 0 , xarray);
1077- PyTuple_SetItem (plot_args, 1 , yarray);
1078- PyTuple_SetItem (plot_args, 2 , pystring);
1079-
1080- PyObject *res =
1081- PyObject_Call (detail::_interpreter::get ().s_python_function_semilogx ,
1082- plot_args, kwargs);
1083-
1084- Py_DECREF (kwargs);
1085- Py_DECREF (plot_args);
1086- if (res)
1087- Py_DECREF (res);
1088-
1089- return res;
1090- }
1091-
1092- template <typename Numeric>
1093- bool named_semilogy (const std::string &name, const std::vector<Numeric> &x,
1094- const std::vector<Numeric> &y,
1095- const std::string &format = " " ) {
1096- PyObject *kwargs = PyDict_New ();
1097- PyDict_SetItemString (kwargs, " label" , PyString_FromString (name.c_str ()));
1098-
1099- PyObject *xarray = get_array (x);
1100- PyObject *yarray = get_array (y);
1101-
1102- PyObject *pystring = PyString_FromString (format.c_str ());
1103-
1104- PyObject *plot_args = PyTuple_New (3 );
1105- PyTuple_SetItem (plot_args, 0 , xarray);
1106- PyTuple_SetItem (plot_args, 1 , yarray);
1107- PyTuple_SetItem (plot_args, 2 , pystring);
1108-
1109- PyObject *res =
1110- PyObject_Call (detail::_interpreter::get ().s_python_function_semilogy ,
1111- plot_args, kwargs);
1112-
1113- Py_DECREF (kwargs);
1114- Py_DECREF (plot_args);
1115- if (res)
1116- Py_DECREF (res);
1117-
1118- return res;
1119- }
1120-
1121- template <typename Numeric>
1122- bool named_loglog (const std::string &name, const std::vector<Numeric> &x,
1123- const std::vector<Numeric> &y,
1124- const std::string &format = " " ) {
1125- PyObject *kwargs = PyDict_New ();
1126- PyDict_SetItemString (kwargs, " label" , PyString_FromString (name.c_str ()));
1127-
1128- PyObject *xarray = get_array (x);
1129- PyObject *yarray = get_array (y);
1130-
1131- PyObject *pystring = PyString_FromString (format.c_str ());
1132-
1133- PyObject *plot_args = PyTuple_New (3 );
1134- PyTuple_SetItem (plot_args, 0 , xarray);
1135- PyTuple_SetItem (plot_args, 1 , yarray);
1136- PyTuple_SetItem (plot_args, 2 , pystring);
1137-
1138- PyObject *res = PyObject_Call (
1139- detail::_interpreter::get ().s_python_function_loglog , plot_args, kwargs);
1140-
1141- Py_DECREF (kwargs);
1142- Py_DECREF (plot_args);
1143- if (res)
1144- Py_DECREF (res);
1145-
1146- return res;
1147- }
1148-
11491063template <typename Numeric>
11501064bool stem (const std::vector<Numeric> &y, const std::string &format = " " ) {
11511065 std::vector<Numeric> x (y.size ());
0 commit comments