@@ -1186,12 +1186,12 @@ inline void legend(const std::string &loc = "best",
1186
1186
Py_DECREF (res);
1187
1187
}
1188
1188
1189
- template <typename Numeric> void ylim (Numeric left , Numeric right ) {
1189
+ template <typename Numeric> void ylim (Numeric bottom , Numeric top ) {
1190
1190
detail::_interpreter::get ();
1191
1191
1192
1192
PyObject *list = PyList_New (2 );
1193
- PyList_SetItem (list, 0 , PyFloat_FromDouble (left ));
1194
- PyList_SetItem (list, 1 , PyFloat_FromDouble (right ));
1193
+ PyList_SetItem (list, 0 , PyFloat_FromDouble (bottom ));
1194
+ PyList_SetItem (list, 1 , PyFloat_FromDouble (top ));
1195
1195
1196
1196
PyObject *args = PyTuple_New (1 );
1197
1197
PyTuple_SetItem (args, 0 , list);
@@ -1254,8 +1254,8 @@ inline double *ylim() {
1254
1254
PyObject *right = PyTuple_GetItem (res, 1 );
1255
1255
1256
1256
double *arr = new double [2 ];
1257
- arr[0 ] = PyFloat_AsDouble (left );
1258
- arr[1 ] = PyFloat_AsDouble (right );
1257
+ arr[0 ] = PyFloat_AsDouble (bottom );
1258
+ arr[1 ] = PyFloat_AsDouble (top );
1259
1259
1260
1260
if (!res)
1261
1261
throw std::runtime_error (" Call to ylim() failed." );
@@ -1432,15 +1432,15 @@ inline void suptitle(const std::string &suptitlestr,
1432
1432
Py_DECREF (res);
1433
1433
}
1434
1434
1435
- inline void axis (const std::string &axisstr ) {
1436
- PyObject *str = PyString_FromString (axisstr .c_str ());
1435
+ inline void axis (const std::string &option ) {
1436
+ PyObject *str = PyString_FromString (option .c_str ());
1437
1437
PyObject *args = PyTuple_New (1 );
1438
1438
PyTuple_SetItem (args, 0 , str);
1439
1439
1440
1440
PyObject *res = PyObject_CallObject (
1441
1441
detail::_interpreter::get ().s_python_function_axis , args);
1442
1442
if (!res)
1443
- throw std::runtime_error (" Call to title () failed." );
1443
+ throw std::runtime_error (" Call to axis () failed." );
1444
1444
1445
1445
Py_DECREF (args);
1446
1446
Py_DECREF (res);
0 commit comments